Created on
08-05-2025
10:08 AM
Edited on
09-16-2025
10:03 PM
By
Jean-Philippe_P
Description | This article describes the role of Diffie-Hellman groups in IPsec VPN key negotiation and highlights the differences between IKEv1 and IKEv2. It includes best practices for selecting key exchange parameters on FortiGate devices. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Scope | FortiGate devices are configured with IPsec VPNs using IKEv1 or IKEv2 protocols for site-to-site or remote access. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Solution |
Diffie-Hellman Groups. Diffie-Hellman groups define the cryptographic strength used during key exchange. Larger group numbers offer higher security but may increase CPU load.
IKEv1 vs IKEv2 Comparison:
CLI Example: IKEv2 with DH Group 20:
CLI Example: IKEv1 with DH Group 5:
Key notes:
On FortiGate, when configuring IPsec Phase 1 or 2, it is best practice to select Groups 14, 19, 20, or 31, depending on the peer's compatibility.
Best practices:
GUI Configuration Path:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.