Fortinet FortiGate (FortiOS) チート集
FortiGate / FortiOS の system、VDOM、interface、firewall policy、NAT、SSL VPN、IPsec、routing-table、diagnose sniffer/debug flow を現場向けに整理したチート集。
- 更新日
- 2026-05-29
- 参照範囲
- 公式ドキュメント / man page / 主要ベンダーCLI
- 対象実装
- 主要 Linux / BSD / ネットワーク機器 CLI の一般的な実装
- 免責
- OS とバージョン差分は実環境で確認してください。
このチートシートの使いどころ
Fortinet FortiGate (FortiOS) チート集は、FortiGate / FortiOS の system、VDOM、interface、firewall policy、NAT、SSL VPN、IPsec、routing-table、diagnose sniffer/debug flow を現場向けに整理したチート集。 対象は公式ドキュメント、man page、主要ベンダー CLI で確認できる現行の一般的な実装です。カテゴリはSystem、Interface / VDOM、Policy、NAT、VPNを中心に、50件のコマンドや値を用途別に引けます。障害調査、設定変更前の確認、作業メモ作成で、Fortinet、FortiGate、FortiOS、firewall、VDOMに関連する操作を短時間で探すために使います。
50 / 50
get system statusFortinet FortiOS で get system status の現在値や状態を確認する
FortiGate-VM # get system statusshow full-configuration system globalFortinet FortiOS で show full-configuration system global の状態や設定を確認する
FortiGate-VM # show full-configuration system globalconfig system globalFortinet FortiOS で config system global の設定または操作を実行する
FortiGate-VM # config system globalset hostnameFortinet FortiOS で set hostname の設定または操作を実行する
FortiGate-VM (global) # set hostname fw-tokyo-1execute backup config tftpFortinet FortiOS で execute backup config tftp の運用操作を実行する
FortiGate-VM # execute backup config tftp backup.conf 10.0.0.10execute restore config tftpFortinet FortiOS で execute restore config tftp の運用操作を実行する
FortiGate-VM # execute restore config tftp backup.conf 10.0.0.10config vdomFortinet FortiOS で config vdom の設定または操作を実行する
FortiGate-VM # config vdomedit rootFortinet FortiOS で edit root の設定または操作を実行する
FortiGate-VM (vdom) # edit rootconfig system interfaceFortinet FortiOS で config system interface の設定または操作を実行する
FortiGate-VM (root) # config system interfaceedit port1Fortinet FortiOS で edit port1 の設定または操作を実行する
FortiGate-VM (interface) # edit port1set ipFortinet FortiOS で set ip の設定または操作を実行する
FortiGate-VM (port1) # set ip 192.0.2.2/30set allowaccessFortinet FortiOS で set allowaccess の設定または操作を実行する
FortiGate-VM (port1) # set allowaccess ping https sshset aliasFortinet FortiOS で set alias の設定または操作を実行する
FortiGate-VM (port1) # set alias ISP-Uplinkset roleFortinet FortiOS で set role の設定または操作を実行する
FortiGate-VM (port1) # set role wanget system interface physicalFortinet FortiOS で get system interface physical の現在値や状態を確認する
FortiGate-VM # get system interface physicalconfig firewall addressFortinet FortiOS で config firewall address の設定または操作を実行する
FortiGate-VM # config firewall addressedit LAN-NETFortinet FortiOS で edit LAN-NET の設定または操作を実行する
FortiGate-VM (address) # edit LAN-NETset subnetFortinet FortiOS で set subnet の設定または操作を実行する
FortiGate-VM (LAN-NET) # set subnet 10.0.0.0 255.255.255.0config firewall service customFortinet FortiOS で config firewall service custom の設定または操作を実行する
FortiGate-VM # config firewall service customconfig firewall policyFortinet FortiOS で config firewall policy の設定または操作を実行する
FortiGate-VM # config firewall policyedit 10Fortinet FortiOS で edit 10 の設定または操作を実行する
FortiGate-VM (policy) # edit 10set srcintfFortinet FortiOS で set srcintf の設定または操作を実行する
FortiGate-VM (10) # set srcintf "lan"set dstintfFortinet FortiOS で set dstintf の設定または操作を実行する
FortiGate-VM (10) # set dstintf "wan1"set srcaddrFortinet FortiOS で set srcaddr の設定または操作を実行する
FortiGate-VM (10) # set srcaddr "LAN-NET"set dstaddrFortinet FortiOS で set dstaddr の設定または操作を実行する
FortiGate-VM (10) # set dstaddr "all"set serviceFortinet FortiOS で set service の設定または操作を実行する
FortiGate-VM (10) # set service "HTTPS" "DNS"set action acceptFortinet FortiOS で set action accept の設定または操作を実行する
FortiGate-VM (10) # set action acceptset schedule alwaysFortinet FortiOS で set schedule always の設定または操作を実行する
FortiGate-VM (10) # set schedule "always"set nat enableFortinet FortiOS で set nat enable の設定または操作を実行する
FortiGate-VM (10) # set nat enableconfig firewall ippoolFortinet FortiOS で config firewall ippool の設定または操作を実行する
FortiGate-VM # config firewall ippoolset startipFortinet FortiOS で set startip の設定または操作を実行する
FortiGate-VM (pool1) # set startip 203.0.113.20set endipFortinet FortiOS で set endip の設定または操作を実行する
FortiGate-VM (pool1) # set endip 203.0.113.30config vpn ssl settingsFortinet FortiOS で config vpn ssl settings の設定または操作を実行する
FortiGate-VM # config vpn ssl settingsset servercertFortinet FortiOS で set servercert の設定または操作を実行する
FortiGate-VM (settings) # set servercert "Fortinet_Factory"config vpn ipsec phase1-interfaceFortinet FortiOS で config vpn ipsec phase1-interface の設定または操作を実行する
FortiGate-VM # config vpn ipsec phase1-interfaceset remote-gwFortinet FortiOS で set remote-gw の設定または操作を実行する
FortiGate-VM (to-branch) # set remote-gw 198.51.100.1set psksecretFortinet FortiOS で set psksecret の設定または操作を実行する
FortiGate-VM (to-branch) # set psksecret S3cretKeyconfig vpn ipsec phase2-interfaceFortinet FortiOS で config vpn ipsec phase2-interface の設定または操作を実行する
FortiGate-VM # config vpn ipsec phase2-interfaceget router info routing-table allFortinet FortiOS で get router info routing-table all の現在値や状態を確認する
FortiGate-VM # get router info routing-table allconfig router staticFortinet FortiOS で config router static の設定または操作を実行する
FortiGate-VM # config router staticset gatewayFortinet FortiOS で set gateway の設定または操作を実行する
FortiGate-VM (1) # set gateway 192.0.2.1set deviceFortinet FortiOS で set device の設定または操作を実行する
FortiGate-VM (1) # set device "wan1"get router info bgp summaryFortinet FortiOS で get router info bgp summary の現在値や状態を確認する
FortiGate-VM # get router info bgp summaryexecute pingFortinet FortiOS で execute ping の運用操作を実行する
FortiGate-VM # execute ping 8.8.8.8execute tracerouteFortinet FortiOS で execute traceroute の運用操作を実行する
FortiGate-VM # execute traceroute 8.8.8.8diagnose sniffer packetFortinet FortiOS で diagnose sniffer packet の診断情報を取得する
FortiGate-VM # diagnose sniffer packet any "host 192.0.2.10" 4diagnose debug flow filter addrFortinet FortiOS で diagnose debug flow filter addr の診断情報を取得する
FortiGate-VM # diagnose debug flow filter addr 192.0.2.10diagnose debug flow trace startFortinet FortiOS で diagnose debug flow trace start の診断情報を取得する
FortiGate-VM # diagnose debug flow trace start 50diagnose debug enableFortinet FortiOS で diagnose debug enable の診断情報を取得する
FortiGate-VM # diagnose debug enablediagnose debug disableFortinet FortiOS で diagnose debug disable の診断情報を取得する
FortiGate-VM # diagnose debug disable| Command | Description | Example | Copy |
|---|---|---|---|
get system status | Fortinet FortiOS で get system status の現在値や状態を確認する | FortiGate-VM # get system status | |
show full-configuration system global | Fortinet FortiOS で show full-configuration system global の状態や設定を確認する | FortiGate-VM # show full-configuration system global | |
config system global | Fortinet FortiOS で config system global の設定または操作を実行する | FortiGate-VM # config system global | |
set hostname | Fortinet FortiOS で set hostname の設定または操作を実行する | FortiGate-VM (global) # set hostname fw-tokyo-1 | |
execute backup config tftp | Fortinet FortiOS で execute backup config tftp の運用操作を実行する | FortiGate-VM # execute backup config tftp backup.conf 10.0.0.10 | |
execute restore config tftp | Fortinet FortiOS で execute restore config tftp の運用操作を実行する | FortiGate-VM # execute restore config tftp backup.conf 10.0.0.10 | |
config vdom | Fortinet FortiOS で config vdom の設定または操作を実行する | FortiGate-VM # config vdom | |
edit root | Fortinet FortiOS で edit root の設定または操作を実行する | FortiGate-VM (vdom) # edit root | |
config system interface | Fortinet FortiOS で config system interface の設定または操作を実行する | FortiGate-VM (root) # config system interface | |
edit port1 | Fortinet FortiOS で edit port1 の設定または操作を実行する | FortiGate-VM (interface) # edit port1 | |
set ip | Fortinet FortiOS で set ip の設定または操作を実行する | FortiGate-VM (port1) # set ip 192.0.2.2/30 | |
set allowaccess | Fortinet FortiOS で set allowaccess の設定または操作を実行する | FortiGate-VM (port1) # set allowaccess ping https ssh | |
set alias | Fortinet FortiOS で set alias の設定または操作を実行する | FortiGate-VM (port1) # set alias ISP-Uplink | |
set role | Fortinet FortiOS で set role の設定または操作を実行する | FortiGate-VM (port1) # set role wan | |
get system interface physical | Fortinet FortiOS で get system interface physical の現在値や状態を確認する | FortiGate-VM # get system interface physical | |
config firewall address | Fortinet FortiOS で config firewall address の設定または操作を実行する | FortiGate-VM # config firewall address | |
edit LAN-NET | Fortinet FortiOS で edit LAN-NET の設定または操作を実行する | FortiGate-VM (address) # edit LAN-NET | |
set subnet | Fortinet FortiOS で set subnet の設定または操作を実行する | FortiGate-VM (LAN-NET) # set subnet 10.0.0.0 255.255.255.0 | |
config firewall service custom | Fortinet FortiOS で config firewall service custom の設定または操作を実行する | FortiGate-VM # config firewall service custom | |
config firewall policy | Fortinet FortiOS で config firewall policy の設定または操作を実行する | FortiGate-VM # config firewall policy | |
edit 10 | Fortinet FortiOS で edit 10 の設定または操作を実行する | FortiGate-VM (policy) # edit 10 | |
set srcintf | Fortinet FortiOS で set srcintf の設定または操作を実行する | FortiGate-VM (10) # set srcintf "lan" | |
set dstintf | Fortinet FortiOS で set dstintf の設定または操作を実行する | FortiGate-VM (10) # set dstintf "wan1" | |
set srcaddr | Fortinet FortiOS で set srcaddr の設定または操作を実行する | FortiGate-VM (10) # set srcaddr "LAN-NET" | |
set dstaddr | Fortinet FortiOS で set dstaddr の設定または操作を実行する | FortiGate-VM (10) # set dstaddr "all" | |
set service | Fortinet FortiOS で set service の設定または操作を実行する | FortiGate-VM (10) # set service "HTTPS" "DNS" | |
set action accept | Fortinet FortiOS で set action accept の設定または操作を実行する | FortiGate-VM (10) # set action accept | |
set schedule always | Fortinet FortiOS で set schedule always の設定または操作を実行する | FortiGate-VM (10) # set schedule "always" | |
set nat enable | Fortinet FortiOS で set nat enable の設定または操作を実行する | FortiGate-VM (10) # set nat enable | |
config firewall ippool | Fortinet FortiOS で config firewall ippool の設定または操作を実行する | FortiGate-VM # config firewall ippool | |
set startip | Fortinet FortiOS で set startip の設定または操作を実行する | FortiGate-VM (pool1) # set startip 203.0.113.20 | |
set endip | Fortinet FortiOS で set endip の設定または操作を実行する | FortiGate-VM (pool1) # set endip 203.0.113.30 | |
config vpn ssl settings | Fortinet FortiOS で config vpn ssl settings の設定または操作を実行する | FortiGate-VM # config vpn ssl settings | |
set servercert | Fortinet FortiOS で set servercert の設定または操作を実行する | FortiGate-VM (settings) # set servercert "Fortinet_Factory" | |
config vpn ipsec phase1-interface | Fortinet FortiOS で config vpn ipsec phase1-interface の設定または操作を実行する | FortiGate-VM # config vpn ipsec phase1-interface | |
set remote-gw | Fortinet FortiOS で set remote-gw の設定または操作を実行する | FortiGate-VM (to-branch) # set remote-gw 198.51.100.1 | |
set psksecret | Fortinet FortiOS で set psksecret の設定または操作を実行する | FortiGate-VM (to-branch) # set psksecret S3cretKey | |
config vpn ipsec phase2-interface | Fortinet FortiOS で config vpn ipsec phase2-interface の設定または操作を実行する | FortiGate-VM # config vpn ipsec phase2-interface | |
get router info routing-table all | Fortinet FortiOS で get router info routing-table all の現在値や状態を確認する | FortiGate-VM # get router info routing-table all | |
config router static | Fortinet FortiOS で config router static の設定または操作を実行する | FortiGate-VM # config router static | |
set gateway | Fortinet FortiOS で set gateway の設定または操作を実行する | FortiGate-VM (1) # set gateway 192.0.2.1 | |
set device | Fortinet FortiOS で set device の設定または操作を実行する | FortiGate-VM (1) # set device "wan1" | |
get router info bgp summary | Fortinet FortiOS で get router info bgp summary の現在値や状態を確認する | FortiGate-VM # get router info bgp summary | |
execute ping | Fortinet FortiOS で execute ping の運用操作を実行する | FortiGate-VM # execute ping 8.8.8.8 | |
execute traceroute | Fortinet FortiOS で execute traceroute の運用操作を実行する | FortiGate-VM # execute traceroute 8.8.8.8 | |
diagnose sniffer packet | Fortinet FortiOS で diagnose sniffer packet の診断情報を取得する | FortiGate-VM # diagnose sniffer packet any "host 192.0.2.10" 4 | |
diagnose debug flow filter addr | Fortinet FortiOS で diagnose debug flow filter addr の診断情報を取得する | FortiGate-VM # diagnose debug flow filter addr 192.0.2.10 | |
diagnose debug flow trace start | Fortinet FortiOS で diagnose debug flow trace start の診断情報を取得する | FortiGate-VM # diagnose debug flow trace start 50 | |
diagnose debug enable | Fortinet FortiOS で diagnose debug enable の診断情報を取得する | FortiGate-VM # diagnose debug enable | |
diagnose debug disable | Fortinet FortiOS で diagnose debug disable の診断情報を取得する | FortiGate-VM # diagnose debug disable |