<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73076#M25052</link>
    <description>&lt;P&gt;Or use this one-liner in your script to convert a hex IP in a dec IP:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;printf '%d.%d.%d.%d\n' $(echo $ip | sed 's/../0x&amp;amp; /g')&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 22 Jan 2020 23:17:13 GMT</pubDate>
    <dc:creator>HeikoAnkenbrand</dc:creator>
    <dc:date>2020-01-22T23:17:13Z</dc:date>
    <item>
      <title>Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72865#M25042</link>
      <description>&lt;P&gt;Runnning this command is supposed to show top connecting ips.&lt;/P&gt;&lt;P&gt;I'm having trouble with converting the hex to ip addresses. Any success?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sites and they are just giving me incomplete numbers.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 15:03:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72865#M25042</guid>
      <dc:creator>C_M</dc:creator>
      <dc:date>2020-01-21T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72935#M25043</link>
      <description>Think of the hex number as having dots after every second number.&lt;BR /&gt;Convert each of those numbers to hex, you have your IP address.&lt;BR /&gt;&lt;BR /&gt;For example: c0000264 = c0.00.02.64 = 192.0.2.100</description>
      <pubDate>Wed, 22 Jan 2020 03:23:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72935#M25043</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-22T03:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72941#M25044</link>
      <description>&lt;P&gt;I use the following site, and it converts every time for me:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.browserling.com/tools/hex-to-ip" target="_blank"&gt;https://www.browserling.com/tools/hex-to-ip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;When using your command example above, the output is correct, and converted correctly using the site above.&lt;/P&gt;
&lt;P&gt;[Expert@LabR8030:0]# fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head&lt;BR /&gt;1 ac1aa202,&lt;BR /&gt;1 0a0101fb,&lt;BR /&gt;1 0a01010f,&lt;/P&gt;
&lt;P&gt;Do not include the leading '1' when inputting to the website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;However, the nature of your task has been provided by Check Point in a more verbose tool.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I would highly recommend using the "ConnStat" Tool, provided by Check Point.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;It will provide top-talkers, top-rules, top-services, etc...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please find&amp;nbsp;&lt;A title="How to use the 'connstat' utility" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk85780&amp;amp;partition=Advanced&amp;amp;product=Other%22" target="_blank" rel="noopener"&gt;sk85780&lt;/A&gt;&amp;nbsp;-&amp;nbsp;How to use the 'connstat' utility&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 04:19:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/72941#M25044</guid>
      <dc:creator>SSlater</dc:creator>
      <dc:date>2020-01-22T04:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73013#M25045</link>
      <description>&lt;P&gt;Thanks, how do you specify which firewall to run it on?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 15:03:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73013#M25045</guid>
      <dc:creator>C_M</dc:creator>
      <dc:date>2020-01-22T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73038#M25046</link>
      <description>connstat runs on a Windows machine.&lt;BR /&gt;It processes output taken from whatever firewall you dump the connections table from.</description>
      <pubDate>Wed, 22 Jan 2020 17:38:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73038#M25046</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-22T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73058#M25047</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/12105"&gt;@C_M&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This will give you the IP address in decimal for R80.30. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Top source:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fw tab -u -t connections -f |awk '{print $19}' |grep -v "+" |grep -v "^$" | sed 's/;/ /g' | sort -n | uniq -c | sort -nr | head&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Top destination:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;fw tab -u -t connections -f |awk '{print $23}' |grep -v "+" |grep -v "^$" | sed 's/;/ /g' | sort -n | uniq -c | sort -nr | head&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Picture:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bild1.JPG" style="width: 293px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/4106iD80902045088A6B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="bild1.JPG" alt="bild1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:17:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73058#M25047</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-01-22T21:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73059#M25048</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 20:52:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73059#M25048</guid>
      <dc:creator>C_M</dc:creator>
      <dc:date>2020-01-22T20:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73061#M25049</link>
      <description>&lt;P&gt;When I ran it I didn't get any IPs.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:01:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73061#M25049</guid>
      <dc:creator>C_M</dc:creator>
      <dc:date>2020-01-22T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73062#M25050</link>
      <description>&lt;P&gt;nice&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:01:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73062#M25050</guid>
      <dc:creator>mike123</dc:creator>
      <dc:date>2020-01-22T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73065#M25051</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/12105"&gt;@C_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created and tested this with R80.30.&lt;BR /&gt;If you are using R80.10 or R80.20, you need an other field in "...awk '{print $&lt;FONT color="#FF0000"&gt;XX&lt;/FONT&gt;}' .... for the source IP. Depending on the version the fields are different in the state table.&lt;/P&gt;
