| Description | This article describes an issue where an iOS Native IPsec VPN user is unable to connect to the VPN when two-factor authentication (2FA) is enabled for the user account. |
| Scope | FortiGate v7.4.4. |
| Solution |
When the iOS Native IPsec VPN is configured on FortiGate and two-factor authentication is enabled for the user account, the authentication fails even though the token code is correctly appended to the password (password+2FA). The following logs are seen in the IKE and fnbamd debugs, requesting the FortiToken code, despite it already being included in the password. ike V=root:0:test-ipsec-vpn_0:0: received XAUTH_USER_NAME 'user01' length 6 [895] update_auth_token_session-Token is needed
This is a known issue 1073995 and has been resolved in v7.4.6 and v7.6.1: Resolved issues 7.4.6
To ensure the prompt appears when connected to VPN, remove the password from IOS VPN client setting (keep the 'Password' blank).
To confirm if the same issue is matching, open a ticket with Fortinet TAC and provide the output of the following commands.
diagnose debug application ike -1
|
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.