Skip to main content
Dhruvin_patel
Staff
Staff
January 29, 2026

Technical Tip: Error 'is not in kernel IP-country DB; occurs while identifying an IP’s country on low-end FortiGate models after upgrading FortiOS.

  • January 29, 2026
  • 0 replies
  • 459 views
Description This article describes behavior changes in the Geo-IP feature set on low-end FortiGate models that may lead to certain countries not being correctly identified by their IP and instead presenting a message 'not in kernel ip-country DB.'
Scope FortiGate 7.4.9+, 7.6.4+, 8.0.0+.
Solution

In some cases, the IP geolocation database does not appear to have been updated properly after the upgrade.

 

For example:

 

diagnose firewall ipgeo ip2country 208.84.195.241
208.84.195.241 is not in kernel ip-country DB.

 

The error message 'is not in kernel IP-country DB', observed in FortiOS 7.4.9 (or FortiOS 7.6.4+ and FortiOS 8.0.0+) is due to a behavioral change introduced in this version.

 

This change was implemented to optimize memory utilization on low-end FortiGate (where system memory is 2GB or less) models, where memory is typically the primary bottleneck. The  geo-IP installation logic in the kernel was modified so that only the geo-IP entries that are actively used are installed into the kernel. 

 

This behavior change has two main aspects:

  1. When a GeoDB upgrade occurs, only the geo-IP entries that are in use are installed into the kernel.
  2. When a country is configured in firewall.address, only the corresponding geo-IP entries are installed into the kernel.

 

For example, the IP address 208.84.195.241 is associated with the geolocation of the U.S. Virgin Islands.

Navigate to Policy & Objects -> Addresses -> Create New and add Country/Region address object as shown in the screenshot below.

 

kb.PNG

 

Afterward, FortiGate will display the correct geolocation of the IP address.

 

diagnose firewall ipgeo ip2country 208.84.195.24
208.84.195.241 is in country: VI, registered country is VI, is not anycast ip.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!