WireGuard Server - GL.iNet Router Docs 3 (2024)

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.

GL.iNet routers have pre-installed WireGuard Server and Client.

Make sure Internet Service Provider assigns you a public IP address

Please check if you Internet Service Provider assigns you a public IP address here.

If no, you can't connect to the WireGuard Server.

An alternative method is to use a reverse proxy solution, we suggest AstroRelay, check the tutorial here.

Network Topology

  • If GL.iNet router is the main router in your network, this is simple, please move to the next step.
  • If you already have a main router, then the GL.iNet router is under the main router, you may need to setup a port forwarding on the main router.
  • If you already have a main router, the GL.iNet router is several levels below it and you need to set up port forward on each level.

Initialize WireGuard Server

Access to web Admin Panel, on the left side -> VPN -> WireGuard Server. Click Initialize WireGuard Server.

WireGuard Server - GL.iNet Router Docs 3 (1)

Start the WireGuard Server

You can simply use the default parameters of IP Address and Local Port, or you can set your own value. Then click Start to start your own WireGuard server.

WireGuard Server - GL.iNet Router Docs 3 (2)

Allow Access Local Network: Enable this will allow every client that connect to this WireGuard Server be able to access your LAN. Please use with caution.

Note that you can't running VPN Client and Server at the same time, and also can't running OpenVPN Client and WireGuard Client at the same time.

Add a new client

You have to add a new user and apply the configurations when you are connecting to this WireGuard Server.

Click Management tab and then Add a New User.

WireGuard Server - GL.iNet Router Docs 3 (3)

Specify the Name of the new client and then click Add.

WireGuard Server - GL.iNet Router Docs 3 (4)

Get the configuration details for your client

You can now check the list of the clients you added. You can Delete any unwanted client. Please click Configurations to find the configuration details which you need to use when you are setting up WireGuard client. We provide QRcode and Plain Text, you can use a Text Editor software to save the Plain Text to .conf file.

WireGuard Server - GL.iNet Router Docs 3 (5)

WireGuard Server - GL.iNet Router Docs 3 (6)

To check if WireGuard Server is working properly

To check if WireGuard Server is working properly, we can use another device connected to another network and use the WireGuard configuration we exported earlier to connect and see whether it connects properly and whether the IP address is the IP of WireGuard Server.

The simpliest way is to use a cell phone with WireGuard official client app installed, turn off its Wi-Fi connection, and only connect to Internet via 3G/4G/5G. Then open the WireGuard app, import the WireGuard configuration from QR code. Enable the connection, check if the phone has Internet access and whether its IP address is the IP of your WireGuard Server.

There are several common reasons cause failed:

  • The Internet Service Provider doesn't assign you a public IP address, please check here.
  • You may need setup port forwarding, please check here.
  • The port you are using for WireGuard Server is blocked by the Internet Service Provider, change to another port, or contact the Internet Service Provider.
  • Some countries/regions may block the VPN connection.

If your public IP address is dynamic

Some Internet Service Providers may change your IP address sometimes. To overcome this, enable the DDNS, then edit the configuration to replace public IP address with your DDNS url.

  1. Copy the content of the configuration to a text editor(e.g. Atom, Sublime).
  2. Edit the configuration to replace DDNS url with your public IP address.

    WireGuard Server - GL.iNet Router Docs 3 (7)

    After replaced.

    WireGuard Server - GL.iNet Router Docs 3 (8)

  3. Copy the revised content to generate a QRCode, or save it as .conf file.

The WireGuard connection may down a while when the public IP address changes, after the DDNS url update to the new public IP address, the conneciton will resume. The DDNS is updated every 10 minutes. If the connection doesn't resume, please make sure the DDNS url is point to tne new public IP address, then turn off the WireGuard connection and turn on again.

WireGuard Client App

We can use another GL.iNet router as WireGuard Client, or use their official app on other devices with various OS.

Related Articles

  • How to visit WireGuard client LAN side from Server

Still have questions? Visit our Community Forum.

WireGuard Server - GL.iNet Router Docs 3 (2024)

FAQs

How to set up WireGuard on GL iNet router 3x firmware? ›

How to set up WireGuard® on GL. iNet router(3. x firmware)
  1. Get your key pair.
  2. I have a key pair.
  3. I don't have a key pair.
  4. Choose a server.
  5. Configure the interface.
  6. Ensure the connection is successful.
Jan 26, 2024

Does Surfshark work with GL iNet? ›

To proceed, you need to have a GL. iNet router running 3. x firmware and an active Surfshark subscription, which you can purchase on Surfshark's pricing page.

How to enable WireGuard on MikroTik router? ›

Basic Wireguard Setup
  1. Create Wireguard Interface.
  2. Assign address to wireguard interface 192.168.199.1/24.
  3. Add Peers 192.168.199.3/32.
  4. Connect - Successful - No internet.
Aug 15, 2023

How to setup a VPN server on GL iNet router? ›

