Hello there!

Need Help? We are right here!

support
miniOrange Email Support
success

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 Fortinet VPN Client

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

Fortinet VPN Client

Fortinet provides physical and virtualized security designs and appliances for important data and critical workload. You can enable two-factor authentication (2FA) for your Fortinet managed active directory to increase the 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.
To enable 2FA you can enable RADIUS authentication in Fortinet and configure policies in miniOrange to enable or disable 2FA for users.

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
    • 2FA two factor authentication for Fortinet fortinet-support-chart

    We can connect with any External IDP/Directory

    miniOrange provides user authentication from external directories like ADFS, Microsoft Active Directory, Azure AD, OpenLDAP, Google, AWS Cognito etc. It also provides user authentication with other IDPs like Shibboleth, PING, Okta, OneLogin, KeyCloak and many more.

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


    IT IS HIGHLY RECOMMENDED THAT YOU CONTACT US FOR SETTING UP MFA FOR VPN.


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

    Step 1: Choose Your User Directory

    1.1: Setup AD as User Directory

    1. Log in to miniOrange dashboard from the Admin Console.
    2. From the Side Menu, Click on User Stores >> Add User Store

       Single Sign On (sso) configure user store

    3. Select User Store type as AD/LDAP.
    4.  Single Sign On (sso) select ad/ldap as user store

      1. STORE LDAP CONFIGURATION IN MINIORANGE: Choose this option if you want to keep your configuration in miniOrange. If active directory is behind a firewall, you will need to open the firewall to allow incoming requests to your AD.
      2. STORE LDAP CONFIGURATION ON PREMISE: Choose this option if you want to keep your configuration in your premise and only allow access to AD inside premises. You will have to download and install miniOrange gateway in your premise.

      3.  Single Sign On (sso) select ad/ldap user store type
    5. Enter LDAP Display Name and LDAP Identifier of your choice. Select Directory Type as Active Directory.
    6. Enter the LDAP Server URL or IP Address against LDAP Server URL field.
    7. Go to AD FS-> Domain-> respective Users -> Properties-> Attribute Editor. Now copy the value of distinguishedName and paste it against Bind Account DN.
    8.  Single Sign On (sso) configure user bind account domain name

    9. Enter the valid password for the user from above step.
    10. Search Base is the location in the directory where the search for a user begins.
    11.  Single Sign On (sso) configure user search base

    12. If you want to add extra conditions on user search you can add it in Search Filter. Select a suitable Search Filter from the Drop-Down. To use custom Search Filter select "Custom Search Filter" option and provide the search filter in the input field that shows up.
    13.  Single Sign On (sso) configure user search filter

    14. You can also configure following options while setting up AD.
    15.  Single Sign On (sso) configure ldap options

      Here's the list of the attributes and what it does when we enable it. You can enable/disable accordingly.

      Attribute Description
      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

    16. Click on Save. After this, it will show you the list of User stores. Click on Test Configuration to check whether you have enter valid details. For that, it will ask for username and password.
    17.  Single Sign On (sso) test ad/ldap connection

    18. On Successful connection with LDAP Server, a success message is shown.
    19.  Single Sign On (sso) ldap successful connection

    20. Click on Test Attribute Mapping.
    21.  Single Sign On (sso) test attributes mapping

    22. Enter a valid Username. Then, click on Test. Mapped Attributes corresponding to the user are fetched.
    23.  Single Sign On (sso) fetch mapped attributes for user

    24. After successful Attribute Mapping Configuration, go back to the ldap configuration and enable Activate LDAP in order to authenticate users from AD/LDAP.

    1.2: Setup miniOrange as a User Store

    1. Log in to miniOrange dashboard from the Admin Console.
    2. There are 3 ways to setup miniOrange as an Identity Source

      1.1.1 Create User in miniOrange

      • Click on Users >> Add User.
      •  Single Sign On (sso) add user in miniOrange

      • Here, fill the user details without the password and then click on the Create User button.
      •  Single Sign On (sso) add user details

      • Click on On Boarding Status tab. Check the email, with the registered e-mail id and select action Send Activation Mail with Password Reset Link from Select Action dropdown list and then click on Apply button.
      •  Single Sign On (sso) email action

      • Now, Open your email id. Open the mail you get from miniOrange and then click on the link to set your account password.
      • On the next screen, enter the password and confirm password and then click on the Reset Password button.
      •  Single Sign On (sso) reset user password
      • Now, you can log in into miniOrange account by entering your credentials.

      1.1.2 Bulk Upload Users in miniOrange via Uploading CSV File.

      • Navigate to Users >> User List. Click on Add User button.
      •  Single Sign On (sso) add user via bulk upload

      • In Bulk User Registration download sample csv format from our console and edit this csv file according to the instructions.
      •  Single Sign On (sso) download sample csv file

      • To bulk upload users, choose the file make sure it is in comma separated .csv file format then click on Upload.
      •  Single Sign On (sso) bulk upload user

      • After uploading the csv file successfully, you will see a success message with a link.
      • Click on that link you will see list of users to send activation mail. Select users to send activation mail and click on Send Activation Mail. An activation mail will be sent to the selected users.

      1.1.3 Self User Registration

      • miniOrange self user registration allows end users to register themselves using customized registration form. miniOrange admin users can customize the registration form by adding more custom fields accodring to their choice. Learn More

    Step 2: User Import and Provisioning

    • This Step involves Importing the users from the Active Directory and Provisioning them.
    • Following are the ways to Import users from Active Directory:
      1. Step 2.1: Import Users And Auto Register (Recommended)

        • Go to Settings in the Customer Admin Account.
        • 2FA two factor authentication for Fortinet  miniorange settings

        • Enable the User-Auto Register Option and click Save.
        • 2FA two factor authentication for Fortinet  Enable User Auto Register

        • From the Left-Side menu select Users >> User Sync/Provisioning.
        • 2FA two factor authentication for Fortinet  User Sync1

        • In Setup Provisioning tab select Active Directory in the Select Application Drop Down.
        • Toggle the Import Users Check box and set Select User Unique Identifier as samaccountname.
        • 2FA two factor authentication for Fortinet  User Sync Active Directory Configuration1

        • Click on Save and the click on the Import Users tab.
        • 2FA two factor authentication for Fortinet  User Sync Import Operation1

        • Select Active Directory in the Select App to Import Users From Dropdown.
        • Then click on Import to import all the users from Active Directory to miniOrange.
        • You can view all the Users you have imports by selecting Users >> User List from Left Panel.
        • 2FA two factor authentication for Fortinet  User List1

        • All the imported users will be auto registered.

        Step 2.2: Import Users And send Activation link

        • From the Left-Side menu select Users >> User Sync/Provisioning.
        • 2FA two factor authentication for Fortinet  User Sync2

        • In Setup Provisioning tab select Active Directory in the Select Application Drop Down.
        • Toggle the Import Users Check box and set Select User Unique Identifier as samaccountname.
        • 2FA two factor authentication for Fortinet  User Sync Active Directory Configuration2

        • Click on Save and the click on the Import Users tab.
        • 2FA two factor authentication for Fortinet  User Sync Import Operation2

        • Select Active Directory in the Select App to Import Users From Dropdown.
        • Then click on Import to import all the users from Active Directory to miniOrange.
        • You can view all the Users you have imports by selecting Users >> User List from Left Panel.
        • 2FA two factor authentication for Fortinet  User List2

        • Now Click on the On Boarding Status Tab and select the users you want to Activate in the miniOrange.
        • Select Send Activation Mail and Password Reset Link from Select Action Drop Down.
        • Click on Apply.
        • 2FA two factor authentication for Fortinet  User Send Activation Link

        • Mails will be sent to all the selected end users.
        • End Users will activate their account using the link provided in the Email.

        Step 2.3: On the Fly User Creation

        • From the Side Menu, Click on User Stores.
        • Select the Active Directory that we configured earlier in Step 1 and click on Edit.
        • 2FA two factor authentication for Fortinet  Edit User Store

        • Enable Sync Users in miniOrange.
        • 2FA two factor authentication for Fortinet  Sync Users in miniOrange

        • Now, every user that is not registered in miniOrange will be automatically registered on first login.

    Step 3: Creating User Groups(Recommended)

    • Select Groups >> Manage Groups from left panel.
    • 2FA two factor authentication for Fortinet  Manage Groups

    • Click on the Create Group button on the top.
    • Enter an appropriate Group Name and click on Create Group.
    • 2FA two factor authentication for Fortinet  Create Groups

    • In this guide we have created a Group by name VPN_Group.
    • Assign various members to the group using the Assign User option associated with the group in the groups list.
    • 2FA two factor authentication for Fortinet  User Assign

    • Select the Users that are required to be assigned to this group. Then Select Assign to Group in Select Action Dropdown. Then click Apply.
    • 2FA two factor authentication for Fortinet  Assignment to Group

    Step 4: Configuring 2FA two factor authentication for End-Users

    • Login into your End-User Dashboard.
    • Select Configure 2FA from left panel.
    • 2FA two factor authentication for Fortinet  End-User Dashboard

    • Browse through the Second factor options and choose an appropriate method to be used by the particular End-User during login.
    • In this guide, we have selected the method "OTP OVER SMS". You can explore the guide to setup other methods here.
    • 2FA two factor authentication for Fortinet  Enduser 2fa configuration

    • Click on configure/reconfigure "OTP OVER SMS".
    • Enter you phone number along with the necessary country code and click on SAVE below. After the Phone details are saved successfully, click on the Save button on the top bar to set this as your 2FA method.
    • 2FA two factor authentication for Fortinet  Enduser 2fa phone

    • To use a particular method of 2FA, we configure that method first and then select the method and click on SAVE.
    • Currently used method is denoted by green color.
    • 2FA two factor authentication for Fortinet  Enduser 2fa phone active

    Step 5: Add the Radius Client in miniOrange

    • Click on Apps >> Manage Apps.
    • Click on Configure Apps.
    • 2FA two factor authentication for Fortinet  configure apps

    • Select Radius tab and select Radius Client.
    • 2FA two factor authentication for Fortinet  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.
    • Configure the following Policy details for the Radius App.
    • Group Name: Group for which the policy will apply.
      Policy Name: Any Identifier that specifies policy name.
      Login Method Login Method for the users associated with this policy.
      Enable 2-Factor Authentication Enables Second Factor during Login for users associated with this policy.
      Enable Adaptive Authentication Enables Adaptive Authentication for Login of users associated with this policy.
      2FA two factor authentication for Fortinet  Add App

    • Click on Save.


    • 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.
    • 2FA two factor authentication for <?php$radius_vpn_name?>: Enable radius exchangeprotocol

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

    Step 6: Add Another Policy (Optional)

    • Here, we will configure a policy for the User Group that we created in the Step 3 and associate it with the VPN Application.
    • Click on Policies tab >> App Authentication Policy.
    • 2FA two factor authentication for Fortinet  App Authentication Policy

    • Click on Add Policy tab.
    • In Step 1 Select the RADIUS App that we configured earlier.
    • In Step 2 Select the required User Group in Group Name and enter Policy name as “<Any Name>”.
    • In this guide, we will configure a Password Only policy for Open_VPN group. So, only the Open_VPN group members can access VPN Services without a Second Factor.
    • 2FA two factor authentication for Fortinet  App Add Policy

    • Admin can change the second factor of the End user from the User List.
    • 2FA two factor authentication for Fortinet: User list in miniorange

    • Under Action Click on Select and then select Reset Second Factor.
    • 2FA two factor authentication for Fortinet: User list in miniorange and Reset second factor

    Step 7: Add miniOrange as RADIUS Server in FortiGate

    • Login to Fortinet Admin console for the VPN application.
    • Go to User & Device >>RADIUS Servers in left navigation bar and click on Create New.
    • 2FA two factor authentication for Fortinet  Fortinet-vpn-radius-servers

    • Here you need to configure the RADIUS Server.
    • 2FA two factor authentication for Fortinet  fortinet VPN App Radius server configuration

    • Configure details below to add Radius Server.
    • Name: Appropriate name. Eg: mo-radius-server
      Authentication Method: Click on Specify and then select PAP in the Dropdown.
      Primary Server IP / Name: 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
      Primary Server Secret Secret Key for the Fortinet (RADIUS) App defined in step 1
      Secondary Server IP / Name: Optional
      Secondary Server Secret Optional
    • To Save these settings click OK.

    Step 8: Test Connectivity

    • You can now verify the connectivity by clicking on Test Connectivity.
    • 2FA two factor authentication for Fortinet  Fortinet-vpn-radius-server--test-connectivity

    Step 9: Create a User Group in Fortinet

    • NOTE: If you have a existing User Group then just add miniOrange Radius Server as the Remote Server. If not, then follow the below steps.
    • Select User & Device >> User >> User Groups.
    • To Create New group, Click on Create New.
    • 2FA two factor authentication for Fortinet  User-groups-fortinet

    • Select Firewall in Type. Click on Add in the Remote Group Section and select miniOrange Radius Server as the Remote Server.
    • 2FA two factor authentication for Fortinet  User-groups-configuration-fortinet

    • Click on Ok.

    Step 10: Set Up VPN in Fortigate Admin Console.

    • Create a IPSec Tunnel using IPSec Wizard if you have no Tunnel Configured. Click Here to learn more.
    • Select VPN >> IPSec Tunnels and select the IPSec Tunnel you have configured.
    • 2FA two factor authentication for Fortinet  IPSec VPN Selection1

    • Click on Convert To Custom Tunnel if the tunnel is not Custom Tunnel.
    • 2FA two factor authentication for Fortinet  IPSec VPN Selection2

    • Click on Edit button for XAuth section.
    • Select PAP Server in the Type Dropdown.
    • 2FA two factor authentication for Fortinet  IPSec VPN XAuth1

    • Select the User Group configured in Step 4 in User Group Dropdown.
    • 2FA two factor authentication for Fortinet  IPSec VPN XAuth2

    • Click on Ok.

    Step 11: Configure the Fortinet timeout with miniOrange RADIUS server

    • Fortinet default timeout is 5 Seconds, which is insufficient while setting up MFA. We have to reconfigure the timeout to 30 Seconds.
    • So connect to the appliance CLI.
    • And execute below commands in command line: #config system global #set remoteauthtimeout 30 #end
    • 2FA two factor authentication for Fortinet  Command Line Interface

    Step 12: Test miniOrange 2FA setup for Fortinet VPN Login

    • Login to Fortinet and enter Username and Password.
    • 2FA two factor authentication for Fortinet  fortinet-vpn-login-console

    • It will prompt for a Second Factor Code if you have Enabled 2-Factor Authentication in miniOrange Policy.
    • 2FA two factor authentication for Fortinet  fortinet-vpn-login-console-2fa

    • Enter your 2-Factor Code and you should be connected to the VPN.
    • NOTE: While configuring IPSec VPN connection in FortiClient make sure to use the Pre-Shared key of the IPSec Tunnel that was created LAST. Fortinet has issues if multiple IPSec Tunnels are present at FortiGate Server.
    • On passing the valid credentials you can see the screen below:
    • 2FA two factor authentication for Fortinet  fortinet-vpn-login-sucess

    • If you enter an incorrect value you will be redirected to the below screen.
    • 2FA two factor authentication for Fortinet  fortinet-vpn-login-failure


    For Further Details:

    Two Factor authentication
    Fortinet

    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