Technical Tip: Geography Based Addressing (version 5.4 and above)
Description
Solution
In the following examples, a geographic-based address for China is added.
Via CLI:
config firewall address
edit China
set type geography
set country CN
set associated-interface wan1
end
end
Via GUI:
- Go to Policy & Objects -> Addresses. Select Create New and Address.
- Field Name: Enter China.
- Field Type, select Geography.
- From the Country/Region list, select China.
- From Interface, select WAN1 or Any Interface.
- Select OK.

To know the current FortiGuard IP Geography database version in the FortiGate.
diagnose autoupdate versions | grep -A5 Geo
To show the IP range and the total IP range associated with the country:
diagnose firewall ipgeo ip-list <country id>
Determine which country a specific IP address belongs to:
diagnose firewall ipgeo ip2country <IP>
Update FortiGuard IP Geography database:
execute update-geo-ip
Related article:
Technical Tip: Geography Based Addressing (Version 5.0 and below)
