Technical Tip: To determine a FortiGate geographical location
Description
This article describes the procedure to determine a FortiGate geographical location from its public IP address.
Solution
The diagnostic command to get the information is:
vr - Get Vendor/Reason List.
ip - Get Information on Specific IP.
ctx - Show Local Context.
If using the IP option, specify the IPv4 address after the IP option.
Example:
This article describes the procedure to determine a FortiGate geographical location from its public IP address.
Solution
The diagnostic command to get the information is:
#diag sys waninfoExample:
#diagnose sys waninfo
Public/WAN IP: 209.87.240.98
Location:
Latitude: 45.250100
Longitude: -75.916100
Accuracy radius: 5
Time zone: America/Toronto
City: Stittsville
Subdivisions:
0: Ontario
Country: Canada
Postal:
Code: K2S
Continent: North America
Registered country: Canada
ISP: Unknown
Failed to query whether 209.87.240.98 is in the FortiGuard IP Blacklist: ret=-1 buf_sz=1024To get information about the address's inclusion as a member of the Fortinet Blacklist, the command is:
Command fail. Return code 5
#diag fortiguard ipblacklist [db | vr | ip | ctx]db - Get Database and Vendor/Reason List Versions.
vr - Get Vendor/Reason List.
ip - Get Information on Specific IP.
ctx - Show Local Context.
If using the IP option, specify the IPv4 address after the IP option.
Example:
#diagnose fortiguard ipblacklist ip 209.87.240.98