How to set up an OpenVPN server on a GL. iNet router
  1. Sign in to your router. In a web browser, enter the URL to your router admin panel (e.g., 192.168. ...
  2. Set up Dynamic DNS (optional) ...
  3. Download the configuration file. ...
  4. Connect to the OpenVPN server. ...
  5. Check if you are connected successfully.

How do I setup a WireGuard VPN on my router? ›

Go to Advanced > VPN Server > WireGuard, and tick the Enable box of WireGuard.
  1. View the default WireGuard VPN settings, as shown above. ...
  2. Specify a name for this account. ...
  3. • ...
  4. On the account list, you can click the button to modify the VPN server settings, connect to the server, or delete the account.

Is WireGuard better than OpenVPN? ›

Key takeaways from testing WireGuard vs OpenVPN speeds: On average, WireGuard was about 3.2 times faster than OpenVPN across all the locations we tested. WireGuard's performance advantage over OpenVPN is greater with nearby (low latency) servers in comparison to long-distance (high latency) server locations.

Does Surfshark support WireGuard? ›

Go to Surfshark's login page and log in. Then, visit VPN > Manual setup. Choose the Desktop or mobile option and click on WireGuard.

Is Surfshark VPN legal? ›

Is it legal to use a VPN? VPNs are legal in most countries, like the US, Canada, Japan, the UK, and most of Europe. However, VPN use is restricted or outright banned in some countries, including North Korea, Turkmenistan, Belarus, and Iraq.

Which VPN protocol is best Surfshark? ›

How do I know which Surfshark VPN protocol is the best for me?
  • WireGuard® is good all around, especially when speed is the issue.
  • IKEv2 is on par with WireGuard® and is really good with mobile.
  • OpenVPN usually works best for routers.

How to setup WireGuard VPN server at home? ›

  1. Step 1: Expose Wireguard VPN Server to the Internet. Your Public IP Address. ...
  2. Step 2: Setup Wireguard VPN Server. Install the wireguard software and dependencies. ...
  3. Step 3: Setup client connections. ...
  4. Step 4: Setup clients. ...
  5. Step 5: Test Connection.
Sep 29, 2023

Is WireGuard TCP or UDP? ›

Networking. WireGuard uses only UDP, due to the potential disadvantages of TCP-over-TCP. Tunneling TCP over a TCP-based connection is known as "TCP-over-TCP", and doing so can induce a dramatic loss in transmission performance (a problem known as "TCP meltdown").

What port does WireGuard use? ›

What ports do you use for WireGuard? UDP ports 53, 80, 443, 1194, 2049, 2050, 30587, 41893, 48574, 58237.

How to setup WireGuard server on GL iNet? ›

Access to web Admin Panel, on the left side -> VPN -> WireGuard Server.
  1. Click Generate Configuration (Only the first time).
  2. Apply the configuration. The default configuration works for most cases. ...
  3. Add a profile. Switch to Profiles tab, generate a profile for your device by click the Add button. ...
  4. Start WireGuard server.

How to configure VPN server on MikroTik router? ›

MikroTik L2TP VPN Setup: Step-by-Step Guide
  1. Step 1: Create a PPP Profile. ...
  2. Step 2: Create a PPP User. ...
  3. Step 3: Establish the L2TP Server Binding. ...
  4. Step 4: Enable The L2TP Server. ...
  5. Step 5: Add Firewall Configurations (Optional) ...
  6. Step 6: Set the IPsec Default Policies (Optional/Needed for Mac) ...
  7. Step 7: Edit the IPsec Peer Profile.
Jan 16, 2023

Does NordVPN support WireGuard? ›

NordLynx is NordVPN's revolutionary technology built around the WireGuard® VPN protocol. It helps you connect to NordVPN servers faster and improves your VPN connection speeds without compromising security or privacy.

How to setup WireGuard manually? ›

I have a key pair
  1. Go to Surfshark's login page and log in. Then, visit VPN > Manual setup. Choose the Desktop or mobile option and click on WireGuard.
  2. In the next window, click on I have a key pair.
  3. Name your key pair and click Next.
  4. Enter your public key and hit Save.
Feb 27, 2024

How to configure WireGuard? ›

Setting up a WireGuard VPN requires the following:
  1. A VPS (Virtual Private Server) or a server with a public IP address.
  2. Access to the server's command line (typically via SSH).
  3. WireGuard software installed on both the server and your local machine (client).
  4. Basic knowledge of networking and command-line tools.
Mar 14, 2024

How do I install VPN firmware on my router? ›

How do I set up a VPN on a router?
  1. Access your router's control panel by typing in your IP in the browser's address bar;
  2. Install the VPN firmware on your router by downloading it from the DD-WRT website;
  3. Install a VPN app;
  4. Go to the VPN tab in the router's control panel;

How do I enable WireGuard service? ›

Autostart WireGuard in systemd
  1. Generate a valid and working WireGuard configuration file /etc/wireguard/wg0. ...
  2. Add the WireGuard service to systemd: ...
  3. Start the new service immediately: ...
  4. Reboot your computer system to verify the automatic connection on startup works as expected.
  5. Check the service status:

Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5429

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.