Created on
‎06-18-2025
09:26 PM
Edited on
‎01-01-2026
11:42 PM
By
Jean-Philippe_P
| Description | This article describes the solution for the error 'mismatched DH group in KE payload' received in IKE debugs. |
| Scope | FortiGate. |
| Solution |
The following error is noticed in the IKE debugs: 'mismatched DH group in KE payload'. 2025-06-10 12:43:14.462965 ike V=root:0:IPSecVPN:56: mismatched DH group in KE payload, selected 14, received 5 This error occurs when a negotiation failure happens for the DH-Group. In the above error, it can be concluded that FortiGate is receiving negotiation for DH-Group=5, but on FortiGate, DH-Group is set to 14.
More information on how to check regarding the DH group can be found in this KB article: Technical Tip: How to check if Diffie-Hellman(DH) group is the same on both peer units.
Execute the following debug commands to collect IKE logs:
Note:
Starting from v7.6.5 and v8.0.0, the default DH groups for Phase1 and Phase2 IPsec VPN tunnels will be updated from 14 and 5 to 14, 20, and 21. So the IPSec VPN tunnel might be down due to the DH group mismatch, after upgrading to v7.6.5. The solution is to change the DH group in the VPN settings, make sure both 2 sides have the identical configurations.
Troubleshooting Tip: Troubleshooting IPsec Site-to-Site Tunnel Connectivity |
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 2026 Fortinet, Inc. All Rights Reserved.