Fortigate Basic CLI Commands
- get sys status
- get system performance status
- get system performance top
- get hardware memory
- diag sys session full-stat
- diag sys session list
- get system session status
- get system interface physical
- diagnose hardware deviceinfo nic internal
- get system arp
- execute clear system arp table
- get router info routing-table all
- get router info routing-table details 192.168.3.0
- show full-configuration
- execute reboot
- show system dns
- execute ping
- execute ping-options ?
Configure Hostname
config system global
set hostname FG-FW
end
Configure Interface
config system interface edit port2
set allowaccess ping
set ip 192.168.1.254/24
set alias LAN
end
Configure DNS
config system dns
set primary 8.8.8.8
set secondary 1.1.1.1
end
Configure Route
config router static
edit 1
set dst 0.0.0.0/0
set gateway 192.168.80.2
set distance 10
set device port1
end
Configure Packet Capture
config firewall policy
edit 1
set capture-packet enable
end