Troubleshooting Tip: IPsec connection fails to progress at DH secret creation due to IKECRYPT Daemon Crash on FortiGate
| Description | This article describes an issue where the IPsec connection does not establish and fails at creating the DH shared secret due to the ikecrypt daemon crash. |
| Scope | FortiOS 7.0 and onwards. |
| Solution | An intermittent or continuous crash of the IKECRYPT daemon can prevent the IPSec VPN connection from being established, as the Diffie-Hellman (DH) shared secret calculation relies on the normal operation of the IKECRYPT daemon.
ike V=root:0:eb5a3329d5007645/0000000000000000:287: SA proposal chosen, matched gateway Test_IPsec The ikecryptd process ID may be seen constantly changing indicating frequent crashes and without a trace in the output of 'diagnose debug crashlog read'.
FortiGate-40F # diagnose sys process pidof ikecryptd
This issue may occur when the FortiGate device is running low on system memory. Ensure that the device has sufficient free memory and is not entering conserve mode.
For memory optimization recommendations, refer to the following articles:
Workaround: Disable dh-multiprocess from 'config system ike' to shift the DH Secret Creation task from ikecryptd to ike daemon. Note: The Ikecryptd daemon is used to improve performance and overall IPsec tunnel setup rate by moving expensive DH calculations out of the single iked process and into separate ikecryptd processes, which can more effectively use multiple CPUs. |
