Skip to content

FORTIGATE / GUIDE

Operate FortiGate from the CLI.

Build the command-line skills required to inspect state, diagnose failures, make controlled changes, and verify the result.

This is the engineering problem. This is how a real engineer investigates it. This is how KiwiTut lets you practise it.

EXPLORE GUIDE This guide is free to read. The full simulator is issued by request.

REFERENCE GUIDE / FORTIGATE FOCUS / PREPARES FOR KIWITUT PRO

FGT-HQ / OPERATOR SESSIONLIVE STATE

READ THE CLI.
UNDERSTAND THE STATE.
MAKE THE CHANGE.

Diagnose the failure.
Fix the network.
Prove the recovery.
Business impact → evidence → recovery → validation
KIWITUT PRO / OPERATIONAL DASHBOARDREAL INTERFACE
KiwiTut Pro FortiGate network engineering dashboard for CLI troubleshooting
The operational console behind every CLI decision in KiwiTut.
01

Use the CLI to Answer an Engineering Question

A useful FortiGate CLI session has a question behind every command. The goal is not to memorize a long list. The goal is to inspect the right state, update a hypothesis, make a controlled change, and verify the result.

CLI disciplineRead the output, state what it proves, and name the next uncertainty before running another command.
02

Is the Route Present?

Purpose

Establish which route FortiGate selects for the affected destination and whether the next hop is usable before reasoning about higher layers.

Command
get router info routing-table all
get router info routing-table lookup 10.20.1.50
Example output (representative)
Routing entry for 10.20.1.50/32
Distance 10, metric 0
via 10.10.10.1, wan1
What to look for

The destination entry, the active next hop, the interface or tunnel used, and the distance. A blackhole route reports its own action.

What it means

Routing is a candidate layer. A missing or unusable route explains a drop; a present route does not yet prove the session will pass.

Next engineering decision

If the route is missing or blackholed, inspect static routes, dynamic protocols, and SD-WAN route injection. If routing is valid, move to policy, NAT, tunnel, or path evidence.

03

Is the Interface Actually Up?

Purpose

Verify the transport prerequisite before interpreting route, policy, or tunnel output.

Command
get system interface
Example output (representative)
Interface : wan1
Status    : up
IP        : 10.10.10.2/24
What to look for

Administrative and link state, the assigned IP, and the interface the forwarding decision actually references — including member ports on aggregate or redundant links.

What it means

An up interface proves local link state only. It does not prove reachability, policy acceptance, tunnel establishment, or SD-WAN health.

Next engineering decision

If the interface is down, work the transport issue. If it is up, continue down the dependency chain before concluding anything.

04

Is the VPN Actually Up?

Purpose

Separate a configured tunnel from an established operational tunnel and identify the failure boundary.

Command
diagnose vpn ike gateway list
diagnose vpn tunnel list
show vpn ipsec phase2
Example output (representative)
Name      : HQ-BR
State     : down
Active SA : 0
Peer      : 203.0.113.10
What to look for

Tunnel up or down, active SA count, IKE error reasons, and the phase2 selectors negotiated for the protected networks.

What it means

If the tunnel is down, the failure is before traffic crosses it — peer, authentication, or proposal. If it is up but traffic fails, the problem is in routing, policy, NAT, or the return path.

Next engineering decision

Choose between Phase 1 (identity, authentication, proposals) and post-tunnel layers based on the observed state, then verify the child SA selectors against the affected networks.

For the surrounding concepts, read the FortiGate VPN troubleshooting resource.

05

Which Policy Is Matching?

Purpose

Confirm whether the intended firewall policy can match the affected traffic and what the policy does if it matches.

Command
show firewall policy
Example output (representative)
ID  srcintf  dstintf  srcaddr      dstaddr      service  action  nat
3   lan      vpn      BRANCH_LAN   HQ_SERVERS   HTTPS    accept  no
What to look for

Interface direction, address objects, service, action, and NAT behavior for the intended source and destination.

What it means

If the policy cannot match, the traffic is dropped by policy or matched by an unintended rule. If it matches, the next question is translation and the return path.

Next engineering decision

Correct the object, direction, or service if there is no match. If the match is correct, inspect NAT and security profiles before concluding.

06

Are the Selectors and NAT Decisions Correct?

Purpose

Verify that protected networks match the traffic and that translation preserves a valid return path.

Command
show vpn ipsec phase2
show firewall central-snat-map
Example output (representative)
P2 HQ-BR
  srcaddr  BRANCH_LAN
  dstaddr  HQ_SERVERS
What to look for

For VPN: the local and remote protected networks in the child SA. For policy: which source translation is expected and what it does to the return path.

What it means

Selector mismatch means the child SA does not cover the affected traffic. NAT mismatch breaks the return path even with a healthy tunnel.

Next engineering decision

