Fortigate Firewall Commandline
Fortigate Firewall Commandline
Cheatsheet Guide
show interfaces
15 Display descriptions of all interfaces
description
clear interface
23 Reset statistics for a specific interface
<interface>
show threat-
25 Display statistics for threat detection
detection statistics
clear threat-detection
26 Clear threat detection statistics
statistics
show access-list
40 Display a specific access control list
<name>
show interfaces
2 Display brief information about interfaces
brief
clear line
9 Clear a specific terminal line
<line_number>
show running-
Display the configuration of a specific
15 config interface
interface
<interface>
show interfaces
31 Display interface counters
counters
show clock
33 Display the configured time zone
timezone
show ip route
34 Display the route to a specific network
<network>
show running-
Display the configuration of a specific
36 config interface
interface
<interface>
Privilege
sr.no CLI Command Mode Description
1 interface <interface> Enter interface configuration mode
ip address
2 Assign an IP address to an interface
<ip_address>
snmp-server
9 community Set SNMP community string
<community_string> Global Config
ip route
12 <destination_network> Add a static IP route
<mask> <next-hop>
access-list <number>
13 permit/deny Add or modify an access control list rule
<protocol>
interface Loopback
19 Create a loopback interface
<number>
ip access-list
Create an extended or standard access
24 <extended/standard>
control list
<name>
ip dhcp excluded-
Exclude a range of IP addresses from
34 address <start_ip>
DHCP pool
<end_ip>
service password-
36 Enable password encryption
encryption
interface <interface>
40 Enter subinterface configuration mode
<subinterface>
ip dhcp relay
41 Enable DHCP relay information option
information option
ip dhcp pool
42 Enter DHCP pool configuration mode
<pool_name>
no service password-
43 Disable password recovery mechanism
recovery