Skip to content

How to set up an OpenVPN server on a GL.iNet router

This tutorial will show you how to set up an OpenVPN server on a GL.iNet router. 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. Sign in to your router

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

sign in

2. Set up Dynamic DNS (optional)

Setting up an OpenVPN server requires a static public IP address, which provdes a fixed address for your VPN server to be accessible to other devices. In most cases, you may not have a static public IP address. This requires setting up Dynamic DNS on your GL.iNet router. It allows you to connect to the OpenVPN server even if your public IP address is dynamic (instead of static) and changes constantly.

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 the 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. 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, 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 the 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 if you are connected successfully

To check if you are connected to the OpenVPN server successfully, look up your IP address online. If it matches the one provided by your internet service provider to your network, you are connected to the OpenVPN server successfully.


Still have questions? Visit our Community Forum.