&lt;P&gt;22:07:24 5 N/A N/A 149.213.248.222 &amp;gt; N/A LogId: &amp;lt;max_null&amp;gt;; ContextNum: &amp;lt;max_null&amp;gt;; OriginSicName: &amp;lt;max_null&amp;gt;; : -----------------------------------(+); Direction: 1; Source: &lt;FONT color="#FF0000"&gt;49.21.28.22&lt;/FONT&gt;; SPort: 22; Dest: 49.23.28.8; DPort: 1981; Protocol: tcp; CPTFMT_sep_1: -&amp;gt;; .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:15:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73065#M25051</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-01-22T21:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73076#M25052</link>
      <description>&lt;P&gt;Or use this one-liner in your script to convert a hex IP in a dec IP:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;printf '%d.%d.%d.%d\n' $(echo $ip | sed 's/../0x&amp;amp; /g')&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 23:17:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/73076#M25052</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-01-22T23:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/81031#M25053</link>
      <description>&lt;P&gt;don't know if you run into this a lot.&amp;nbsp; but sometimes its quicker to dump the conn table in hex to a file and convert it.&lt;/P&gt;&lt;P&gt;i wrote a python tool to do this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/celticcow/hex2ip" target="_blank"&gt;https://github.com/celticcow/hex2ip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you take the output of fw tab -t connections -u &amp;gt; file.txt&lt;BR /&gt;run the ./hex.py -f file.txt and it outputs the single connection entries&lt;/P&gt;&lt;P&gt;souce_ip source_port -&amp;gt; dest_ip dest_port protocl_number lifetime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so you can send that to a file and sort it at leasure.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 19:08:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/81031#M25053</guid>
      <dc:creator>Greg_Dunlap</dc:creator>
      <dc:date>2020-04-06T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/145056#M25054</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;someone can help me to understand the number near the exadecimal value (for instance&amp;nbsp;111744) showed by command?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to be not the number of connection for that ip cause it's pretty higher than the #VALS number of connection showed by&amp;nbsp;fw tab -t connections -s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@FW]# fw tab -t connections -s&lt;BR /&gt;HOST NAME ID #VALS #PEAK #SLINKS&lt;BR /&gt;localhost connections 8158 57162 320240 171450&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@FW]# fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head&lt;BR /&gt;111744 0aef9e40,&lt;BR /&gt;57800 0ac04318,&lt;BR /&gt;53923 0ac0431a,&lt;BR /&gt;734 0aef0ae6,&lt;BR /&gt;636 0aef0568,&lt;BR /&gt;634 0a0ab464,&lt;BR /&gt;382 0a33dc74,&lt;BR /&gt;276 0aef070a,&lt;BR /&gt;272 0aef0ae9,&lt;BR /&gt;254 0a130f39,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:17:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/145056#M25054</guid>
      <dc:creator>Millo</dc:creator>
      <dc:date>2022-03-30T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Top connections fw tab -u -t connections | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | h</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/225927#M43465</link>
      <description>&lt;P&gt;Hello Millo,&lt;/P&gt;&lt;P&gt;Better late than never &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the the difference arises from the fact that the connection table also contains slinks.&lt;BR /&gt;So if you add the SLINKS and VALS values (228612), 111744 is not that high anymore &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Only the SLINKS:&lt;BR /&gt;fw tab -t connections -u | grep "\-&amp;gt;" | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head&lt;/P&gt;&lt;P&gt;Only the VALS:&lt;BR /&gt;fw tab -t connections -u | grep -v "\-&amp;gt;" | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head&lt;/P&gt;&lt;P&gt;VALS &amp;amp; SLINKS together:&lt;BR /&gt;fw tab -t connections -u | awk '{ print $2 }' | sort -n | uniq -c | sort -nr | head&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 07:39:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Top-connections-fw-tab-u-t-connections-awk-print-2-sort-n-uniq-c/m-p/225927#M43465</guid>
      <dc:creator>Zolo</dc:creator>
      <dc:date>2024-09-07T07:39:30Z</dc:date>
    </item>
  </channel>
</rss>

