| Description | This article describes how to check FortiWeb operation and configuration when FortiWeb shows a wrong geolocation of public IP addresses. |
| Solution |
A FortiWeb can show a wrong IP geolocation (shows the location of a public IP address in another country instead its current and real location) when its Geolocation Database (or GEODB) is not updated or that IP was recently moved to another country.
This can be seen in the FortiWeb's Traffic or Attack logs. Check the current FortiWeb GEODB database version using the following command:
diag sys update info | grep -A 10 GEO FortiWeb GEODB
Each field of this command results shows this information:
If this FortiWeb GEODB is not updated, force a FortiWeb's update in System -> Config -> FortiGuard, then in FortiWeb Update Service Options select Update Now (this action DOES NOT REBOOT the FortiWeb):
This update can also be done using the CLI command (this command DOES NOT REBOOT the FortiWeb):
exec update-now
Wait about 3-5 minutes. After that, execute the following command and check the last update dates and versions, especially of FortiWeb GEODB:
diag sys update info
If the last update dates do not show the current date or the database versions are old, check the FortiWeb internet connection and the connectivity with FortiGuard services.
After confirming the FortiWeb GEODB is updated, check if geolocation is working correctly using the following command with one of the reported IP addresses:
diag test app geodb XX.XX.XX.XX (XX.XX.XX.XX = Reported IP address)
Based on the installed GEODB, FortiWeb will show the IP geolocation.
For example:
FortiWeb # diag test app geodb 186.155.14.106
This information can be confirmed using the FortiGuard services on this site: FortiGuard IP Geolocation Service
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.