How to get a list of ports listening in a Fortigate firewall

fortigatefortinet

Since several services can be offered by the Fortigate itself (SSH and web access for admin tasks, SSL VPN, IPSec VPN…) I would like to check at a glance all ports where any service is being offered by a given unit.

Is it possible to get a list of all listening ports in a Fortigate firewall, either via CLI or Web Interface? Im looking for something similar to the output of netstat -l in Unix/Linux.

Best Answer

Try with:

diagnose sys tcpsock | grep 0.0.0.0