{"id":308629,"date":"2020-08-18T09:01:17","date_gmt":"2020-08-18T09:01:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=308629"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=308629","title":{"rendered":"\u042d\u0448\u0435\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0437\u0430\u0449\u0438\u0442\u0430. Fortinet &amp; Flowmon Networks"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/tssolution\/blog\/515506\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nn\/la\/il\/nnlail3mgl2uoggetujksstgdhe.png\"><\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e\u0442 \u0434\u043e \u044d\u0448\u0435\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440 \u0441\u0435\u0442\u0438, \u0434\u0440\u0443\u0433\u043e\u0435 \u2014 \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0442\u0440\u0435\u0442\u044c\u0435 \u2014 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u0435\u0442\u044c, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044f \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0442\u044c \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043d\u0435\u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f\u0445 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u201c\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u201d, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u041c\u044b \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u043b\u0438 \u043e \u043d\u043e\u0432\u043e\u0439 \u0443\u0441\u043b\u0443\u0433\u0435 TS Solution \u2014 <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\/checkflow\">CheckFlow<\/a>. \u042d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0430\u0443\u0434\u0438\u0442 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 (\u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e, \u0442\u0430\u043a \u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e). <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\">Flowmon <\/a> \u2014 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0443 \u0441\u0435\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0430\u0435\u0442 \u0446\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a\u043e\u0432\u00bb: \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0435\u0442\u043b\u0438, \u043d\u0435\u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0442\u044c, \u0430\u0442\u0430\u043a\u0438 \u201c\u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0434\u043d\u044f\u201d \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/tssolution\/blog\/471706\/\">9 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432 \u0441\u0435\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441 Flowmon<\/a>.<\/p>\n<h2>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Flowmon &amp; FortiGate <\/h2>\n<p>  \u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u0430 \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\/packet-investigator\">\u0431\u043b\u043e\u0433\u0435<\/a>. \u0412 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c \u043e\u043d\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Next-Generation Firewall (\u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a FortiGate) \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440, \u0430 Flowmon \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0435\u0442\u0438. \u041e\u0434\u043d\u0430\u043a\u043e Flowmon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0438\u0448\u044c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0430\u0442\u0430\u043a\u0438 \u0438 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0432\u0435\u0434\u044c \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Netflow\/IPFIX. \u0414\u043b\u044f \u0432\u043d\u043e\u0441\u0430 \u0432 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f NGFW \u0438\u043b\u0438 \u0436\u0435 NAC (Network Access Control) \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u0432\u043e\u0442, \u0432\u0435\u043d\u0434\u043e\u0440 Flowmon \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b shell \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 FortiGate:<\/p>\n<ul>\n<li>\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442 \u043f\u043e IP \u0430\u0434\u0440\u0435\u0441\u0443 (IP Ban);<\/li>\n<li>\u0412\u043d\u0435\u0441\u0442\u0438 \u0432 \u0445\u043e\u0441\u0442 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e FortiClient \u043f\u043e MAC \u0430\u0434\u0440\u0435\u0441\u0443 (Quarantine with FortiClient);<\/li>\n<li>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u043d\u0430 \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b \u043f\u043e \u041c\u0410\u0421 \u0430\u0434\u0440\u0435\u0441\u0430\u043c (Access Layer Quarantine);<\/li>\n<\/ul>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h2>\n<p>  1. \u0412 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u044f \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u0441\u043a\u0430\u0436\u0443 \u043b\u0438\u0448\u044c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438: \u043e\u0434\u043d\u0430 \u0434\u043b\u044f FortiGate \u0432\u044b\u0448\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 6.4.0, \u0434\u0440\u0443\u0433\u0430\u044f \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439. \u041a\u043e\u0434 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043d\u0438\u0436\u0435.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f FortiGate \u043d\u0438\u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 6.4.0<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre> #!\/bin\/bash # Author: Jiri Knapek # Description: This script is to quarantine IP on Fortigate Firewalls for FortiOS before 6.4. # Version: 1.3 # Date: 8\/3\/2020 # Debug 1 = yes, 0 = no DEBUG=0  [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Starting mitigation script&quot; &gt;&gt; \/tmp\/fg-mitigation.log  # Management IP\/hostname of Firewall\/ Core device IP='10.10.30.210' API_KEY='fp8114zdNpjp8Qf8zN4Hdp57dhgjjf' # Default timeout for action is # value in seconds or never TIMEOUT='300'  # FortiGate API URL BAN=&quot;https:\/\/$IP\/api\/v2\/monitor\/user\/banned\/add_users?access_token=$API_KEY&quot;  function usage {     cat &lt;&lt; EOF &gt;&amp;2 usage: mitigation_script.sh &lt;options&gt;  Optional:     --fw        IP \/ hostname of Fortigate firewall \t--timeout\tTimeout in seconds \t--key\t\tFortiGate API key      EOF     exit }        params=&quot;$(getopt -o f:t:k:h -l fw:,timeout:,key:,help --name &quot;mitigation_script.sh&quot; -- &quot;$@&quot;)&quot;  [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Params $params&quot; &gt;&gt; \/tmp\/fg-mitigation.log  if [ $? -ne 0 ] then     usage     [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Got to usage.&quot; &gt;&gt; \/tmp\/fg-mitigation.log fi  eval set -- &quot;$params&quot; unset params  while true do     case $1 in         -f|--fw)             IP=(&quot;${2-}&quot;)             shift 2             ;;         -k|--key)             API_KEY=(&quot;${2-}&quot;)             shift 2             ;;         -t|--timeout)             TIMEOUT=(&quot;${2-}&quot;)             shift 2             ;;         -h|--help)             usage             ;;         --)             shift             break             ;;         *)             usage             ;;     esac done  # we dont support any other args [ $# -gt 0 ] &amp;&amp; {     usage     [ $DEBUG -ne 0 ] &amp;&amp;  echo `date`  &quot;INFO: Too many arguments. Got to usage.&quot; &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1 }  cat &lt;&lt; EOF &gt;&amp;2 -----  My params are ------------------ FW = $IP API KEY = $API_KEY TIMEOUT = $TIMEOUT TOKEN = $TOKEN --------------------------------------- EOF  [ $DEBUG -ne 0 ] &amp;&amp; cat &gt;&gt; \/tmp\/fg-mitigation.log &lt;&lt; EOF &gt;&amp;2 -----  My params are ------------------ FW = $IP API KEY = $API_KEY TIMEOUT = $TIMEOUT TOKEN = $TOKEN --------------------------------------- EOF  echo &quot;Stdin read started...&quot; &gt;&amp;2  LINE_NUM=1 array=() while read line do     IFS=$'\\t'     array=($line)     echo &quot;$LINE_NUM - ID ${array[0]} - type ${array[4]} - source ${array[10]}&quot;     [ $DEBUG -ne 0 ] &amp;&amp;  echo &quot;$LINE_NUM - ID ${array[0]} - type ${array[4]} - source ${array[10]}&quot; &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1          LINE_NUM=$((LINE_NUM+1))      # BAN the source IP of the event     if [ $DEBUG -ne 0 ]; then         \/usr\/bin\/curl -k -X POST -H &quot;Content-Type&quot;: &quot;application\/json&quot; --data &quot;{ \\&quot;ip_addresses\\&quot;: [\\&quot;${array[10]}\\&quot;], \\&quot;expiry\\&quot;: $TIMEOUT}&quot; $BAN &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1     else         \/usr\/bin\/curl -k -X POST -H &quot;Content-Type&quot;: &quot;application\/json&quot; --data &quot;{ \\&quot;ip_addresses\\&quot;: [\\&quot;${array[10]}\\&quot;], \\&quot;expiry\\&quot;: $TIMEOUT}&quot; $BAN     fi  done &lt; \/dev\/stdin  echo &quot;---- Everything completed ----&quot; [ $DEBUG -ne 0 ] &amp;&amp;  echo `date` &quot;---- Everything completed ----&quot; &gt;&gt; \/tmp\/fg-mitigation.log<\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f FortiGate \u0432\u0435\u0440\u0441\u0438\u0438 6.4.0 \u0438 \u0432\u044b\u0448\u0435<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre> #!\/bin\/bash # Author: Jiri Knapek # Description: This script is to quarantine IP or MAC on Fortigate Firewalls and Security Fabric # Version: 2.0 # Date: 7\/8\/2020 # Debug 1 = yes, 0 = no DEBUG=0  [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Starting mitigation script&quot; &gt;&gt; \/tmp\/fg-mitigation.log  # Flowmon API access USER='admin' PASS='admin' # Management IP\/hostname of Firewall\/ Core device IP='10.10.30.210' WEBHOOK='FlowmonADS' API_KEY='fp8114zdNpjp8Qf8zN4Hdp57dhgjjf' MAC=0  URL=&quot;https:\/\/$IP\/api\/v2\/monitor\/system\/automation-stitch\/webhook\/$WEBHOOK&quot;  function usage {     cat &lt;&lt; EOF &gt;&amp;2 usage: mitigation_script.sh &lt;options&gt;  Optional:     --fw        IP \/ hostname of Fortigate firewall     --user      Username to be used for Flowmon API authentication     --pass      Password for the user \t--key\t\tFortiGate API key \t--mac\t    Add this parameter to enable MAC mitigation  EOF     exit }    params=&quot;$(getopt -o f:u:p:k:h:m: -l fw:,key:,pass:,user:,help,mac: --name &quot;mitigation_script.sh&quot; -- &quot;$@&quot;)&quot;  [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Params $params&quot; &gt;&gt; \/tmp\/fg-mitigation.log  if [ $? -ne 0 ] then     usage     [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Got to usage.&quot; &gt;&gt; \/tmp\/fg-mitigation.log fi  eval set -- &quot;$params&quot; unset params  while true do     case $1 in         -f|--fw)             IP=(&quot;${2-}&quot;)             shift 2             ;;         -k|--key)             API_KEY=(&quot;${2-}&quot;)             shift 2             ;;         -p|--pass)             PASS=(&quot;${2-}&quot;)             shift 2             ;;         -u|--user)             USER=(&quot;${2-}&quot;)             shift 2             ;;         -m|--mac)             MAC=1             shift 2             ;;         -h|--help)             usage             ;;         --)             shift             break             ;;         *)             usage             ;;     esac done  # we dont support any other args [ $# -gt 0 ] &amp;&amp; {     usage     [ $DEBUG -ne 0 ] &amp;&amp;  echo `date`  &quot;INFO: Got to usage.&quot; &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1 }  if [ $MAC -ne 0 ]; then     # authenticate to localhost     OUTPUT=&quot;$(\/usr\/bin\/curl &quot;https:\/\/localhost\/resources\/oauth\/token&quot; -k -d 'grant_type=password' -d 'client_id=invea-tech' -d &quot;username=$USER&quot; -d &quot;password=$PASS&quot;)&quot;     TOKEN=&quot;&quot;      echo &quot;${OUTPUT}&quot; &gt; \/tmp\/access_token.json      if [[ $OUTPUT == *&quot;access_token&quot;* ]]; then         [ $DEBUG -ne 0 ] &amp;&amp; echo `date` &quot;Successfully authenticated to Flowmon Collector!&quot; &gt;&gt; \/tmp\/fg-mitigation.log         TOKEN=&quot;$(cat \/tmp\/access_token.json | jq '.access_token')&quot;         TOKEN=&quot;${TOKEN\/\/\\&quot;}&quot;         TOKEN=&quot;Authorization: bearer &quot;$TOKEN     fi fi  cat &lt;&lt; EOF &gt;&amp;2 -----  My params are ------------------ FW = $IP API KEE = $API_KEY URL = $URL MAC = $MAC TOKEN = $TOKEN --------------------------------------- EOF  [ $DEBUG -ne 0 ] &amp;&amp; \/tmp\/fg-mitigation.log &lt;&lt; EOF &gt;&amp;2 -----  My params are ------------------ FW = $IP API KEE = $API_KEY URL = $URL MAC = $MAC TOKEN = $TOKEN --------------------------------------- EOF  echo &quot;Stdin read started...&quot; &gt;&amp;2  LINE_NUM=1 array=() while read line do     IFS=$'\\t'     array=($line)     echo &quot;$LINE_NUM - ID ${array[0]} - type ${array[4]} - source ${array[10]}&quot;     [ $DEBUG -ne 0 ] &amp;&amp;  echo &quot;$LINE_NUM - ID ${array[0]} - type ${array[4]} - source ${array[10]}&quot; &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1      # Call a webhook     if [ $MAC -ne 0 ];     then         MAC_ADDR=&quot;$(\/usr\/bin\/curl &quot;https:\/\/localhost\/rest\/ads\/event\/${array[0]}&quot; -G -k -H &quot;$TOKEN&quot;  | jq '.macAddress')&quot;         if [ $DEBUG -ne 0 ]; then             \/usr\/bin\/curl -k -X POST -H &quot;Authorization: Bearer $API_KEY&quot; --data &quot;{ \\&quot;srcip\\&quot;: \\&quot;${array[10]}\\&quot;, \\&quot;mac\\&quot;: $MAC_ADDR, \\&quot;fctuid\\&quot;: \\&quot;A8BA0B12DA694E47BA4ADF24F8358E2F\\&quot;}&quot; $URL &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1         else             \/usr\/bin\/curl -k -X POST -H &quot;Authorization: Bearer $API_KEY&quot; --data &quot;{ \\&quot;srcip\\&quot;: \\&quot;${array[10]}\\&quot;, \\&quot;mac\\&quot;: $MAC_ADDR, \\&quot;fctuid\\&quot;: \\&quot;A8BA0B12DA694E47BA4ADF24F8358E2F\\&quot;}&quot; $URL         fi     else         if [ $DEBUG -ne 0 ]; then             \/usr\/bin\/curl -k -X POST -H &quot;Authorization: Bearer $API_KEY&quot; --data &quot;{ \\&quot;srcip\\&quot;: \\&quot;${array[10]}\\&quot;,  \\&quot;fctuid\\&quot;: \\&quot;A8BA0B12DA694E47BA4ADF24F8358E2F\\&quot;}&quot; $URL &gt;&gt; \/tmp\/fg-mitigation.log 2&gt;&amp;1         else             \/usr\/bin\/curl -k -X POST -H &quot;Authorization: Bearer $API_KEY&quot; --data &quot;{ \\&quot;srcip\\&quot;: \\&quot;${array[10]}\\&quot;,  \\&quot;fctuid\\&quot;: \\&quot;A8BA0B12DA694E47BA4ADF24F8358E2F\\&quot;}&quot; $URL         fi     fi      LINE_NUM=$((LINE_NUM+1))  done &lt; \/dev\/stdin  echo &quot;---- Everything completed ----&quot; [ $DEBUG -ne 0 ] &amp;&amp;  echo `date` &quot;---- Everything completed ----&quot; &gt;&gt; \/tmp\/fg-mitigation.log<\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  2. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e FortiGate \u0432\u0435\u0440\u0441\u0438\u0438 6.4.2. \u0412 \u0441\u0430\u043c\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0432 13 \u0438 14 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u0430\u0448\u0438 <i>\u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043a Flowmon<\/i>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <i>API \u043a\u043b\u044e\u0447 \u0438\u0437 \u043f.5<\/i>, <i>IP-\u0430\u0434\u0440\u0435\u0441 FortiGate<\/i> \u0438 <i>\u0438\u043c\u044f Webhook<\/i> (\u0438\u043c\u044f \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438).<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wo\/ny\/e4\/wonye4m1clqtrvkivv1chqttpyi.png\"><\/p>\n<p>  3. \u0412 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 FortiGate \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <i>Security Fabric &gt; Automation &gt; New Automation Stitch<\/i>. \u0418\u043c\u044f \u2014 <i>FlowmonADS<\/i>, Status \u2014 <i>Enabled<\/i>, Trigger \u2014 <i>Incoming Webhook<\/i>, Action \u2014 <i>IP BAN, Access Layer Quarantine, Quarantine with FortiCLient<\/i> (\u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435). <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qe\/gy\/ba\/qegybaob7hloznaua_ajnfoqlko.png\"><\/p>\n<p>  4. \u0417\u0430\u0442\u0435\u043c \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043e\u043a\u043d\u043e \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u043d\u0438\u0436\u0435 \u0441 URL\u2019\u043e\u043c FortiGate \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e Webhook\u2019a, \u043f\u043e\u043b\u0435 \u0434\u043b\u044f API \u0442\u043e\u043a\u0435\u043d\u0430 \u0430\u0434\u043c\u0438\u043d\u0430 (\u043c\u044b \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043e\u0437\u0436\u0435) \u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/or\/vt\/g4\/orvtg4hkkbplxxz1qrnwftpzg-q.png\"><\/p>\n<p>  5. \u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043f\u0440\u0430\u0432\u0430. \u0412\u043a\u043b\u0430\u0434\u043a\u0430 <i>System &gt; Admin Profiles &gt; Create New<\/i>. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vj\/to\/9v\/vjto9va0monuwngqhw6hkncbxds.png\"><\/p>\n<p>  6. \u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0430 <i>Security Fabric \u2014 Read, Firewall \u2014 Read\/Write, System \u2014 Read\/Write, Security Profile \u2014 Read\/Write<\/i>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/w2\/-e\/c2\/w2-ec25xypn4i-cjbjueo-k4ogw.png\"><\/p>\n<p>  7. \u041f\u043e\u0441\u043b\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435<i> System &gt; Administrators<\/i> \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u043c <i>api_admin<\/i>. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043f\u043e\u043b\u0435 <i>Trusted Hosts<\/i> \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0438\u043b\u0438 IP-\u0430\u0434\u0440\u0435\u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Flowmon.<br \/>  <b><i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/i><\/b>: \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>Trusted Hosts<\/i> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0436\u0435\u0441\u0442\u043a\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b IP \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 <i>api_admin <\/i>\u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c API \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 FortiGate, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u044d\u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dn\/go\/zi\/dngoziilbct1zihdip1suofwcwo.png\"><\/p>\n<p>  8. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0448\u0430\u0433\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f <b><i>API \u043a\u043b\u044e\u0447<\/i><\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 1 \u0438 \u0432 webhook \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 4.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/po\/3g\/iv\/po3givndi9je6jnkezoiqoqq02u.png\"><\/p>\n<p>  9. \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432\u043e Flowmon \u0432 \u043c\u043e\u0434\u0443\u043b\u044c ADS (Anomaly Detection System) \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 <i>System &gt; System Settings &gt; Custom Scripts &gt; New Custom Script &gt; \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <b>.sh<\/b><\/i>. \u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b &#8212;fw (IP-\u0430\u0434\u0440\u0435\u0441 FortiGate), &#8212;key (API \u0442\u043e\u043a\u0435\u043d), &#8212;mac (\u043d\u0438\u0447\u0435\u0433\u043e), &#8212;pass (\u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 REST API Flowmon), &#8212;user (\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c REST API Flowmon). \u041f\u043e\u0441\u043b\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 <b>Save<\/b>.<br \/>  <b><i>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/i><\/b>: &#8212;pass \u0438 &#8212;user \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <b>admin<\/b> \/ <b>admin<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lg\/od\/ei\/lgodeidrsmd-2vi9-s5_pvnuhtm.png\"><\/p>\n<p>  10. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c. \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <i>Settings &gt; Processing &gt; Custom Scripts &gt; New Custom Script Action<\/i> \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>Perspective <\/i>\u043d\u0430 <i>Security Issues<\/i>, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0440\u043e\u0433 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f (Minimal priority to be reported) \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438\u0437 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0448\u0430\u0433\u0430. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pu\/py\/uo\/pupyuowjyvdlb6jkquayk8iqvow.png\"><\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<p>   \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438\u0437 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 <i>Security Issues<\/i> \u043d\u0430 Flowmon, FortiGate \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u0435 Quarantine \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b, \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0432\u0448\u0438\u0441\u044c \u0432\u043d\u0443\u0442\u0440\u044c. \u041b\u0438\u0431\u043e \u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 CLI <b>diagnose user quarantine list<\/b>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sg\/yb\/ts\/sgybtsrbzvvhqxlnatopxtuhitm.png\"><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0418\u0411 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Flowmon ADS, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442, \u043f\u043e \u043a\u0430\u043a\u0438\u043c \u043f\u043e\u0440\u0442\u0430\u043c \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u043b\u043e\u0432\u0440\u0435\u0434 \u0438 \u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0436\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e \u0437\u0430\u0449\u0438\u0442\u0435 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0441\u0442\u0430\u043d\u0446\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/www.fortinet.com\/products\/endpoint-security\/fortiedr\">FortiEDR <\/a>\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043b\u0435\u0447\u0438\u0442\u044c \u043c\u0430\u0448\u0438\u043d\u0443 \u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0445\u043e\u0441\u0442 \u0438\u0437 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d\u0430, \u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 <i>Remove<\/i>.<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>   \u041f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u044d\u0448\u0435\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u0435 \u043f\u043e\u0434\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u0432 \u043d\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u201c\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u201d. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u044b\u043b\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b Flowmon \u0438 FortiGate.<\/p>\n<p>  \u0412 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0443 \u043d\u0430\u0441 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u0435\u0431\u0438\u043d\u0430\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a Flowmon \u0438 Fortinet \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430, \u0438\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043c \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0441 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e <a href=\"https:\/\/tssolution.ru\/fortinet_flowmon_networks_13_08\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0434\u0430\u043d\u043d\u0430\u044f \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430, \u0442\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u043d\u0430\u0448\u0438\u0445 \u043a\u0430\u043d\u0430\u043b\u0430\u0445 (Telegram, Facebook, VK, TS Solution Blog)!<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/tssolution\/blog\/515506\/\"> https:\/\/habr.com\/ru\/company\/tssolution\/blog\/515506\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/tssolution\/blog\/515506\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nn\/la\/il\/nnlail3mgl2uoggetujksstgdhe.png\"><\/p>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0441\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0439 \u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e\u0442 \u0434\u043e \u044d\u0448\u0435\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u0449\u0438\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u043e\u0434\u043d\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440 \u0441\u0435\u0442\u0438, \u0434\u0440\u0443\u0433\u043e\u0435 \u2014 \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0442\u0440\u0435\u0442\u044c\u0435 \u2014 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u0435\u0442\u044c, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044f \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0441\u0435\u0442\u044c \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043d\u0435\u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435. \u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f\u0445 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u201c\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u201d, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>  \u041c\u044b \u043d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u043b\u0438 \u043e \u043d\u043e\u0432\u043e\u0439 \u0443\u0441\u043b\u0443\u0433\u0435 TS Solution \u2014 <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\/checkflow\">CheckFlow<\/a>. \u042d\u0442\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0430\u0443\u0434\u0438\u0442 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 (\u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e, \u0442\u0430\u043a \u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e). <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\">Flowmon <\/a> \u2014 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u0438 \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0443 \u0441\u0435\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0430\u0435\u0442 \u0446\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u00ab\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a\u043e\u0432\u00bb: \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u0435\u0442\u043b\u0438, \u043d\u0435\u043b\u0435\u0433\u0438\u0442\u0438\u043c\u043d\u044b\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0432\u0442\u043e\u0440\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0435\u0442\u044c, \u0430\u0442\u0430\u043a\u0438 \u201c\u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0434\u043d\u044f\u201d \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/tssolution\/blog\/471706\/\">9 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432 \u0441\u0435\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441 Flowmon<\/a>.<\/p>\n<h2>\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Flowmon &amp; FortiGate <\/h2>\n<p>  \u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u0430 \u0432 \u043d\u0430\u0448\u0435\u043c <a href=\"https:\/\/tssolution.ru\/katalog\/flowmon\/packet-investigator\">\u0431\u043b\u043e\u0433\u0435<\/a>. \u0412 \u043e\u0431\u0449\u0435\u043c \u0438 \u0446\u0435\u043b\u043e\u043c \u043e\u043d\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Next-Generation Firewall (\u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a FortiGate) \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0440, \u0430 Flowmon \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442 \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u0443\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u0435\u0442\u0438. \u041e\u0434\u043d\u0430\u043a\u043e Flowmon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0438\u0448\u044c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0430\u0442\u0430\u043a\u0438 \u0438 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0438, \u0432\u0435\u0434\u044c \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u0431\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Netflow\/IPFIX. \u0414\u043b\u044f \u0432\u043d\u043e\u0441\u0430 \u0432 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f NGFW \u0438\u043b\u0438 \u0436\u0435 NAC (Network Access Control) \u0440\u0435\u0448\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u0432\u043e\u0442, \u0432\u0435\u043d\u0434\u043e\u0440 Flowmon \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b shell \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 FortiGate:<\/p>\n<ul>\n<li>\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442 \u043f\u043e IP \u0430\u0434\u0440\u0435\u0441\u0443 (IP Ban);<\/li>\n<li>\u0412\u043d\u0435\u0441\u0442\u0438 \u0432 \u0445\u043e\u0441\u0442 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e FortiClient \u043f\u043e MAC \u0430\u0434\u0440\u0435\u0441\u0443 (Quarantine with FortiClient);<\/li>\n<li>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0430\u0440\u0430\u043d\u0442\u0438\u043d \u043d\u0430 \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0436\u0435\u043d\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b \u043f\u043e \u041c\u0410\u0421 \u0430\u0434\u0440\u0435\u0441\u0430\u043c (Access Layer Quarantine);<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-308629","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308629"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308629\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}