Is there any way to know the public IP address of a Fortinet? There are many services such as icanhazip.com that tell you the current IP. In Linux, I would just run:
curl http://icanhazip.com
How could that be done with Fortinet (I am using a fortigat 200B in case it's noteworthy)
Some cases come to my mind:
- I want to know the default GW I am using in a fast way
- My DSL router is NATing, so I don't know directly the public IP address
- Or IPs assigned as DCHP/PPPoE (as stated by @mbrownnyc)
Since it doesn't seem possible to use any form of curl/wget from the command line, another option would be to use nslookup (still not sure if it's a valid FortiGate command or only for some forti* products). See here for what I mean getting external IP