Fortinet Firewall Hardening Guide

A hardening pass for FortiGate: administrative access, policy hygiene, logging, inspection profiles and upgrade discipline.

Published Jun 30, 202612 min read6 views
  • firewall
  • fortinet
  • security
  • zero-trust

Lock down management first

Bash
config system global
    set admintimeout 10
    set admin-lockout-threshold 3
    set admin-lockout-duration 300
    set gui-certificate-fingerprint enable
    set strong-crypto enable
end
config system interface
    edit "port1"
        set allowaccess ping
    next
end
config system admin
    edit "netadmin"
        set trusthost1 10.10.20.0 255.255.255.0
        set two-factor fortitoken
    next
end

Policy hygiene

  • No any/any/ALL policies, including the ones labelled temporary.

  • Name every policy after the service it enables, not the ticket that requested it.

  • Use address groups and service groups so intent survives an address change.

  • Review policy hit counts quarterly and remove zero-hit rules.

Bash
config firewall policy
    edit 12
        set name "USER-to-APP-HTTPS"
        set srcintf "port2"
        set dstintf "port3"
        set srcaddr "GRP_USER"
        set dstaddr "GRP_APP"
        set service "HTTPS"
        set action accept
        set ssl-ssh-profile "deep-inspection"
        set ips-sensor "protect_server"
        set logtraffic all
    next
end

Inspection that actually inspects

A deep-inspection profile without the CA certificate distributed to endpoints produces warnings and shadow IT. Roll out the certificate first, then enable deep inspection per policy — starting with outbound user traffic and exempting banking and health categories.

Logging and retention

Send logs off-box. A FortiGate that is compromised or fails will take its local logs with it. FortiAnalyzer or a syslog collector with 90 days of retention is the practical minimum for incident work.

Upgrade discipline

  1. Read the release notes for upgrade path restrictions — skipping a major version is rarely supported.

  2. Take a full configuration backup and store it outside the device.

  3. Upgrade the secondary HA member first and observe a full business day.

  4. Keep a console cable and a known-good image on the local disk.

Back to all docs