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 an OpenVPN server in a few minutes.

Before you start, make sure you meet the following requirements

Public IP address

Setting up an OpenVPN server requires a public IP address. To check if you have one, refer to this link.

Port forwarding

If your GL.iNet router is connected behind a primary router, set up port forwarding on the primary router.

1. Log in to your router

Open a web browser and access the router's web admin panel (default IP: 192.168.8.1). Log in with your admin password.

log in

2. Enable 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, if you do not have a static public IP address, e.g., a dynamic one instead, you may need to enable Dynamic DNS (DDNS) on your GL.iNet router. This allows persistent connectivity to the OpenVPN server even when your public IP address changes dynamically.

Follow the steps below to enable Dynamic DNS.

  1. In the router's web admin panel, go to APPLICATIONS > Dynamic DNS. dynamic DNS
  2. Toggle on Enable DDNS, read and agree to the Terms of Service & Privacy Policy, then click Apply. apply

3. Download configuration file

  1. In the router's web admin panel, go to 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 window, toggle the switch Use DDNS Domain to on if you have set up Dynamic DNS previously.
  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:

For firmware v4.7 and earlier:

  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.

    remote access lan

For firmware v4.8 and higher:

  1. In the left sidebar, click VPN > OpenVPN Server.
  2. Click Options in the upper right.
  3. Toggle the switch to on for Allow Remote Access the LAN Subnet.
  4. Click Apply.

    remote access lan

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. Verify VPN connection

Open a web browser and search for your IP address and location. If they match the VPN server's IP (instead of your Internet service provider's IP) and location, the VPN connection is successful.


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