IKEv2 IPsec VPN – Negotiation Timeout During OTP Authentication
FortiClient IKEv2 IPsec VPN – Negotiation Timeout After 30 Seconds During RADIUS/EAP OTP Authentication
Hello everyone,
I'm experiencing an issue with an IKEv2 IPsec remote-access VPN using RADIUS/EAP authentication with MFA/OTP, and I would appreciate your feedback or any similar experiences.
Environment
-
FortiGate: FortiOS 7.6.6
-
FortiAuthenticator: 6.6.8
-
FortiClient: 7.4.8 (ZTNA)
-
VPN: IPsec IKEv2 Remote Access
-
Authentication: RADIUS/EAP with MFA/OTP
-
RADIUS server: FortiAuthenticator
Issue description
The issue occurs regardless of the OTP delivery method. We have reproduced it with:
-
FortiToken Mobile
-
SMS OTP
-
Email OTP
When the user enters the OTP within approximately 30 seconds, authentication succeeds and the VPN tunnel is established normally.
However, if OTP entry takes longer than approximately 30 seconds, FortiClient remains in the "Connecting" state. The connection eventually fails with an IKE negotiation timeout, and the tunnel is not established.
Important observation: Different behavior with FortiClient VPN-only 7.4.3.4726
During testing, we discovered a significant difference with FortiClient VPN-only 7.4.3.4726.
With this version, the VPN connection succeeds even when the negotiation takes approximately 55 seconds.
However, with the other FortiClient versions and types we tested, including VPN-only and ZTNA, the connection fails when the negotiation exceeds approximately 30 seconds.
These tests were performed against the same IPsec VPN tunnel.
This raises the question of whether different FortiClient versions handle IKEv2 negotiation or EAP authentication timeouts differently.
Timeout settings already increased
We have already increased the relevant timeout settings on the FortiGate:
IPsec Phase 1:
config vpn ipsec phase1-interface
edit "VPN"
set negotiate-timeout 300
next
endGlobal authentication settings:
config system global
set remoteauthtimeout 300
set two-factor-email-expiry 300
set two-factor-ftm-expiry 72
set two-factor-sms-expiry 60
set two-factor-fac-expiry 100
endRADIUS timeout:
config user radius
edit "ZTNA-F"
set timeout 300
next
endDespite these settings, the approximately 30-second failure persists with the affected FortiClient versions.
Questions
-
Is there a FortiClient-specific timeout that can terminate an IKEv2 negotiation after approximately 30 seconds, regardless of the FortiGate timeout settings?
-
Could this behavior be related to differences in EAP/RADIUS authentication handling between FortiClient VPN-only 7.4.3.4726 and newer versions?
-
Has anyone encountered a similar issue with FortiClient 7.4.x, FortiOS 7.6.x, and FortiAuthenticator-based OTP authentication?
-
Is there a recommended configuration or known fix that allows the user more time to receive and enter the OTP?
Any suggestions, technical explanations, or references to relevant known issues would be greatly appreciated.
Thank you in advance for your help!
