1 lutego 2019

geoip

Diagnose geoip geoip-query

Firmware – FortiOS: 5.4 5.6 6.0
This command provides information about the geographic location of an IPv4 address, such as the country and the city or town.

Syntax
diagnose geoip geoip-query x.x.x.x

Example(s) Command
diagnose geoip geoip-query 8.8.8.8

Output

„geoname_id”:”6255149″,
„names”:
{
„en”:”North America”
}
},
„country”:
{
„geoname_id”:”6252001″,
„iso_code”:”US”,
„names”:
{
„en”:”United States”
}
},
„location”:
{
„accuracy_radius”:”1000″,
„latitude”:”37.386000″,
„longitude”:”-122.083800″,
„metro_code”:”807″,
„time_zone”:”America/Los_Angeles”
},
„postal”:
{
„code”:”94035″
},
„registered_country”:
{
„geoname_id”:”6252001″,
„iso_code”:”US”,
„names”:
{
„en”:”United States”
}
},
„subdivisions”:
[
{
„geoname_id”:”5332921″,
„iso_code”:”CA”,
„names”:
{
„en”:”California”
}
}
]



Diagnose geoip iprange

Firmware – FortiOS: 6.0
This command provides a list of IPv4 ranges for a specified country.

Syntax
diagnose geoip iprange

If a country name has spaces in it remember to use quotation marks.
For example, for the US it would be „United States”.

Example
diagnose geoip iprange Tonga
IP range for Tonga(20308)
43.255.148.0 — 43.255.151.255
57.71.48.0 — 57.71.63.255
103.239.160.0 — 103.239.163.255
103.242.126.0 — 103.242.127.255
103.245.160.0 — 103.245.163.255
175.176.144.0 — 175.176.151.255
202.43.8.0 — 202.43.15.255
202.134.24.0 — 202.134.31.255
Total 8 entries



Diagnose geoip iprange6

Firmware – FortiOS: 6.0
This command provides a list of IPv6 ranges for a specified country.

Syntax
diagnose geoip iprange6

If a country name has spaces in it remember to use quotation marks.
For example, for the US it would be „United States”.

Example(s)
diagnose geoip iprange6 Tonga
IPv6 range for Tonga(20308)
2400:6400:: — 2400:6400:ffff:ffff:ffff:ffff:ffff:ffff
2402:1940:: — 2402:1940:ffff:ffff:ffff:ffff:ffff:ffff
2406:1500:: — 2406:1500:ffff:ffff:ffff:ffff:ffff:ffff
2a01:ce99:2000:: — 2a01:ce99:ffff:ffff:ffff:ffff:ffff:ffff
2a07:1500:fed5:: — 2a07:1500:fed5:ffff:ffff:ffff:ffff:ffff
Total 5 entries