Skip to content

How to set up OpenVPN server on GL.iNet routers

This tutorial will show you how to set up an OpenVPN server on GL.iNet routers. A VPN server allows you to establish a secure connection to your home or office network remotely. With a GL.iNet router, you can set up your OpenVPN server in minutes.

Before you start, make sure to check the following requirements:

A public IP address

Setting up an OpenVPN server requires a public IP address. To check if you have one, follow these steps.

Port forwarding

If your GL.iNet router is connected to a primary router, you will have to set up port forwarding on the primary router.

1. Log in to your router

In a web browser, enter the URL (e.g., 192.168.8.1) to access the router admin panel. Enter your admin password, then click Login.

log in

2. Set up Dynamic DNS (Optional)

Setting up an OpenVPN server typically requires a static public IP address, which provides a fixed endpoint for other devices to access your VPN server. However, most users do not have a static public IP address. In such cases, you can configure Dynamic DNS (DDNS) on your GL.iNet router. This allows persistent connectivity to the OpenVPN server even when your public IP address changes dynamically.

To set up Dynamic DNS, follow these steps:

  1. In the left sidebar, click Applications > Dynamic DNS. dynamic DNS
  2. Next to Enable DDNS, toggle the switch to on.
  3. Check the box for I have read and agree to the Terms of Service & Privacy Policy.
  4. Click Apply. apply

3. Download configuration file

  1. In the left sidebar, click VPN > OpenVPN Server.
  2. Click Generate Configuration.
  3. Keep the default settings as-is, then click Export Client Configuration. click export
  4. In the pop-up page, if you set up Dynamic DNS previously, toggle the switch to on for Use DDNS Domain.
  5. Click Download, then save the file.
  6. At the top of OpenVPN Server page, click Start. click start
(Optional) To access the local network of the VPN server, enable these settings:
  1. In the left sidebar, click VPN > VPN Dashboard.
  2. Click the Options icon.
  3. Toggle the switch to on for Remote Access LAN.
  4. Click Apply. click apply

4. Connect to OpenVPN server

To connect to the OpenVPN server, you will need an OpenVPN client. You can set it up by using one of these methods below:

Method 1: A third-party OpenVPN client app (Use this method if you don't have an additional router that supports setting up an OpenVPN client)

In this tutorial, we will use the OpenVPN Connect app, the official app developed by OpenVPN Inc, as an example.

  1. On another device, connect to a different Wi-Fi network (or connect to cellular if you are using a mobile device.)
  2. Send the configuration file you downloaded earlier (e.g., by email) to the device, then download the file to it.
  3. Download OpenVPN Connect for your device operating system:
  4. In the app, read the terms and conditions, then select Agree.
  5. Select Upload File. upload file
  6. Select Browse, then select the configuration file you downloaded previously.
  7. Select OK. tap ok
  8. Select Connect > OK > Allow.

You will see the word "Connected" at the top of the VPN profile. connected status

Method 2: A router that supports setting up an OpenVPN client

You can use any routers that support setting up the OpenVPN client manual configuration. In this tutorial, we will use GL.iNet's travel router Beryl AX (GL-MT3000) as an example.

  1. On another device, connect to a different Wi-Fi network (or connect to cellular if you are using a mobile device.).
  2. In a web browser's address, enter the URL to your router admin panel (e.g., 192.168.8.1).
  3. Enter your password, then click Login
  4. In the left sidebar, click VPN > OpenVPN Clientclick openvpn client
  5. Click Add Manually. click add manually
  6. Enter a name in the field, then click the check icon.
  7. Upload the configuration file you downloaded earlier. select a file
  8. Click Apply.
  9. Click the three-dot icon, then click Start.
  10. Connect a device to the router running the OpenVPN client.

5. Check VPN connection

To check if you are successfully connected to the OpenVPN server, look up your public IP address. If it matches the one provided by the VPN server (not your Internet service provider), you are connected to the OpenVPN server successfully.


Still have questions? Visit our Community Forum or Contact us.