Created on
10-12-2021
02:11 AM
Edited on
01-20-2025
09:55 PM
By
Anthony_E
Description
This article describes how to override FortiGate's Geo-IP address database.
FortiGate's Geo-IP address database shows and uses the physical location of an IP address by default, but in some cases, an IP address can be physically set on a device in one country, but that address is registered to a different country. The geo IP database can be overridden with the commands outlined below.
Note: If VDOMs are enabled on the FortiGate, the ipgeo override feature is configured from the 'global' VDOM:
config vdom
edit global
config system geoip-override
edit "United States"
config ip-range
edit 1
set start-ip 173.243.138.81
set end-ip 173.243.138.81
next
end
next
end
Note: If VDOMs are not enabled on the FortiGate, there is no need to specify the VDOM when entering the ipgeo override commands:
config system geoip-override
edit "United States"
config ip-range
edit 1
set start-ip 173.243.138.81
set end-ip 173.243.138.81
next
end
next
end
To confirm that the above configuration was successful, use any of the below commands:
Note: If VDOMs are enabled on the FortiGate, the 'diagnose firewall ipgeo override' command must be run from the 'global' VDOM, but all others can be run from any VDOM:
diagnose firewall ipgeo override
Location: USA, code: A0 (ip-ranges 0) (ip6-ranges 0)
Location: United States, code: A1 (ip-ranges 1) (ip6-ranges 0)
ip-range 1: 173.243.138.81 - 173.243.138.81
Related article:
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.