Ip2country_name(ip)
Returns the GEO information (country name) of an IP address.
Syntax
Ip2country_name(ip);
Arguments
| Name | Description |
|---|---|
|
ip |
A string which specifies the IP address. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
cip = IP:client_addr()
cnm = ip2country_name(cip)
debug(“cname %s\n”, cnm)
}
Supported Version
FortiADC version 5.2.x and later.