Identity - Enabling OTP in a FortiGate multi-MFA IPSEC VPN Config can fail to generate MFA

Identity - Enabling OTP in a FortiGate multi-MFA IPSEC VPN Config can fail to generate MFA

179
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:00 PM


Symptom


When multiple MFA methods are configured for IPSEC VPN with the FortiClient VPN, any method requiring user input (i.e. OTP) will cause the FortiClient to immediately crash.
image2022-2-8_18-20-27.png


Environment


20.7;21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;12.4;12.3;22.1 tested with Forticlient 6.0.2 and 7.0.2, could reflect to other versions

Cause


Fortinet configuration is needed
XML Reference Guide | FortiClient 6.0.7 | Fortinet Documentation Library

Use One Time Password (OTP).
When this setting is 0, FortiClient does not respond to DPD during XAuth. When this setting is 1, FortiClient responds to DPD during XAuth, which may be necessary when two-factor authentication and DPD are both involved.


Resolution


This solution was tested with Forticlient 6.0.2 and 7.0.2

  1. Configure IPSEC VPN tunnel as documented → MFA for Fortinet FortiGate VPN via RADIUS | CyberArk Docs
  2. Open FortiClient and click on the Setting icon in the upper right hand corner 
  3. Under System, Backup or restore a configuration, Select Backup and save the .conf file to a readily accessible location. (In newer FortiClient versions you may need to provide a password prior to backup)
    image2022-2-8_18-24-58.png
  4. Open the .conf file in your favorite text editor and locate the <xauth> section
    Below is a sample <xauth> config

    <xauth>
    <enabled>1</enabled>
    <prompt_username>1</prompt_username>
    <username></username>
    <password />
    </xauth>

     

  5. Add the following two lines to the <xauth> section.

    <xauth>
    <enabled>1</enabled>
    <prompt_username>1</prompt_username>
    <username></username>
    <use_otp>1</use_otp>
    <attempts_allowed>10</attempts_allowed>
    <password />
    </xauth>
     

  6. To restore the config file you may need to unlock the FortiClient.
    image2022-2-8_18-25-58.png
  7. Restore the file you just added the additional configuration to. (Enter password if required)
    image2022-2-8_18-25-33.png
  8. Select the newly imported VPN profile and confirm you can connect and use OTP as an MFA method.
    image2022-2-8_18-27-34.png
  9. The .conf you modified can be deployed to users via FortiClient EMS, FortiClient Configurator Tool, or manually.

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BZJCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail