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

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

To proceed, you will need a router, a computer, and an active Surfshark subscription. If you don’t have one yet, take a look at Surfshark plans.

 

Credentials and server selection

Before setting up the router, you will need to obtain the credentials for the manual setup and select a server to connect to.
 

NOTE: These are not your regular credentials, such as your email and password.
 

  1. Head to the Surfshark login page and log in. Then, click on VPN -> manual setup.


  2. Select set up manually.



  3. Choose the WireGuard protocol.



  4. Once there, select I don't have a key pair.



    NOTE: If you have already created a key pair, simply press I have a key pair, and enter your public key.


  5. Enter a name for the keypair, and click next.



  6. Click generate new key pair.



  7. You will be able to see a public and a private key pair. Make sure to save both of them.

 

Choose a Surfshark VPN server

  1. Head to the Locations tab and locate the server that you wish to connect to.


     
  2. Click on the download icon to the right of the server name.



  3. Click on the download icon.

 

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:

  3. 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
  4. Once you are done, press Next, and then you can 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: 

Ensure the connection is successful

 

We always recommend checking if Surfshark VPN is working after setting it up for the first time. You can easily do it by performing Surfshark IP leak test and a DNS leak test. For your convenience, both are available on our website.




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!