Two Factor Authentication (2FA) with AD/LDAP Server

Draytek offers two-factor authentication solution for customer using AD/LDAP to authenticate remote dial-in VPN clients. It can add extra layer of security for VPN connections, and customer can also benefit from saving the extra cost on SMS messages or license fees for the official authentication system.

This document will demonstrate how to activate two factor authentication on your remote dial-in VPN connection with AD/LDAP server.
Note:

For configuring AD/LDAP server, please refer to FAQ article: Authenticate Remote Dial-In VPN Clients with AD/LDAP Server

Time-based One-time Password (TOTP)

Send via Email

  1. Make sure that mail attribute is configured with the email address in your AD/LDAP account.
  2. Go to Object Settings >> SMS/Mail Service Object, setup a Mail Server Profile.
  3. Go to VPN and Remote Access >> PPP General Setup, enable Authentication Code via Email option and select the Mail Server Profile with customized username and password.
  4. Open Smart VPN Client app, click add to create a profile as follows:
    1. Enter the Profile Name.
    2. Choose a protocol in Type.
    3. Enter router’s WAN IP in IP or Hostname.
    4. Enter User Name and Password.
    5. Click OK.
  5. Select the profile just created and swift to Connect. Confirm User Name and Password and click OK to dial up VPN connection.
  6. When two factor authentication dialogue pops up, go to your email inbox and copy the 6 digit verification code received from the route. Enter the code and click OK to proceed the authentication.
  7. Now the VPN is connected.

Send via SMS

  1. Make sure that phone attribute is configured with recipient number in your AD/LDAP account.
  2. Go to Object Settings >> SMS/Mail Service Object, setup an SMS Provider Profile.
  3. Go to VPN and Remote Access >> PPP General Setup, enable Authentication Code via SMS option and select the SMS Provider Profile with customized username and password.

  4. Open Smart VPN Client app, click add to create a profile as follows:
    1. Enter the Profile Name.
    2. Choose a protocol in Type.
    3. Enter router’s WAN IP in IP or Hostname.
    4. Enter User Name and Password.
    5. Click OK.
  5. Select the profile just created and swift to Connect. Confirm User Name and Password and click OK to dial up VPN connection.
  6. When two factor authentication dialogue pops up, go to your SMS inbox and copy the 6 digit verification code received from the route. Enter the code and click OK to proceed the authentication.
  7. Now the VPN is connected.

Dial up VPN from other devices.

If the remote dial-in VPN user device is not Windows or not using Smart VPN Client (Windows), we can still activate 2-FA and enter the verification code with alternative method.

  1. Access Router’s WebUI page.
    1. Open your browser, enter router’s LAN IP to access router’s HTTP WebUI page.
    2. Enter the 6 digit verification code and click Verify.
    3. Now the VPN is connected.
  2. Access the URL link from the notification.
    1. Click the URL link provided in the notification message sent to your Email or SMS inbox. The URL will help you complete the authentication automatically.
    2. Now the VPN is connected.

Published On:2024-01-24 

Was this helpful?