FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
btey
Staff
Staff
Article Id 216735
Description This article describes the method to delete/restore the IP Geography DB.
Scope FortiGate IP Geography DB.
Solution

To delete the existing IP Geography DB.
Warning: This operation will reboot the system

 

Command to delete IP Geography DB:

 

# diagnose geoip delete-geoip-db

 

Output:

 

This operation will delete the Geoip Database and reboot the system!
Only super admin has the permission with the command.
Do you want to continue? (y/n)y

Admin:admin
Password:
File /etc/geoip_db.gz deleted successfully.


After reboot, update to the latest GeoDB version from the FortiGuard server, with the command 'execute update-geo-ip'.

 

If the connection to FortiGuard is not available,  upgrade the FOS firmware after reboot.

 

To verify the status after deleting IP Geography DB:

 

# diagnose autoupdate version

 

Looking for IP Geography DB as below. The version will be showing 0.00000

 

Output as below:

 

IP Geography DB
---------
Version: 0.00000
Contract Expiry Date: n/a
Last Updated using manual update on Tue Nov 30 00:00:00 1999
Last Update Attempt: n/a
Result: Updates Installed

 

To install IP Geography DB manually:

 

# execute update-geo-ip

 

Output from update debug:

 

do_update[523]-UPDATE successful
upd_cfg_extract_geoip_db_version[594]-version=06004000IPGO00000000000000000000

 

To verify the status after updating the IP Geography DB:

 

# diagnose autoupdate version

 

Looking for IP Geography DB as below. The latest version will be showing.

 

Output as below:

 

IP Geography DB
---------
Version: 3.00132
Contract Expiry Date: n/a
Last Updated using manual update on Tue Jul 5 11:12:05 2022
Last Update Attempt: Tue Jul 5 11:12:05 2022
Result: Updates Installed

Contributors