> Source: [sk45003](https://support.checkpoint.com/results/sk/sk45003)

# sk45003 - Adding North Korea (or any country) to the IPS Geo Protection

| Property | Value |
|----------|-------|
| Solution ID | sk45003 |
| Date Created | 2010-06-17 |
| Last Modified | 2016-12-20 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |

## Symptoms

- Cannot find North Korea in IPS Geo Protection in SmartDashboard.

## Cause

Prior to R75.40, North Korea is not included in the list of countries in the 'IpToCountry.csv' file, and has not been added with any update.

Starting with R75.40, North Korea country is listed as "Korea, Democratic People's Republic".

## Solution

Follow these steps:

*

  R75.40 and above
  ----------------

  Search for "`Korea`" and select *Korea, Democratic People's Republic* as the target.   

*

  R75.30 and lower
  ----------------

  1. Close all SmartConsole windows (SmartDashboard, SmartView Tracker, SmartView Monitor, etc.).   

  2. Connect to Security Management Server with [GuiDBedit Tool](http://supportcontent.checkpoint.com/solutions?id=sk13009).   

  3. Press CTRL+F (or go to '`Search`' menu - '`Find`') - paste **`update_countries_list`** - click on '`Find Next`'.   

  4. In the lower pane, right-click on the **`update_countries_list`** - '`Edit...`' - choose "**`false`** " - click on '`OK`'.   

     Note: The default value is "**`true`** ". Setting the value to "**`false`** " keeps the country IP lists from being updated.   

  5. Save the changes: go to '`File`' menu - click on '`Save All`'.   

  6. Close the GuiDBedit Tool.   

  7. Find the IP addresses ranges of the country you want to block.  
     For example, use <http://www.ipaddresslocation.org/ip_ranges/get_ranges.php> to find all the blocks.   

  8. Connect to the command line on Security Gateway (over SSH, or console).   

  9. Backup the current *$FWDIR/tmp/geo_location_tmp/updates/IpToCountry.csv* file:   

     **`[Expert@HostName]# cp $FWDIR/tmp/geo_location_tmp/updates/IpToCountry.csv $FWDIR/tmp/geo_location_tmp/updates/IpToCountry.csv_ORIGINAL`**   

  10. Edit the IP addresses ranges in the `$FWDIR/tmp/geo_location_tmp/updates/IpToCountry.csv` file, so your selected country's IP range (i.e., North Korea) will be added to another country you are blocking. Make sure the IP addresses blocks are written in the correct [format](http://supportcontent.checkpoint.com/solutions?id=sk94364).   

      **`[Expert@HostName]# vi $FWDIR/tmp/geo_location_tmp/updates/IpToCountry.csv`**   

  11. Connect to Security Management Server with SmartDashboard.   

  12. Install the policy onto the relevant Security Gateway / Cluster object.   

  13. You should see the blocks from the new IP range show up as a block for the other country.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
