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.
gakshay
Staff
Staff
Article Id 193832
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:
#diag sys waninfo
Example:
#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=1024
Command fail. Return code 5
To get information about the address's inclusion as a member of the Fortinet Blacklist, the command is:
#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

Contributors