Set up Vigor3900 as an OpenVPN server using local user database

Vigor3900 and Vigor2960 support OpenVPN since firmware version 1.4.0. Unlike other VPN protocols, OpenVPN offers Network Administrator the flexibility to choose transmission protocol, port number, and encryptions. It's an open-source application that you can find the client software for every platform. This article demonstrates how to set up Vigor3900 /Vigor2960 as an OpenVPN server and use its local user database for authentication.

1. Add an OpenVPN User Profile at User Management >> User Profile page:

a screenshot of Vigor3900 user profile

2. Go to VPN and Remote Access >> Remote Access Control and Enable OpenVPN Service

a screenshot of Vigor3900 Remote Access Control

3. Go to VPN and Remote Access >> OpenVPN General Setup >> OpenVPN General Setup:

a screenshot of Vigor3900 OpenVPN General Setup

4. Confirm the time settings is correct on the router.

a screenshot of Vigor3900 Time and Date Settings

5. Go to OpenVPN Client Configuration page:

a screenshot of Vigor3900 Open VPN Client Configuration

You may use any OpenVPN Client App for the connection. All you need to do is import the configuration file downloaded from the router, and enter the username and password when being asked for credentials. Here we show some examples.

Connecting from macOS by Tunnelblick

1. Download and install the OpenVPN client software. Start the software and import the client configuration file by clicking I have configuration files.

2. Double-click the client configuration file, then select "All Users" or "Only Me" depends on whether to share this VPN profile to other users. (Note: If you can't import the client configuration by double-clicking it, please try to drag and drop the ovpn file on the Tunnelblick icon on the menu bar or dock.

3. To start the VPN tunnel, right-click the Tunnelblick icon on the menu bar, then click Connect openvpn ("openvpn" is the name of the client configuration file)

4. We can check the VPN status after the connection established.

screenshots of Tunnelblick
Connecting from iOS by OpenVPN Connect

1. Download OpenVPN Connect from the App store. Then, send the config file to the iOS device, here we send it via mail. On the iOS device, tap the file and open it by OpenVPN app.

2. Tap 'ADD' to import the client configuration.

3. Enter Username and Password, then tap ADD.

4. Switch on VPN.

5. We can check the VPN status after the connection established.

screenshots of OpenVPN Connect
Connecting from Windows by OpenVPN

1. Download and install OpenVPN for Windows. Import the client configuration file by right-clicking the OpenVPN icon on the taskbar, then click Import file...

2. Select the configuration file then click Open.

3. Establish VPN connection by right-clicking the OpenVPN icon on the taskbar, then click Connect.

4. Enter Username and Password, then click OK to connect.

5. We can check the VPN status after the connection established.

screenshots of Windows OpenVPN
Connecting from Android by OpenVPN Connect

1. Download OpenVPN Connect from Play store. Send the configuration file to Android device, here we send it via mail, then download it to the device.

2. Import the client configuration file: Open OpenVPN Connect, then tap the menu icon on the top right of the app.

3. Choose Import Profile from SD card and select the client configuration file.

4. Establish VPN connection, enter Username and Password, then tap Connect.

5. We can check the VPN status after the connection established.

screenshots of Android OpenVPN connect
Connecting from Linux (Ubuntu)

1. Download the config file from router and run CLI.

2. Move to the directory where the configuration file is located

3. Install OpenVPN package by command sudo apt-get install openvpn

4. Connect OpenVPN by command sudo openvpn --config [openvpn config filename]

5. Enter username and password

screenshots of Ubuntu connecting openVPN to Vigor3900

Troubleshooting

AUTH: Received control message: AUTH_FAILED

The username does not exist on the router's local database, or the password doesn't match. (step 1)

Published On: May 15, 2018 

Was this helpful?     


Related Articles