Hello there!

Need Help? We are right here!

miniOrange Email Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com

Two Factor Authentication for Open VPN

miniOrange provides a ready to use solution for Open VPN Platform. This solution ensures that you are ready to roll out secure access to Open VPN to your employees within minutes.


OpenVPN is VPN software and protocol which use both the VPN techniques to provide security to site-to-site connections. Also, it secure point-to-point connection. You can enable two-factor authentication (2FA) for your OpenVPN managed active directory to increase security level. When you enable 2FA, your users enter their username and password (first factor) as usual, and they have to enter an authentication code (the second factor) which will share on your virtual or hardware 2FA solution.

miniOrange 2FA for VPN Login

  • miniOrange accomplishes this by acting as a RADIUS server, that accepts the username/password of the user entered as a RADIUS request, validates the user against the user store as Active Directory ( AD ), prompts him for the 2-factor authentication and either grants/revokes access based on the input by the user.

  • Types of 2FA Authentication with RADIUS

  • The 2-factor authentication can be of two types depending on the VPN clients.

    • VPN Clients that support RADIUS Challenge.
    • VPN Clients that do not support RADIUS Challenge.

  • In VPN Clients that support RADIUS Challenge :

    • First step is user's username & password get validated against the credentials stored in Active Directory and 2nd request sends a success response, this request is sent to validate the 2-factor authentication of the user, on successful authentication user is granted access to the application.
    • Authentication methods : All Authentication methods supported by miniOrange. Software Token, Push Notification, OTP over Email to name a few.
    • RADIUS Clients that support this authentication type:
      -> OpenVPN
      -> Palo Alto
      -> Fortinet
      -> Pulse Secure Connect Secure SSL
    • MFA for VPN Client: open-vpn-support-chart

    We can connect with any Directory

    miniOrange provides user authentication from external directories like Microsoft Active Directory, Azure AD, AWS Cognito etc.

    Can't find your Directory ? Contact us on idpsupport@xecurify.com. We'll help you setting it up in no time.

    Enable Two-Factor Authentication (2FA) for your VPN managed active directory to increase security level

    Step 1: Add the Radius Client in miniOrange

    • Login into the Admin Dashboard.
    • Click on Apps >> Manage Apps.
    • Click on Configure Apps.
    • MFA for VPN Client: VPN configure apps

    • Select Radius tab and select Radius Client.
    • MFA for VPN Client: VPN radius client

    • Configure details below to add Radius Client.
    • Client Name: Any name for your reference
      Client IP: IP address of VPN server which will send Radius authentication request
      Shared Secret: Security key.
      For Eg. "sharedsecret"
      (Keep this with you, you will need to configure same on VPN Server )
      Do not Support Challenge: Keep this Unchecked
    • Click on Save.
    • MFA for VPN Client: VPN Add App

      NOTE: For On-Premise version follow the below steps before testing the connectivity.

      Only For On-Premise Version

    • By Default, the RADIUS Server does not get started with Tomcat.
    • Open the WEB.xml file from your miniOrange repository .....\mo-idp-server-3.3.0\moas\WEB_INF\web.xml
    • Search for RadiusServerInit.
    • MFA for VPN Client: Enable radius exchangeprotocol

    • Uncomment the commented RadiusServerInit Servlet.
    • Keep the port 1812 open for using RADIUS Service.
    • Save and Restart Tomcat.

    Step 2: Setup Active Directory as an Authentication Source

    • Select User Stores then click on Add User Store.
    • MFA for VPN Client: VPN App Add User

    • Select “AD/LDAP” tab and configure it with your LDAP settings.
    • MFA for VPN Client: VPN App Add User Store

      Directory Type:Active Directory.
      LDAP Server URL:Select an appropriate prefiller followed by your AD server URL or IP address
      Bind Account DN:UserPrincipalName/distinguishedName of the account eligible for binding operation.
      Bind Account Password:Password for the account used for binding
      Search Bases:Provide distinguished name of the Search Base object Eg:cn=User,dc=domain,dc=com
      Search Filter:Search filters enable you to define search criteria and provide a more efficient and effective searches. Eg: "(&(objectClass=*)(cn=?))"

    • Enable “Active LDAP” and “Sync user in miniOrange” option and click on save.
    • MFA for VPN Client: VPN App Save Settings

    • Here's the list of the attributes and what it does when we enable it. You can enable/disable accordingly.
    • AttributeDescription
      Activate LDAP All user authentications will be done with LDAP credentials if you Activate it
      Sync users in miniOrange Users will be created in miniOrange after authentication with LDAP
      Backup Authentication If LDAP credentials fail then user will be authenticated through miniOrange
      Allow users to change password This allows your users to change their password. It updates the new credentials in your LDAP server
      Enable administrator login On enabling this, your miniOrange Administrator login authenticates using your LDAP server
      Show IdP to users If you enable this option, this IdP will be visible to users
      Send Configured Attributes If you enable this option, then only the attributes configured below will be sent in attributes at the time of login

    • Click on Test Configuration to check whether your LDAP configuration details are right and LDAP server is reachable. It will ask for test username & password from LDAP directory.
    • MFA for VPN Client: VPN App Test Configuration

    • After this, it will show you the list of User stores. Click on “ Make Default “.
    • MFA for VPN Client: VPN App Make Default

    Step 3: Setup miniOrange as Identity Provider(Optional)

    NOTE: Follow these steps if you want to keep your users in miniOrange and authenticate against them.

    • Select User then click on Add User .
    • MFA for VPN Client: User tab

      MFA for VPN Client: Add User

    • Configure the basic details for the End User.
    • Then Click on Create User.
    • MFA for VPN Client: Add User form in miniorange

    • You can view these users in UserList.
    • MFA for VPN Client: User list in miniorange

    Step 4: Configure 2 Factor Authentication(2FA) for Admins:

    • From your Admin Dashboard in the left navigation bar, select 2- Factor Authentication, click on Configure 2FA.
    • MFA for VPN Client: configure_2fa

      MFA for VPN Client: select_2fa

    • Select a 2FA method for configuring.
    • Let's say you want to configire OTP over SMS
    • Click on OTP over SMS in Configure 2FA tab.
    • MFA for VPN Client: otp_over_sms

      MFA for VPN Client: enter_phone_no

    • Now add your mobile number on which you want to receive the OTP.
    • Then click on Save.
    • MFA for VPN Client: save_phone_number

      MFA for VPN Client: otp_over_sms_active

    • Reconfigure tab in green represents the currently Active 2FA method.
    • Click on Prompt for second factor during signin to your console.
    • Then click on Save.
    • MFA for VPN Client: Enable_2fa

    • Similarly other 2FA methods can be configured. Click Here for the Guide

    Step 5: Setup 2FA Policy for End User.

    • Click on Policies tab >> App Authentication Policy.
    • MFA for VPN Client: VPN App Authentication Policy

    • Click on Add Policy tab.
    • In Step 1 Select the RADIUS App that we configured earlier.
    • In Step 2 Select “DEFAULT” in Group Name and enter Policy name as “<Any Name>” and Select First factor as “PASSWORD”.
    • Enable Second Factor then click on Save.
    • MFA for VPN Client: VPN App Add Policy

    • Admin can change the second factor of the End user from the User List
    • MFA for VPN Client: User list in miniorange

    • Under Action Click on Select and then select Reset Second Factor
    • MFA for VPN Client: User list in miniorange and Reset second factor

    Step 6: Configure OpenVPN Server

    • Open your OpenVPN Server Admin Dashboard
    • Select General option under Authentication section.
    • two factor authentication open vpn general

    • Select RADIUS and click on Save Settings
    • two factor authentication open vpn save

    • Click on Update Running Server in the Pop up that appears.
    • two factor authentication open vpn update

    • Select RADIUS option under Authentication section.
    • two factor authentication open vpn radius

    • Select the PAP option under Select RADIUS Authentication Method.
    • Configure the following details
    • Hostname or IP Address: For on-premise version: IP of server where IDP(miniOrange) is installed
      For cloud version: Contact us at info@xecurify.com to get the IP
      Shared Secret: Security Key that was configured in miniOrange IDP.
      In step 1 we configured this as "sharedsecret"
      two factor authentication open vpn configure

    • Click on Save Settings and then on Update Running Server in the Pop up that appears.

    Step 7: Test miniOrange 2FA for OpenVPN Login

    • Connect to OpenVPN by entering the hostname of the server.
    • two factor authentication open vpn Connect to Open VPN

    • Enter your AD username & password and click on Connect.
    • two factor authentication open vpn Connect

    • Now, you are prompted for the 2-factor authentication code. Enter the code and click on Continue.
    • two factor authentication open vpn Connect authentication code

    • After successful validation, you are connected.
    • two factor authentication open vpn Successful Validation

    For Further Details:

    Two Factor authentication
    Open VPN
    What is Open VPN ?

    We offer Security Solutions of Single Sign-On, Two Factor Authentication, Fraud Prevention and much more.

    Please call us at +1978 658 9387 (US), +91 77966 99612 (India) or email us at info@xecurify.com