<?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: Checking IP Against Geo-Protection Database in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38858#M2346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file IpToCountry.csv, even on a recent R77.30 + Jumbo take 205, reads : &lt;/P&gt;&lt;P&gt;# Download time: 11:15:25, Wed Aug 29, 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't this a bit old.&lt;/P&gt;&lt;P&gt;Knowing that, in these years with increasing IPv4 shortage, blocks of IPv4 addresses have be sold and been transferred, sometimes to other countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one update this file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 13:49:47 GMT</pubDate>
    <dc:creator>Marc_Lampo</dc:creator>
    <dc:date>2017-02-01T13:49:47Z</dc:date>
    <item>
      <title>Checking IP Against Geo-Protection Database</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38857#M2345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;Overview&lt;/H2&gt;&lt;P&gt;This code takes in a user input for an IPv4 address and searches for it in the Geo-Protection Database, returning the country of origin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;This python script allows a user to quickly search the IpToCountry.csv file to find the country of origin for a given IPv4 address.&amp;nbsp; It does all the necessary IP to decimal conversions automatically and uses that to iterate through the CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on how the&amp;nbsp; IpToCountry.csv file works, please see SK94364&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Instructions&lt;/H2&gt;&lt;P&gt;Download the Python scripts below and place them in the same directory.&amp;nbsp; (Note: Script was written in Python 2.7)&lt;/P&gt;&lt;P&gt;Copy the IpToCountry.csv file from a security gateway, located in the &lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 14px;"&gt;$FWDIR/tmp/geo_location_tmp/updates/ &lt;/SPAN&gt;directory, to the same directory as the files above&lt;/P&gt;&lt;P&gt;Run Geoprotect.py&lt;/P&gt;&lt;P&gt;Input the IPv4 address you'd like to check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Code Version&lt;/H2&gt;&lt;P&gt;Code version 1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Tested on version&lt;/H2&gt;&lt;P&gt;R77.30 IpToCountry.csv file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13px; color: #ff0000;"&gt;&lt;STRONG&gt;NOTICE: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; color: #999999;"&gt;&lt;STRONG&gt;By using this sample code you agree to terms and conditions in this &lt;A href="https://community.checkpoint.com/docs/DOC-1042"&gt;Not authorized to view the specified document 1042&lt;/A&gt;​&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:45:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38857#M2345</guid>
      <dc:creator>Nate_Johnson</dc:creator>
      <dc:date>2017-01-26T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Checking IP Against Geo-Protection Database</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38858#M2346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file IpToCountry.csv, even on a recent R77.30 + Jumbo take 205, reads : &lt;/P&gt;&lt;P&gt;# Download time: 11:15:25, Wed Aug 29, 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't this a bit old.&lt;/P&gt;&lt;P&gt;Knowing that, in these years with increasing IPv4 shortage, blocks of IPv4 addresses have be sold and been transferred, sometimes to other countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one update this file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:49:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38858#M2346</guid>
      <dc:creator>Marc_Lampo</dc:creator>
      <dc:date>2017-02-01T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Checking IP Against Geo-Protection Database</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38859#M2347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you are not running the IPS blade. My file is updated regularly and they get the data from Maxmind.com. Maxmind updates the data regularly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 03:30:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38859#M2347</guid>
      <dc:creator>Jeff_St_John</dc:creator>
      <dc:date>2017-03-31T03:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Checking IP Against Geo-Protection Database</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38860#M2348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just saw this thread, maybe a reply&amp;nbsp;is not needed anymore, however I thought I would provide some additional information here to clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;sk95976 -&amp;nbsp;How GEO protection country file is getting updated&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;sk79360 -&amp;nbsp;How to check if Geo Protections have been updated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;The Gateway needs internet connectivity to get the IpToCountry updates from the Check Point Cloud (Maxmind.com is correct). If there is no internet connectivity available, you can also follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;SPAN&gt;sk84801 -&amp;nbsp;Updating Geo IPs on Offline Gateways.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;I hope this information helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 17:21:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checking-IP-Against-Geo-Protection-Database/m-p/38860#M2348</guid>
      <dc:creator>Pablo_Munoz</dc:creator>
      <dc:date>2018-07-04T17:21:37Z</dc:date>
    </item>
  </channel>
</rss>

