×
Community Blog An Overview of How to Integrate 2FA in a VPN Gateway with iDaaS and Active Directory

An Overview of How to Integrate 2FA in a VPN Gateway with iDaaS and Active Directory

This article gives step-by-step directions about setting up a VPN Gateway with iDaaS and Active Directory.

By Victor Mak, Alibaba Cloud Solution Architect

Alibaba Cloud Identity as a Service (IDaaS) is a centralized platform that provides management over identities, permissions, and applications for enterprise users. You can use this service to integrate and manage identities in your office administration system, business system, and third-party SaaS systems deployed on-premises or on the cloud. This way, you can access all applications and services with one account.

This article gives step-by-step directions about setting up a VPN Gateway with iDaaS and Active Directory. The following figure illustrates the integration architecture:

1

Prerequisites

Before you begin, make sure:

In this tutorial, we will use 47.242.57.11 as the backend and 47.242.34.49 as the Active Directory:

2

Procedure

  1. Enable iDaaS and integrate with Active Directory
  2. Sync up the Active Directory account to iDaaS
  3. Configure VPN Gateway with SSLVPN and enable 2FA with iDaaS
  4. Verify the results

Enable iDaaS and Integrate It with the Active Directory

Follow these steps to enable iDaaS in the iDaaS console and integrate with the Active Directory:

1.  Log on to the Alibaba Cloud iDaaS console and click Purchase Standard edition:

3

2.  Since iDaaS is now in a public preview, click Buy Now and Purchase to enable iDaaS:

4

5

3.  Once the iDaaS instance is ready, you can click Manage in the iDaaS console:

6

4.  Navigate to Authentication Sources under Authentication, find LDAP, and click Add Authentication Source:

7

5.  Fill in the LDAP information:

  • Set the LDAP URL to the Public IP address and port number of the AD domain
  • Set the LDAP Base, LDAP Account, and LDAP account password to the values of AD
  • Set the Filter Condition to (sAMAccountName=$username$)
  • Select the Update iDaaS Password to update the LDAP password in iDaaS

There is am LDAP configuration example shown below:

8

9

6.  Make sure the LDAP status is switched ON:

10

7.  Navigate to Cloud Product AD Authentication under Security Settings, select AD Authentication Source, and switch to Enable. Then, click Save:

11

Sync up the Active Directory Account to iDaaS

1.  Navigate to Organizations and Groups under Users, click Configure LDAP, and Create on the right side to configure LDAP settings:

12

13

2.  Fill in the LDAP server information on the Server Connection sheet:

  • Set the Server Address and Port Number to the Public IP address and *port number of the AD domain
  • Set the LDAP Base DN, Administrator DN, and password to the values of AD
  • Select Windows AD

There is a configuration example shown below:

14

3.  Click Test Connection to verify connectivity between iDaaS and AD:

15

4.  Switch to Field Matching Rules, follow the instructions, fill in the necessary information, and click Save. There is a configure LDAP sample shown below:

16

5.  Navigate to Account under Import. Click import and OK to import the account to iDaaS:

17

18

6.  A list of accounts is ready to import to iDaaS; select Confirm Import:

19

Configure the VPN Gateway with SSLVPN and Enable 2FA with iDaaS

1.  Log on to the Alibaba Cloud VPN Gateway console and click Create VPN Gateway:

20

2.  Select the Region, VPC, and vswitch where you want the VPN Gateway to be created. Make sure SSL-VPN Enable is selected, and then click Buy Now:

21

3.  Navigate to SSL Servers and click Create SSL Server:

22

4.  Fill in the value of the SSL Server name, VPN Gateway, Local Network, and Client Subnet, and then enable Advanced Configuration:

23

5.  Enable Two-factor Authentication and select IDaaS Instance. You need to grant permissions to access iDaaS:

24

25

6.  After permission is granted, you can select iDaaS:

26

7.  Navigate to SSL Clients under VPN and click Create Client Certificate:

27

8.  Fill in the Name and select SSL Server. Then, click OK:

28

9.  Download the Client Certificate. Now, you are ready to test the SSLVPN with the Active Directory account login via iDaaS:

29

Verify the Results

1.  Depending on which operating system you are using, you will need to download and install the VPN software that supports the OpenVPN protocol. Double check the .ovpn file to connect to the Alibaba Cloud VPN Gateway:

30

2.  The VPN software will require a login before it establishes the VPN connection. Fill in the Active Directory username and password and click OK:

31

3.  Now, you can access backend server using SSH with a private IP address:

32

0 0 0
Share on

Alibaba Clouder

2,599 posts | 762 followers

You may also like

Comments