<?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: User Count in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25673#M89407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Polished it a bit and put it in a bash script with the added point that you can add the logfile name on the command line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LF=$1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if [ "$LF" == "" ]; then&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LF="fw.log"&lt;BR /&gt;fi&lt;BR /&gt;fwm logexport -np -i $LF | grep accept | cut -d ';' -f20 | sort | uniq | grep '^10.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' &amp;gt; IP-list&lt;BR /&gt;wc -l IP-list &amp;gt; count&lt;BR /&gt;echo&lt;BR /&gt;echo &lt;BR /&gt;echo "For logfile $LF the number&amp;nbsp;of unique IPs is:"&lt;BR /&gt;cat count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2019 06:14:05 GMT</pubDate>
    <dc:creator>Maarten_Sjouw</dc:creator>
    <dc:date>2019-01-23T06:14:05Z</dc:date>
    <item>
      <title>User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25662#M89396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a way to see how many unique IP's have been passing through the FW during a day. Is there anyone who can tell me how to get this, If I need to run a script that just mails me the total per day every day, that is fine with me, it is just that I do not have a clue how and where to start.&lt;/P&gt;&lt;P&gt;Running R80.10 ATM and no IA in use. We will soon be moving to R80.20 and IA will be enabled also, but this can take another 3-6 months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 07:10:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25662#M89396</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-01-21T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25663#M89397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would check if it's possible to get that info from cpstat or cpinfo. If that's not of help I would probably just do a logrotate at midnight, dump the content to text, delete everything except the IPs, sort, uniq, wc -l and email the returned number to my&amp;nbsp; inbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:02:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25663#M89397</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-01-21T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25664#M89398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk10200&amp;amp;partition=General&amp;amp;product=Security"&gt;sk10200: 'too many &lt;STRONG&gt;internal&lt;/STRONG&gt; hosts' error in /var/log/messages on Security Gateway&lt;/A&gt;, the Security Gateway listens for any IP-based traffic on all interfaces except for the one deemed "external", which is decided by the user and listed in &lt;CODE&gt;$FWDIR/conf/external.if&lt;/CODE&gt; file. Anytime a host is "heard" talking on a non-external interface, Security Gateway logs this information in &lt;CODE&gt;$FWDIR/database/fwd.h&lt;/CODE&gt; file and in &lt;CODE&gt;$FWDIR/database/fwd.hosts&lt;/CODE&gt; file on the Security Gateway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 10:24:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25664#M89398</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2019-01-21T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25665#M89399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry &lt;A href="https://community.checkpoint.com/migrated-users/54845"&gt;Günther W. Albrecht&lt;/A&gt;, I checked but it seems that in a unlimited license environment these files do not exist.&lt;/P&gt;&lt;P&gt;Thanks &lt;A href="https://community.checkpoint.com/migrated-users/41735"&gt;https://community.checkpoint.com/people/917b8439-9d5c-34f0-b86a-f0e1b0a14cbd&lt;/A&gt;&amp;nbsp; we were able to use this and find the number, now I just need to make sure we collect all the correct information, to make sure that when a logfile crosses the 2GB limit, we collect all information of each day.&lt;/P&gt;&lt;P&gt;But we are on the right path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 11:47:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25665#M89399</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-01-21T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25666#M89400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad I could be of help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 11:50:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25666#M89400</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-01-21T11:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25667#M89401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what we ended up doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cd $FWDIR/log&lt;BR /&gt;fwm logexport -np -i log/2019-01-17_000000.log -o 2019-01-17_000000.exp&lt;BR /&gt;cat 2019-01-16_000000.exp | grep accept | cut -d ';' -f20 | sort | uniq | grep '^10.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' &amp;gt; ip-list&lt;/P&gt;&lt;P&gt;wc -l ip-list &amp;gt; count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 12:34:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25667#M89401</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-01-21T12:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25668#M89402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting the final solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 12:50:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25668#M89402</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-01-21T12:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25669#M89403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems appropriate as all these files are used for is User IP counting for checking the license limits. Unlimited licenses do not need that, of course, but you did not mention that in your initial post at all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:22:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25669#M89403</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2019-01-21T13:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25670#M89404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that user based licenses were a thing of the past since the blade licenses? It's a long time ago that I have seen licenses with a user limit, where it also was enforced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:34:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25670#M89404</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-01-21T16:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25671#M89405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Valid&amp;nbsp;under the assumption that all firewall rules are logged.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 16:34:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25671#M89405</guid>
      <dc:creator>JozkoMrkvicka</dc:creator>
      <dc:date>2019-01-21T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25672#M89406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, we still have user based licenses (e.g. EPS clients) and seat based licenses (e.g. MAB, only the number of concurrent users is limited). Also see&amp;nbsp;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;A _jive_internal="true" class="" href="https://community.checkpoint.com/docs/DOC-2733-remote-access-users-license-count?sr=search&amp;amp;searchId=077fc0fa-2d16-41ed-b01e-fb1c13175418&amp;amp;searchIndex=1" style="color: #e45785; background-color: #ffffff; border: 0px; text-decoration: underline;"&gt;Remote Access&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="" style="background-color: #ffff88; border: 0px; font-weight: 600;"&gt;Users&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;license +&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="" style="background-color: #ffff88; border: 0px; font-weight: 600;"&gt;count&lt;/EM&gt;&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2019 08:48:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25672#M89406</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2019-01-22T08:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: User Count</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25673#M89407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Polished it a bit and put it in a bash script with the added point that you can add the logfile name on the command line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LF=$1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if [ "$LF" == "" ]; then&lt;BR /&gt;&amp;nbsp; &amp;nbsp;LF="fw.log"&lt;BR /&gt;fi&lt;BR /&gt;fwm logexport -np -i $LF | grep accept | cut -d ';' -f20 | sort | uniq | grep '^10.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' &amp;gt; IP-list&lt;BR /&gt;wc -l IP-list &amp;gt; count&lt;BR /&gt;echo&lt;BR /&gt;echo &lt;BR /&gt;echo "For logfile $LF the number&amp;nbsp;of unique IPs is:"&lt;BR /&gt;cat count&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:14:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/User-Count/m-p/25673#M89407</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2019-01-23T06:14:05Z</dc:date>
    </item>
  </channel>
</rss>

