Skip to main content
sgursimran
Staff
Staff
May 12, 2025

Technical Tip: Limitations of Two-Factor Authentication with IPSec VPN on iOS FortiClient

  • May 12, 2025
  • 0 replies
  • 4261 views

Description

This article describes why FortiClient two-factor authentication is not supported for IPSec dial-up VPN connections on iOS devices.

Scope

FortiClient iOS.

Solution

When connecting to an IPSec dial-up VPN using FortiClient on iOS, the two-factor authentication prompt does not appear. This is expected behavior due to iOS restrictions, as the built-in IPSec framework limits application-level interaction.

 

Debug logs confirm that the FortiGate sends an XAUTH token request. However, on iOS devices, the 2FA prompt is not triggered as the system does not allow FortiClient to display the authentication window:

 

2025-03-08 20:45:14.872291 ike 0:iphonevvpn_0:43: received XAUTH_USER_NAME 'iphone' length 6

2025-03-08 20:45:14.872495 ike 0:iphonevvpn_0:43: received XAUTH_USER_PASSWORD length 8

2025-03-08 20:45:14.872678 ike 0:iphonevvpn_0: XAUTH user "iphone"

2025-03-08 20:45:14.872853 ike 0:iphonevvpn: auth group iphone

2025-03-08 20:45:14.874810 ike 0:iphonevvpn_0: XAUTH requires token for user "iphone"

2025-03-08 20:45:14.875237 ike 0:iphonevvpn_0:43: sending XAUTH token request

 

If multi-factor authentication is required for IPSec VPN on iOS, users are advised to migrate to a dial-up IPSec VPN configuration using SAML authentication.

Workaround:

It is possible to enter the FortiToken code combined with the password in the password field when connecting.

Example when signing in:

Username: vpnuser1
Password: VpnPassword!123456

Where vpnuser1's password is "VpnPassword!" and the token code is "123456".

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.