How to Set Up WireGuard Client on GL.iNet Router¶
WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPSec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN.
If you have already bought WireGuard service from a provider, but you don't know how to get the configuration files, please refer to get configuration files from WireGuard service providers or ask its support.
You can set up WireGuard Client via web Admin Panel or mobile app. For the mobile app, it has already integrated some WireGuard Service Providers, they are AzireVPN, Mullvad VPN, OVPN, StrongVPN, PIA VPN.
For set up via web Admin Panel, please follow the guide below.
You can log in by clicking the AzireVPN or Mullvad button if you have a their membership, or by clicking Add Manually to upload the WireGuard profiles.
Set Up AzireVPN¶
AzireVPN is privacy-minded VPN service providing secure, modern and robust tunnels such as WireGuard.
-
Input Username and Password, then click Save Credentials & Get Servers. It will generate configuration files for each servers.
-
Go to VPN Dashboard to enable the connection.
Once connected, you should see your user IP address and the number of Bytes send/received.
-
Update servers
AzireVPN may maintain or shutdown some servers, it will make the connection failed, you can Update Servers to get the latest available servers.
-
Edit credential
Click the cog icon to edit the credential.
Set Up Mullvad¶
Mullvad is a VPN service that helps keep your online activity, identity, and location private.
Firmware 4.x has integrated Mullvad WireGuard service.
-
Input Account, then click Save Credentials & Get Servers.
Mullvad account number is a 16-digit decimal in the "1000 0000 0000 0000" to "9999 9999 9999 9999" range.
It will pop up a dialog to select a location.
Then it will generate the configuration files of the selected location server.
The Public Key is the WireGuard public key to send to Mullvad server, you can have up to five keys at the same time, you can manage WireGuard keys on Mullvad's page.
-
Go to VPN Dashboard to enable the connection.
Once connected, you should see your user IP address and the number of Bytes send/received.
-
Update servers
Mullvad may maintain or shutdown some servers, it will make the connection failed, you can Update Servers to get the latest available servers.
-
Edit credential
-
Delete account information
If you click Delete, it will delete the account credential, private key, public key and configuration files in the router.
-
Delete
Allow deleting all configuration files with one click and provide a prompt to also delete private key and public key.
Setup WireGuard Client¶
As of firmware 4.0, it brings grouping to manage WireGuard profiles.
-
Click Add Manually.
-
It will create a group.
-
Give the group a descriptive name, e.g. azirevpn. Then you can choose to upload configuration files or manually add configuration.
-
Upload configuration files
Upload your WireGuard configuration file, click Apply.
-
Manually Add Configuration, it is for if you want to paste the WireGuard configuration or fill in each item.
Give a descriptive name and paste the configuration, click Apply to continue.
Or you can add configuration by fill in each item, click Item Mode.
-
-
Click the three dots icon to start / edit /delete the profile.
-
Check the connection status by go to VPN Dashboard page.
Set Up WireGuard Server on GL.iNet Router¶
You can get a GL.iNet router to set as WireGuard server, and get another GL.iNet router to set as WireGuard client. For setup WireGuurd server, please check out here.
Get Configuration Files from WireGuard Service Providers¶
AzireVPN
AzireVPN¶
-
Access AzireVPN official website and login, then access the WireGuard Configuration generator
-
At the IP option, please select IPv4. Then click Download Configuration.
-
Then follow the guide to continue.
-
You can also use mobile app to setup AzireVPN.
Mullvad
Mullvad¶
-
Access Mullvad Official Website and login, then access the WireGuard configuration file generator
-
Then follow the guide to continue.
-
You can also use mobile app to setup Mullvad.
PIA (Private Internet Access)
PIA (Private Internet Access)¶
It can't downlaod the WireGuard configs from its website, please use mobile app to setup PIA VPN.
Hide.me VPN
Hide.me VPN¶
Hide.me VPN providers a simple way to use their WireGuard service in GL.iNet router.
-
SSH to router.
-
Copy the install url below, then paste it to the terminal, hit the Enter key. (Right click the mouse will paste it.)
curl -fsSL https://raw.githubusercontent.com/eventure/hide.client.routers/master/glinet_v4/hidemevpn | sh -s install
-
It will start installing, then ask for the username and password. When typing or pasting the password, no change is visible on the terminal, just hit the Enter key after typing.
-
Once you're done, go to the web Admin Panel and you'll see that a hide.me VPN group has been created with configuration files already in it. Just connect as you would any other configuration file.
Note: The key in the Hide.me VPN configuration file is regenerated before each connection and becomes invalid after disconnection, so copying this configuration file to other devices will not connect successfully.
Proton VPN
Proton VPN¶
If you are using Proton VPN, please follow the guide here to generate the WireGuard configuration file.
Then follow the guide to continue.
Windscribe
Windscribe¶
Login then access the WireGuard Config Generator. Select location and port you'd like to use, then click Download Config.
Then follow the guide to continue.
Surfshark
Surfshark¶
-
If you are using Surfshark, login then go to this page, click on Router, and select WireGuard.
-
In the next window, select I don't have a key pair.
-
Select Generate a new key pair.
-
Once the key has been generatd, select Choose a location.
-
Lastly, choose a location you would like to set up, and hit the download button next to the location.
StrongVPN
StrongVPN¶
-
If you are using StrongVPN, sign in at https://wg.strongvpn.com
-
Select a location from the drop down menu, click GENERATE, open the downloaded text file.
-
Then follow the guide to continue.
-
You can also use mobile app to setup StrongVPN.
OVPN
OVPN¶
-
Login www.ovpn.com, find the menu below to get WireGuard configuration files.
-
Click Generate WireGuard keys, choose the server you wanted, then download the config.
-
Open the config by text edit software, copy the content.
The config may contain IPv6 content, as GL.iNet routers is not support IPv6 good enough, so please delete the IPv6 content. I have a example show below, the highlight content is the IPv6 content.
-
Then follow the guide to continue.
-
You can also use mobile app to setup OVPN.
PureVPN
PureVPN¶
Please follow the guide here to get the WireGuard configuration file.
Note: Please make sure to copy the file and activate the connection within 30 minutes once the profile is downloaded, otherwise the configuration will expire and you will have to redownload a fresh configuration file.
PrivateVPN
PrivateVPN¶
-
Login then access the Control panel
-
Select a server
-
Click GENERATE CONFIG, then copy the config.
-
Then follow the guide to continue.
AirVPN
AirVPN¶
-
If you are using AirVPN, sign in to their website, go to the Client Area, click the Config Generator
-
At the Config Generator page, select WireGuard at the Protocols sector.
-
Select a server, then scroll down to the end, click Generate button. It will download the configuration file.
-
Then follow the guide to continue.
Astrill
Astrill¶
If you are using Astrill, please log in then access this page to generate WireGuard configurations.
Then follow the guide to continue.
IVPN
IVPN¶
If you are using IVPN, you need to generate the WireGuard config manually. Follow the guide base on your OS.
Then follow the guide to continue.
SpiderVPN
SpiderVPN¶
-
Login www.spidervpn.org, find the section to get your VPN configuration. Follow the steps to get the configuration.
-
Download the vpn configuration
-
Then follow the guide to continue.
StarVPN
StarVPN¶
-
Register an account with StarVPN
Head on over to their pricing plan options and choose a VPN plan that suits your needs. You can register on checkout or directly here.
-
Download Wireguard Configuration
Log into the StarVPN member area dashboard. Click on Wireguard Config to download the configuration file. Each slot will contain a unique wireguard configuration file.
-
The config may contain IPv6 content, as GL.iNet routers is not support IPv6 good enough, so please delete the IPv6 content.
-
Then follow the guide to continue.
TRUST.ZONE
TRUST.ZONE¶
-
Access https://trust.zone/setup and login.
-
Scroll down to the WireGuard section, choose the port you want, then download a config of specific server or a zip file of all configs.
-
Then follow the guide to continue.
VPN.AC
VPN.AC¶
VPN Unlimited(KeepSolid)
VPN Unlimited(KeepSolid)¶
-
If you are using VPN Unlimited, sign in to your User Office > select the VPN Unlimited® application > click Manage.
-
Press the field under Device and click Manually create a new device… > set it's custom name, for example WireGuard > choose appropriate location of the Server > select the WireGuard® protocol from the dropdown menu > click Generate.
-
The configuration parameters will then appear below in the text format.
Combine the configuration as below.
[Interface] PrivateKey = paste the PrivateKey from your User Office ListenPort = paste the ListenPort details Address = paste Address information DNS = paste DNS details from the User Office [Peer] PublicKey = paste PublicKey from the User Office PresharedKey = paste PresharedKey details AllowedIPs = paste AllowedIPs details Endpoint = paste Endpoint information
-
Then follow the guide to continue.
12VPX
12VPX¶
If you are using 12VPX, login then access this page, you will see the configs of all servers.
Then follow the guide to continue.
WireGuard® is a registered trademark of Jason A.Donenfeld.
Still have questions? Visit our Community Forum.