Align the selectors or translation, then re-test the tunnel state and a representative session.

07

Is SD-WAN Selecting the Expected Path?

Purpose

Identify which member is selected, its health, and its cost so the path decision is auditable.

Command
diagnose sys sdwan member
diagnose sys sdwan routes
diagnose sys sdwan load-balance
Example output (representative)
Member   : ISP1
Status   : UP
Cost     : 10 (effective 10)
Interface: wan1
What to look for

Member health (UP/DOWN), effective cost, the member the rule installed, and whether the route follows the selected member.

What it means

Selection can be wrong while all interfaces are up. The rule, health, and routing must agree.

Next engineering decision

Inspect the rule match and SLA thresholds, then validate the service on the selected path. Use the SD-WAN troubleshooting resource for the full decision model.

08

Is the Interface Up or Is the Path Healthy?

Use a layered interpretation. Interface state answers whether the local transport is operational. Member state answers whether the path is available to SD-WAN. SLA/health state answers whether measured performance meets the configured requirement. Rule and route state answer whether this application is actually using the path. Validation answers whether the business service recovered.

Senior-operator checkNever close an SD-WAN incident on interface state alone. Close it when selected-path evidence and application behavior agree.
09

The CLI as a Decision Record

A CLI session should make the reasoning auditable. For each command, record the question, the observed output, the hypothesis it supports or rejects, and the next test. KiwiTut’s CLI incidents use this same progression: the operator reads state, makes a controlled change, and validates the resulting state rather than being rewarded for command entry alone.

10

Where Is the Packet Going, and Why Is It Dropped?

Purpose

Trace the forwarding decision and identify the layer that is dropping the packet.

Command
get router info routing-table lookup 10.20.1.50
execute ping 10.20.1.50
execute traceroute 10.20.1.50
Example output (representative)
Action: blackhole
Routing entry for 10.20.1.50/32 via blackhole
What to look for

The route lookup result, including blackhole routes; where ping or traceroute stops; and the session or state evidence for that layer.

What it means

A drop is an observation. The diagnosis explains the layer — route, policy, tunnel, or path — and the evidence that distinguishes it from the others.

Next engineering decision

Fix the identified layer only, then repeat the same lookup, ping, and service check to prove the drop is gone.

11

What Changed, and Did Recovery Actually Work?

Purpose

Keep the change auditable and prove recovery through state, not through a prompt returning to normal.

Command
execute backup config flash change-before
diagnose system backup list
execute ping 10.20.1.50
Example output (representative)
Reply from 10.20.1.50: bytes=32 time=3ms
Tunnel HQ-BR: up
SD-WAN member ISP1: UP
What to look for

The before-state, the single corrective action, and the after-state: route usable, tunnel or member healthy, policy correct, service reachable.

What it means

Operational recovery is a state transition. If only the command was accepted, the incident is not closed.

Next engineering decision

Complete the debrief: symptom, cause, change, validation evidence, and the handoff note for the next operator.

12

A CLI Walkthrough Inside an Incident

The console sequence moves from diagnosis to route inspection, recovery, and validation. The simulator gives the commands an operational context and changes its state as the engineer acts. That is more useful than a static command reference because the next command depends on the evidence already observed.

13

Keep This CLI Checklist Nearby

  • What question am I answering?
  • Am I inspecting configuration or runtime state?
  • What output would support or reject my hypothesis?
  • Which dependency should I inspect next?
  • What is the smallest safe change?
  • What output proves recovery?

Continue with the general FortiGate troubleshooting workflow or the SD-WAN path resource when the question concerns path selection. Practise each command against live state in KiwiTut Pro, the private-beta FortiGate simulator, and pair it with the VPN troubleshooting resource when the path crosses a tunnel.

CONTROLLED PRACTICE

Practise CLI decisions, not command collecting.

KiwiTut Pro is currently available through controlled access for selected network engineers.

REQUEST ACCESS

Related engineering paths: VPN operations, SD-WAN path control, and the symptom-first workflow. Or browse the full FortiGate paths catalogue.

FORTIGATE LAB? THE MODEL MATTERS

Train inside KiwiTut Pro.

These public paths describe the engineering work. The real hands-on FortiGate network operations simulator is private beta at app.kiwitut.com and is available only after controlled access is approved.

ABOUT THIS GUIDE

Published by KiwiTut Engineering. KiwiTut builds hands-on FortiGate network engineering practice: firewall, routing, VPN, SD-WAN, and CLI diagnostics against live simulated state. This guide documents the diagnostic commands network engineers use in routine FortiOS operation; every command shown is read-only or explicitly labelled as an operational action.

Found an error or want to suggest a command? Reach us through the About / contact page. Last reviewed: August 2026. KiwiTut is an independent learning resource and is not affiliated with Fortinet. FortiGate and FortiOS are trademarks of Fortinet, Inc.