How to set up WireGuard on GL.iNet router(3.x firmware)

In this guide, you will learn how to setup up a WireGuard connection on your GL.iNet router.

In order to proceed, you will need an active Surfshark subscription. You can see the available plans on our pricing page. 


Here are the steps that we will go through:

 

Get your key pair


There are two ways we can go from here - either you already have generated a key pair and you'll be able to use it, or we will have to generate one. If you do have a key pair already, continue the tutorial as usual, and if you do not have one, click here.

I have a key pair

  1. Go to this page, choose the Router option and click on WireGuard.


  2. In the next window, click on I have a key pair.

  3. Enter your public key and hit Save.


 

I don't have a key pair

  1. Go to this page, choose the Router option and click on WireGuard.


  2. In the next window, click on I don't have a key pair.


  3. Click on Generate a new key pair.

    Note: once the key pairs are generated, copy them and store them on your device, as you will not be able to check them again.

 

Choose a server

Once you have your key pair, you'll be able to see a Choose a location button - once you click on it, you'll be greeted with the full list of available locations to connect to. Select one and hit the download button. 


 

Configure the interface

  1. Now, connect to your router's web interface. You will have to paste your router's gateway IP address into the URL bar of the browser of your choice. By default, it is 192.168.8.1. Also, if you have not configured it before, the username and password should be admin. If that does not work, you'll be able to find the password on the label of your router.

  2. Next up, look for the VPN option, and select WireGuard. After, click on Set up WireGuard manually.


Once there, you should be able to see a window like so:


Enter the Configuration section, and simply paste in the contents from the server configuration file you have downloaded in the Choose a server section. You can open the server configuration file by using a text editing software of your choice, such as notepad.


You must make sure that your private key is inserted in the required section below:

[Interface]
Address = server's IP address

PrivateKey = <insert_your_private_key_here>  ← Insert your private key here
DNS = 162.252.172.57, 149.154.159.92

[Peer]
PublicKey = server's public key
AllowedIPs = 0.0.0.0/0
Endpoint = server's endpoint address

After done, press Next, and then you’ll be able to save the configuration made. You’ll also be able to view the finished configuration, which will look similar to this:


You’ll also find that you can view the connection status like so:

 

 

Make sure your connection is successful

It's always recommended to check whether your connection was successful after setting up a VPN for the first time. This can be easily done by doing an IP leak test and a DNS leak test which is available on our website. Click here to find out how to make sure your connection was successful.

 

Congratulations - you have successfully installed and configured Surfshark VPN on your router! As long as you’re connected, your location is private and your sensitive data is secure.


You may also be interested in:

  1. How to set up OpenVPN on GL.iNet router(3.x firmware)?
  2. How to set up VPN on my Smart TV or console?
  3. How to set up a VPN-protected Wi-Fi hotspot using Windows?

 

 

Was this article helpful?
Thank you for your feedback!