OpenVPN is an open-source commercial software that implements VPN techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. After setting up your own OpenVPN server, you may want to enhance it's security. One way to do that is to enable 2FA (Two-Factor Authentication) for your OpenVPN managed active directory. When you integrateTwo-Factor Authentication(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 be shared on your virtual or hardware 2FA solution. This adds another security measure to prevent unwanted users connecting to your server.
The 2-factor authentication can be of two types depending on the VPN clients.
miniOrange accomplishes this by acting as a RADIUS server that accepts the username/password of the user entered as a RADIUS request and validates the user against the user store as Active Directory (AD). After the first level of authentication, miniOrange prompts the user with 2-factor authentication and either grants/revokes access based on the input by the user.
1. Primary authentication initiates with the user submitting his Username and Password.
2. User request acts as an authentication request to RADIUS Server(miniOrange).
3. miniOrange RADIUS server passes user credentials to validate against the credentials stored in AD (Active Directory) / Database.
4. Once the user's first level of authentication gets validated AD sends the confirmation to RADIUS Server.
5. Now miniOrange RADIUS Server asks for a 2-factor authentication challenge to the user.
6. Here user submits the response/code which he receives on his hardware/phone.
7. User response is checked at miniOrange’s RADIUS Server side.
8. On successful 2nd factor authentication the user is granted access to login.
miniOrange provides 15+ 2FA authentication methods for your OpenVPN: OTP over SMS-Email, Push Notification, Software Token, Google / Microsoft Authenticator etc. You can opt for any of the 2FA methods to secure your OpenVPN. To integrate 2FA, you can enable RADIUS authentication in OpenVPN and configure policies in miniOrange to enable or disable 2FA for users.
miniOrange provides user authentication from external directories like Microsoft Active Directory, Azure AD, AWS Cognito etc.
Can't find your Directory ? Contact us on email@example.com. We'll help you setting it up in no time.
IT IS HIGHLY RECOMMENDED THAT YOU CONTACT US FOR SETTING UP MFA FOR VPN.
Enable Two-Factor Authentication (2FA)/ (MFA) for your OpenVPN Client to extend security level.
|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).
|Include Password & OTP in same Request||Check this option for clients which takes password and the OTP in same request. Otherwise keep it unchecked.|
|Send Groups in Response||Enable this to send user groups as Vendor-Specific Group Attributes.|
|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.|
Only For On-Premise Version
Step 1: Open Firewall Ports.
|Hostname or IP Address:||For on-premise version: IP of server where IDP(miniOrange) is installed
For cloud version: Contact us at firstname.lastname@example.org to get the IP
|Shared Secret:||Security Key that was configured in miniOrange IDP.
In step 1 we configured this as "sharedsecret"
Here's the list of the attributes and what it does when we enable it. You can enable/disable accordingly.
|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|
Refer our guide to setup LDAPS on windows server.
1. Create User in miniOrange
2. Bulk Upload Users in miniOrange via Uploading CSV File.
3. Self User Registration
(The Active Directory Group Provisioning (Sync) setup is done. Now, whenever a user is created or modified in LDAP server and if the Assign Users to groups is enabled, then user group attribute from the LDAP server will be automatically synced and the user group will be assigned or changed accordingly in miniOrange.)
(You can follow these steps and use the login URL present in the Branding section.)
With the help of this guide you will be able to configure Two-Factor Authentication(2FA) for OpenVPN Login.
For Further Details:What is Two-Factor authentication?
miniOrange provides 24/7 support for all the Secure Identity Solutions. We ensure high quality support to meet your satisfaction.Try Now
We offer Secure Identity Solutions for Single Sign-On, Two Factor Authentication, Adaptive MFA, Provisioning, and much more. Please contact us at -
+1 978 658 9387 (US) , +91 97178 45846 (India) | email@example.com