<?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: GEO Location Objects in Firewall Policy (with Dynamic Objects) in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/49027#M3222</link>
    <description>&lt;P&gt;Well, I do not pretend to be the most effective way but it works for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Linux box that downloads aggregated IP ranges for the different countries from&amp;nbsp;&lt;A href="http://www.ipdeny.com/ipblocks/data/aggregated/" target="_blank"&gt;http://www.ipdeny.com/ipblocks/data/aggregated/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Perl script that will generate simdrop.db file that contains:&lt;/P&gt;
&lt;P&gt;- ports that are blocked from Internet (telnet, rdp, etc)&lt;/P&gt;
&lt;P&gt;- custom IPs and networks that I want to blacklist&lt;/P&gt;
&lt;P&gt;- IP ranges for countries I want to block&lt;/P&gt;
&lt;P&gt;3. That file is placed on a web server running on that same box&lt;/P&gt;
&lt;P&gt;4. There is a script running on SMBs that will download simdrop.db and use 'sim dropcfg ...' to apply it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on few improvements:&lt;/P&gt;
&lt;P&gt;1. Use CheckPoint provided database as an alternative&lt;/P&gt;
&lt;P&gt;2. Web interface similar to what is in SmartConsole to specify countries to block&lt;/P&gt;
&lt;P&gt;3. Have SMB poll and auto-download and apply new database when such is published on the Web server (at the moment it is applied on boot and manually when needed)&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 13:06:45 GMT</pubDate>
    <dc:creator>HristoGrigorov</dc:creator>
    <dc:date>2019-03-28T13:06:45Z</dc:date>
    <item>
      <title>GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40647#M2730</link>
      <description>&lt;P&gt;&lt;IMG style="width: auto; height: auto;" class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64780_pastedImage_1.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Currently no regional settings can be used in the Firewall Policy.This only works in the „Geo Policy“ and has the disadvantage that no special settings are possible.&lt;/P&gt;
