<?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: Log cleaning rule in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38390#M2289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this rule affect a DHCP server running on Gaia gateways? When a newly connected host sends dchp-request to 255.255.255.255.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2018 07:40:43 GMT</pubDate>
    <dc:creator>ED</dc:creator>
    <dc:date>2018-06-28T07:40:43Z</dc:date>
    <item>
      <title>Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38385#M2284</link>
      <description>&lt;P&gt;One of the things that all firewall administrators should do is to create a log cleaning rule. As an example, a firewall connected to a windows networks will receive a lot of network broadcast. Those broadcast will be drop and log by default on the clean-up rule. In the long run, this results in a lost of disk space.&lt;/P&gt;
&lt;P&gt;To remove those broadcast from the log file and save disk space, you should create a rule without log at the beginning of the rulebase:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 1116px; height: 45px;" class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/58365_Untitled.png" border="0" alt="" /&gt;&lt;/P&gt;
&lt;P&gt;The BROADCAST_GROUP should include all the broadcast address from all your gateways:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="float: left;" class="j-img-floatstart jive-image image-2 j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/58366_Untitled2.png" border="0" alt="" width="620" height="240" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have multiple gateways, this task can become very long to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've created a script to help you automate this task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;The script gets all the checkpoint gateway name and IP, connect to all of them and issue an ifconfig command then create a CSV template for the broadcast objects creation:&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;1-&lt;SPAN style="font-size: 7pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Gets gateway name and IP&amp;nbsp;from the management API&amp;nbsp;and creates a CSV file&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;2-&lt;SPAN style="font-size: 7pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Connect to each gateway from that CSV and issue ifconfig to get all the Broadcast address&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;3-&lt;SPAN style="font-size: 7pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Creates a CSV template with all the discovered Broadcast&lt;/P&gt;
&lt;P style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"&gt;4-&lt;SPAN style="font-size: 7pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Create and Import all broadcast objects into a group named BROADCAST_GROUP (API call)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will automatically gets all the broadcast address from all your gateways into the groupe name BROADCAST_GROUP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run the script either from the Smart Console or from SSH command line on the management server itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy Scripting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/cool.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the full list of White Papers, &lt;A href="https://community.checkpoint.com/t5/General-Topics/White-Papers-Publishing-Project/m-p/53242#M10603" target="_blank"&gt;go here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:32:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38385#M2284</guid>
      <dc:creator>Nicolas_Boisse</dc:creator>
      <dc:date>2019-07-08T12:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38386#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas, this is great!&lt;/P&gt;&lt;P&gt;Thanks for sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 17:32:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38386#M2285</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-09-01T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38387#M2286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script is really awesome!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried on my MDS and I had some problems but digging a little bit I found the issue.&amp;nbsp;&lt;BR /&gt;mdsenv "domain" is mandatory in a multi domain environment. I added it as third line and added in all mgmt_cli commands -d "domain".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 07:47:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38387#M2286</guid>
      <dc:creator>Claudio_Bolcato</dc:creator>
      <dc:date>2018-06-13T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38388#M2287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great job Nicolas!&lt;/P&gt;&lt;P&gt;Just one comment - the show-simple-gateways command will return only first 50 gateways by default.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:25:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38388#M2287</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-06-13T09:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38389#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added limit 500 to override this&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:53:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38389#M2288</guid>
      <dc:creator>Claudio_Bolcato</dc:creator>
      <dc:date>2018-06-13T09:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38390#M2289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will this rule affect a DHCP server running on Gaia gateways? When a newly connected host sends dchp-request to 255.255.255.255.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 07:40:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38390#M2289</guid>
      <dc:creator>ED</dc:creator>
      <dc:date>2018-06-28T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38391#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think you could still put a rule in place above the cleanup rule that specifically permits the DHCP required protocols (dhcp-request and dhcp-reply) without permitting &lt;EM&gt;all&lt;/EM&gt; broadcast traffic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:47:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38391#M2290</guid>
      <dc:creator>Burton_Peake</dc:creator>
      <dc:date>2018-08-07T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38392#M2291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The stealth rule will block those requests anyway. If you run the DHCP server on your gateway, you will need to add rule before the Stealth rule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 18:54:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/38392#M2291</guid>
      <dc:creator>Nicolas_Boisse</dc:creator>
      <dc:date>2018-08-09T18:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/53524#M3466</link>
      <description>agreed but isn't there some debate about the destination or service being used in the "clean Up" rule which is what it was called previously. if you drop on the services it will drop a lot more than a destination per say. some clients don't like a clean up rule and wish to see everything!</description>
      <pubDate>Wed, 15 May 2019 14:39:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/53524#M3466</guid>
      <dc:creator>Paul_Wetton</dc:creator>
      <dc:date>2019-05-15T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/81405#M4706</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you show link to script ? &amp;nbsp;may be something happened with my browser , but i not see any link to script.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 07:45:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/81405#M4706</guid>
      <dc:creator>Yury_Anoshyn</dc:creator>
      <dc:date>2020-04-09T07:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Log cleaning rule</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/137470#M6530</link>
      <description>&lt;P&gt;Hi dude,&lt;/P&gt;&lt;P&gt;Could you find script?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 18:24:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Log-cleaning-rule/m-p/137470#M6530</guid>
      <dc:creator>Feridun_ÖZTOK</dc:creator>
      <dc:date>2021-12-30T18:24:21Z</dc:date>
    </item>
  </channel>
</rss>

