
Image by: Pixabay
“`html
Introduction
Did you know that 60% of network breaches occur due to misconfigured VPNs? In today’s distributed work environments, secure site-to-site connectivity isn’t just convenient – it’s critical for business continuity. This hands-on guide walks network engineers through configuring FortiGate VPN tunnels with military-grade encryption, covering both Phase 1 and Phase 2 settings in detail.
You’ll learn:
- The exact DH group and encryption combinations recommended by NIST standards
- How to avoid common phase negotiation failures
- Best practices for static routing across VPN tunnels
- CLI commands to verify tunnel health and throughput
Phase 1 configuration
The Internet Key Exchange (IKE) Phase 1 establishes the secure management channel for your VPN. These settings determine how your FortiGate appliances authenticate and establish the initial encrypted connection.
Authentication methods
Choose between:
- Pre-shared keys (PSK): Simple to implement but less secure
- Digital certificates: More secure but requires PKI infrastructure
Encryption parameters
| Parameter | Recommended Setting | Alternative |
|---|---|---|
| Encryption | AES256 | AES128 |
| Authentication | SHA2-256 | SHA1 (legacy) |
| DH Group | 14 (2048-bit) | 5 (1536-bit) |
Pro tip: Always match Phase 1 lifetime settings between peers (default 86400 seconds works for most deployments).
Phase 2 configuration
Phase 2 defines how your actual data gets encrypted through the tunnel. These settings impact both security and performance.
Perfect forward secrecy
Enable PFS (Diffie-Hellman Group 14 or higher) to prevent decryption of captured traffic if long-term keys are compromised.
Quick mode selectors
Define precisely which traffic should traverse the VPN:
config firewall policy
edit 0
set srcintf “port1”
set dstintf “vpn-tunnel1”
set srcaddr “LAN_Subnet”
set dstaddr “Remote_LAN”
set action accept
set schedule “always”
set service “ALL”
next
end
Static routing for VPN traffic
Once your tunnel is established, traffic needs explicit routing rules:
- Navigate to Network > Static Routes
- Create route with destination = remote subnet
- Set gateway as the VPN tunnel interface
- Distance = 10 (lower than dynamic routes)
Troubleshooting and verification
Use these essential CLI commands:
diagnose vpn ike gateway list(shows Phase 1 status)diagnose vpn tunnel list(verifies Phase 2)get router info routing-table all(checks route propagation)
Frequently asked questions
Why does my FortiGate VPN tunnel keep disconnecting?
This usually indicates Phase 1 lifetime mismatch or dead peer detection (DPD) issues. Verify both peers use identical lifetime values and enable DPD on at least one endpoint.
What’s the most secure DH group for modern deployments?
Group 14 (2048-bit) offers the best balance between security and performance. Groups 19-21 provide quantum resistance but may impact throughput.
Conclusion
Properly configured FortiGate VPNs create secure tunnels that protect data in transit while maintaining network performance. By following these phase-by-phase configuration guidelines and verification steps, you’ll establish reliable site-to-site connectivity that meets modern security standards. For advanced scenarios, consider exploring FortiGate’s SD-WAN integration capabilities.
“`