&lt;P&gt;For example, no services like http can be specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This solution helps and creates Dynamic Objects with the IP ranges of the individual countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the first step, a Dynamic Object is created on the gateway that contains all IP addresses of the appropriate country. To do this the script is executed on the gateway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the script is started the first time the country file is transferred from the management server to the gateway via scp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All you have to do is enter the IP address, user name and password of the management server.&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 620px; height: 68px;" class="image-2 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64793_pastedImage_2.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;The current country list is displayed. Now only the appropriate country must be selected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example "&lt;SPAN style="color: #c55a11;"&gt;&lt;STRONG&gt;WLF&lt;/STRONG&gt;&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 620px; height: 161px;" class="image-3 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64794_pastedImage_3.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Afterwards dynamic object is created on the gateway with the following name „GEO_&amp;lt;country code&amp;gt;“.&lt;/P&gt;
&lt;P&gt;For example "&lt;SPAN style="color: #c55a11;"&gt;&lt;STRONG&gt;GEO_WLF&lt;/STRONG&gt;&lt;/SPAN&gt;".&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 620px; height: 131px;" class="jive-image image-4" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64795_pastedImage_4.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now create a Dynamic Object with the same name in the management under &lt;BR /&gt;„New&amp;gt;More&amp;gt;Network Objekts&amp;gt;Dynamic Objects &amp;gt;Dynamic Objekt“. &lt;BR /&gt;For example "&lt;SPAN style="color: #c55a11;"&gt;&lt;STRONG&gt;GEO_WLF&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 256px; height: 69px;" class="image-5 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64796_pastedImage_5.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Now create a Firewall Policy with the Dynamic Objekt.&lt;/P&gt;
&lt;P&gt;&lt;IMG style="width: 620px; height: 64px;" class="image-6 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/64797_pastedImage_6.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Install Policy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Important!&lt;/P&gt;
&lt;P&gt;1) On a cluster the script must be executed on both gateways.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;2) This is not a supported CheckPoint solution!&lt;BR /&gt;&lt;BR /&gt;Script Version:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;- 0.7a final version&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;- 0.7b bug fix (02.08.2018)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="https://community.checkpoint.com/people/h.ank2614aef2-c5d1-3f73-bbbd-45c59b9e2728" target="_blank" rel="noopener" data-containerid="-1" data-containertype="-1" data-objectid="55229" data-objecttype="3"&gt;Heiko&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 20:16:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40647#M2730</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2019-03-20T20:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40648#M2731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 00:58:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40648#M2731</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-04-25T00:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40649#M2732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add all coutries as dynamic objects on one step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 11:48:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40649#M2732</guid>
      <dc:creator>Alexander_Rodio</dc:creator>
      <dc:date>2018-04-26T11:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40650#M2733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the next version I want to change the following:&lt;BR /&gt;1) Add all countries as dynamic object "GEO_xyz&lt;BR /&gt;2) Delete all "GEO_xyz" objects&lt;BR /&gt;3) Delete individual "GEO_xyz" objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="55229" data-objecttype="3" href="https://community.checkpoint.com/people/h.ank2614aef2-c5d1-3f73-bbbd-45c59b9e2728"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:51:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40650#M2733</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-04-26T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40651#M2734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 16:39:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40651#M2734</guid>
      <dc:creator>Ukko_Metsola</dc:creator>
      <dc:date>2018-04-26T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40652#M2735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 16px;"&gt;Hello Heiko, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 16px;"&gt;I'm already using your script. Works well. Maybe you can add a download function for the country file from Check Point Update Server with „curl_cli“&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 16px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 16px;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2018 13:04:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40652#M2735</guid>
      <dc:creator>Dr__Chris_Murph</dc:creator>
      <dc:date>2018-04-28T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40653#M2736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 18px;"&gt;That's a good idea! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 18px;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1b1e25; background-color: #f8f8f8; font-size: 18px;"&gt;Heiko&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2018 20:12:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40653#M2736</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-04-28T20:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40654#M2737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have almost finished the new version with the following features (beta):&lt;BR /&gt;1) Add all countries as dynamic object "GEO_xyz&lt;BR /&gt;2) Delete all "GEO_xyz" objects&lt;BR /&gt;3) Delete individual "GEO_xyz" objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me a few more days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="55229" data-objecttype="3" href="https://community.checkpoint.com/people/h.ank2614aef2-c5d1-3f73-bbbd-45c59b9e2728"&gt;Heiko&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 12:47:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40654#M2737</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-05-25T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40655#M2738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very nice!&lt;/P&gt;&lt;P&gt;It's a&amp;nbsp;useful tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:48:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40655#M2738</guid>
      <dc:creator>Danny_Yang</dc:creator>
      <dc:date>2018-05-29T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40656#M2739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a note. R80.20 allows using so-called "Updatable objects" for cloud deployment and GEO (countries) objects. R80.20 MGMT + GW are required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 12:53:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40656#M2739</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2018-10-09T12:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40657#M2740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Gaia Embedded appliances 600-1400 do not support Geo Policy at all (or IPS/TP Packet Captures), but can the geo-dyn script technique illustrated by &lt;A href="https://community.checkpoint.com/migrated-users/55229"&gt;Heiko Ankenbrand&lt;/A&gt;‌ in this article be used to work around this limitation on the Gaia Embedded appliances running R77.20.XX?&amp;nbsp; My guess is no but wanted to see if anyone has given this a try.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;BR /&gt; Second Edition of my "Max Power" Firewall Book&lt;BR /&gt; Now Available at &lt;A href="http://www.maxpowerfirewalls.com" target="_blank"&gt;http://www.maxpowerfirewalls.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2018 13:46:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40657#M2740</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2018-10-21T13:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40658#M2741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See SK:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk126172&amp;amp;partition=General&amp;amp;product=Security" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk126172&amp;amp;partition=General&amp;amp;product=Security"&gt;Geo Location objects as network objects in R80.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 08:47:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40658#M2741</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-10-22T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40659#M2742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="41625" data-username="thalld401179d-0d5b-369d-a0f2-387c3ef54533" href="https://community.checkpoint.com/people/thalld401179d-0d5b-369d-a0f2-387c3ef54533"&gt;Timothy,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a look at it in the next few days. Maybe this will work on the SMB appliancen as well.&lt;/P&gt;&lt;P&gt;Unfortunately, embeded GAIA does not support all CLI commands. This always leads to problems with scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Heiko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 08:50:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40659#M2742</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2018-10-22T08:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40660#M2743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it's a useful script.&lt;/P&gt;&lt;P&gt;But I don't know how to execute it, I always see the&amp;nbsp;&lt;A class="" href="https://askubuntu.com/questions/372926/bash-syntax-error-near-unexpected-token" style="color: #242729; border: 0px; font-weight: normal; text-decoration: none; margin: 0px 0px 0.5em;"&gt;syntax error near unexpected token `('&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As well rigths has been assigned to the script (chmod 777 &amp;lt;script_name&amp;gt;).&lt;/P&gt;&lt;P&gt;So could you please advise smth to run it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 11:31:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40660#M2743</guid>
      <dc:creator>Egor_Cherkasov</dc:creator>
      <dc:date>2019-03-01T11:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40661#M2744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'dynamic_objects' on SMB seems to support all the command line arguments used in the script. So very likely that will work. However 'scp' from management server (R80.20 here) gives the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protocol error: illegal mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workaround is to transfer&amp;nbsp;/opt/CPrt-R80/conf/ip2country.csv manually and then run the script. It will check that file already exists and skip the scp part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 05:27:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40661#M2744</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-08T05:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40662#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Btw, Tim, I have similar system on my SMBs that is using 'sim dropcfg' to reject traffic from countries and/or custom networks. I can upload it here if anyone is interested in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2019 05:05:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40662#M2745</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-09T05:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40663#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On R80.20 the correct path is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/opt/CPrt-R80&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;.20&lt;/STRONG&gt;&lt;/SPAN&gt;/conf/ip2country.csv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2019 05:38:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/40663#M2746</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-09T05:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/48913#M3215</link>
      <description>&lt;P&gt;Would this script work with VSX gateway or just purely applicable to discreet firewall?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 00:04:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/48913#M3215</guid>
      <dc:creator>Andy_Yap</dc:creator>
      <dc:date>2019-03-28T00:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/49013#M3221</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/18680"&gt;@HristoGrigorov&lt;/a&gt; would like to see how you are doing country enforcement with sim dropcfg on embedded Gaia...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:02:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/49013#M3221</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2019-03-28T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: GEO Location Objects in Firewall Policy (with Dynamic Objects)</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/49027#M3222</link>
      <description>&lt;P&gt;Well, I do not pretend to be the most effective way but it works for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Linux box that downloads aggregated IP ranges for the different countries from&amp;nbsp;&lt;A href="http://www.ipdeny.com/ipblocks/data/aggregated/" target="_blank"&gt;http://www.ipdeny.com/ipblocks/data/aggregated/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Perl script that will generate simdrop.db file that contains:&lt;/P&gt;
&lt;P&gt;- ports that are blocked from Internet (telnet, rdp, etc)&lt;/P&gt;
&lt;P&gt;- custom IPs and networks that I want to blacklist&lt;/P&gt;
&lt;P&gt;- IP ranges for countries I want to block&lt;/P&gt;
&lt;P&gt;3. That file is placed on a web server running on that same box&lt;/P&gt;
&lt;P&gt;4. There is a script running on SMBs that will download simdrop.db and use 'sim dropcfg ...' to apply it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on few improvements:&lt;/P&gt;
&lt;P&gt;1. Use CheckPoint provided database as an alternative&lt;/P&gt;
&lt;P&gt;2. Web interface similar to what is in SmartConsole to specify countries to block&lt;/P&gt;
&lt;P&gt;3. Have SMB poll and auto-download and apply new database when such is published on the Web server (at the moment it is applied on boot and manually when needed)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 13:06:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/GEO-Location-Objects-in-Firewall-Policy-with-Dynamic-Objects/m-p/49027#M3222</guid>
      <dc:creator>HristoGrigorov</dc:creator>
      <dc:date>2019-03-28T13:06:45Z</dc:date>
    </item>
  </channel>
</rss>

