CheatSheet FortiOS 7.0 v1.0
CheatSheet FortiOS 7.0 v1.0
CheatSheet FortiOS 7.0 v1.0
troubleshooting of FortiGates with diag firewall iplist list List of IPs on VIP and IP-Pools
diag debug crashlog read Crash log get router info routing-table all Routing table
get router info routing-table Shows Routing decision for
details x.x.x.x specified Destination-IP
Traffic Processing get router info routing-table Routing table with inactive
database routes
General Debugging
get router info kernel Forwarding information base
Realtime debugger for different
diag debug appl [appl] [level]
applications diag firewall proute list List of policy-based routes
diag test appl [appl] [test_level] Monitor proxy operations diag ip rtcache list List of route cache
diag debug console timestamp Overview of dynamic routing
Enables timestamp in console get router info protocols
enable protocol configuration
Enable/disable output for “diag exec router restart Restart of routing process
diag debug [enable/disable]
debug” or “diag ip” commands
diag sys link-monitor Shows link monitor status / per
diag debug reset Reset debug levels status/interface/launch interface / for WAN LLB
v1.0 page 1
FortiGate
Cheat Sheet - Firewalling for FortiOS 7.0
IPS Authentication
diag ips anomaly list Lists statistics of DoS-Policies Authentication
diag ips packet status IPS packet statistics diag firewall auth filter … Filter for authentication list
diag test appl ipsmonitor 2 Enable / disable IPS engine diag firewall auth list List of authenticated user
diag test appl ipsmonitor 5 Toggle bypass status diag test authserver
diag test appl ipsmonitor 99 Restart all IPS processes [auth-protocol] [server] [user] Authentication test
[password]
Web-&Email-Filter Debugging of local
diag debug appl authd -1
authentication protocol
Webfilter / AntiSpam Server
diag debug rating Debugging of remote
information diag debug appl fnbamd -1
authentication protocol
diag webfilter fortiguard
Statistics of FortiGuard requests
statistics list
FortiToken
diag webfilter fortiguard cache
List content of webfilter cache diag fortitoken info Current FortiToken status
dump
exec fortitoken activate [Forti-
diag test appl urlfilter 1 Lists webfilter test commands Manual FortiToken activation
TokenSN]
diag debug urlfilter src-addr
Filter and Realtime Debugging diag deb appl forticldd 255 FortiToken activation debugging
x.x.x.x
for Webfiltering
diag debug appl urlfiter -1 diag fortitoken debug enable FortiToken debugging
diag emailfilter fortishield servers Displays FortiShield server list exec fortitoken-mobile import Recover Trial FortiToken (delete
0000-0000-0000-0000-0000 existing Trial Token before)
diag emailfilter fortishield stat list Statistics of FortiShield requests
FSSO
DNS-Filter
diag debug authd fsso filter Filter for FSSO user list
Shows server used for DNS-
diag test appl dnsproxy 3 diag debug authd fsso list List of FSSO authenticated user
Filtering
diag debug authd fsso
List of FSSO collector agents
server-status
Firewall Policy diag debug fsso-polling … Info for clientless polling FSSO
v1.0 page 2
FortiGate
Cheat Sheet - Networking for FortiOS 7.0
Wireless Controller
exec wireless-controller restart- Restart wireless controller
SD-WAN & Security Fabric acd daemon
SD-WAN exec wireless-controller reset-wtp Restart FortiAPs
diag sys sdwan member Provide Interface details diag wireless-controller
List rogue APs
diag sys sdwan health-check wlac -c ap-rogue
State of SLAs
status | filter <name> exec wireless-controller spectral-
diag sys sdwan service <rule-id> SD-WAN-Rule-State scan <wtp-id> <radio-id > <on |
Start or stop spectrum analysis
off> <duration> <channel>
diag sys sdwan intf-sla-log <intf- <report-interval>
Link Traffic History
name>
diag wireless-controller wlac -c rf-
diag sys sdwan sla-log <sla> sa <wtp-id> <radio-id>
SLA-Log on specific interface
<link_id> <channel> Show spectrum analysis results
diag test appl lnkmtd 0/1/2 Statistics of link-monitor get wireless-controller spectral-
info <wtp-id> <radio-id>
Real-time debugger of link-
diag debug appl link-mon -1
monitor
Switch Controller
v1.0 page 3
Cheat Sheet – Other FortiGate
for FortiOS 7.0
System
Default Device Information Hardware Acceleration
admin / no password Default login Disable session offloading per
set auto-asic-offload disable
firewall policy
Default IP on port1, internal or
192.168.1.99 Disable VPN offloading per
management port set npu-offload disable
Phase 1
9600/8-N-1
Default serial console settings
hardware flow control disabled
HQIP Hardware Check
Factory Reset
Download Hardware Quick
exec factoryreset Reset whole configuration
https://support.fortinet.com → Inspection Package (HQIP)
exec factoryreset-shutdown Reset config and shutdown Download → HQIP Images to scan hardware for
possible faults
Reset with retaining admin,
exec factoryreset2
interfaces and static routing
exec factoryreset keepvmlicense Reset whole config but license
General Information
Firmware Update Fortinet Links
Show config errors after Documentation, Cookbooks,
diag debug config-error-log read docs.fortinet.com
firmware upgrades Release Notes
kb.fortinet.com Knowledge Base
VDOMs
www.fortiguard.com FortiGuard Website
sudo global/ vdom-name Sudo-command to access
support.fortinet.com Support Site (Login required)
diag / exec / show / get global / VDOM settings directly
forum.fortinet.com User Forum (Login required)
Transparent Mode Fortinet Developer Network
fndn.fortinet.net
(Login)
diag netlink brctl name host Bridge MAC table
blog.boll.ch Boll Blog
Workspace Mode
exec config-transaction Start/abort/commit of FortiGate most used ports
start/abort/commit Workspace Mode
TCP/443, TCP & UDP/53 TCP &
diag sys config-transaction status State of Workspace Mode FortiGuard Queries
UDP/8888
(enabled/disabled)
TCP/389, UDP/389 LDAP, PKI Authentication
diag sys config-transaction show Shows all active Workspace
txn-info Modes Contract Validation, FortiToken,
TCP/443
Firmware Updates
diag sys config-transaction show Pending CLI commands of
txn-cli-commands Workspace Mode TCP/443, TCP/8890 AV and IPS Update
UDP/500, ESP IPSEC VPN
UDP/500, UDP/4500 IPSEC VPN with NAT-Traversal
Hardware
TCP/514 FortiManager, FortiAnalyzer
Hardware Information
TCP/1812 RADIUS Authentication
diag hardware sysinfo cpu CPU information TCP/1813 RADIUS Accounting
Conserve Mode details. UDP/5246, UDP/5247 CAPWAP
diag hardware sysinfo conserve “Mem”: Memory / “FD”: File
descriptor TCP/8001 FSSO
diag hardware sysinfo memory Memory size, utilization TCP/8013 Compliance and Security Fabric
Disk Operation
diag hardware deviceinfo disk List disks with partitions
exec disk list List the disks and partitions
exec disk scan [ref_int] Run a disk check operation
Format the specified partitions
exec disk format [ref_int]
or disks and reboots the system
Formatting the log disk, reboot
exec formatlogdisk
included
v1.0 page 4