Fortinet FortiGate Security Hardening
CIS Benchmark-aligned hardening for FortiGate firewalls: admin access restrictions, TLS policy, password policy, unused service disablement, and audit logging.
What is it?
FortiGate hardening aligns with the CIS Benchmark for FortiOS and Fortinet's Security Best Practices guide. Key hardening areas: (1) Management plane — restrict admin access to trusted IPs, disable unused protocols (HTTP, Telnet), enforce TLS 1.2+. (2) Password policy — complexity, expiry, lockout thresholds. (3) Logging — all admin changes, auth events, and traffic must be logged to a remote syslog or FortiAnalyzer. (4) Zone protection — enable IPS on all policies, block known malicious IPs via FortiGuard. Changes take effect immediately in FortiOS — no commit step required.
When to use
- ·Before any production deployment — hardening is mandatory
- ·After a FortiGate Security Fabric audit — the audit tool identifies gaps
- ·For PCI-DSS compliance — requirement 2 mandates no vendor defaults
- ·After firmware upgrade — verify hardening settings weren't reset to defaults
When NOT to use
- ·Lab environments — strict timeouts and lockouts slow testing
How it compares
Prerequisites
- →Know your management workstation IP before restricting trusthosts — wrong entry causes lockout
- →Syslog server IP ready before enabling log forwarding
- →Admin password must meet new complexity requirements before setting password policy
- →FortiGuard subscription must be active for IPS and web filtering profiles to function
Config Generator
Verification commands
get system global | grep adminVerify admin security settings: timeout, lockout, HTTPS port
ExpectedShows admintimeout, admin-lockout-threshold, admin-sport. Confirm values match hardening template.
get system adminShow all admin accounts and their trusted host restrictions
ExpectedEach admin should have trusthost entries limiting access to known management subnets.
get log syslogd settingVerify syslog forwarding is enabled and configured
ExpectedShows 'status: enable', server IP, and port. If disabled, logs are not being forwarded off-box.
Debug commands
diagnose log testSend a test log entry to all configured log destinations
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
Network Security Architectures
Sean Convery · Cisco Press · Defense-in-depth, CoPP, control plane hardening, AAA design
CCNP Enterprise Core ENCOR 350-401 Official Cert Guide
Brad Edgeworth et al. · Cisco Press · AAA, RADIUS, TACACS+, device hardening best practices