Networking Room — home

Home / Field Guides / GL.iNet WireGuard server setup on the Flint 2: reach your ho...

Field guide · GL.iNet Flint 2

GL.iNet WireGuard server setup on the Flint 2: reach your home network from anywhere

A GL.iNet WireGuard server setup takes about 15 minutes on the Flint 2 (GL-MT6000), as long as your ISP gives you a public IP. Check that first, then generate the server, add a profile for each device, forward the port through an ONU if you have one, and fix the usual failures.

Illustration: a home Wi-Fi router on a desk beside a laptop showing a glowing tunnel graphic and a smartphone, suggesting a secure remote connection
Illustration: a home Wi-Fi router on a desk beside a laptop showing a glowing tunnel graphic and a smartphone, suggesting a secure remote connection

At a glance

Steps
7, all in the web Admin Panel
Time needed
About 15 minutes, plus waiting time if you must ask your ISP for a public IP
Admin Panel
192.168.8.1, with the admin password you set at first login
Menu
VPN > WireGuard Server
Default listen port
51820 (UDP)
Must have
A public IPv4 address on the router that faces the internet (not CGNAT)
Client app
Official WireGuard app; profiles come as a QR code, plain text or a .conf file

A WireGuard server on your home router lets your phone or laptop dial back into your own network from anywhere. Once it works, you can open your NAS, IP cameras or the router's own settings from a café or an office, and your browsing leaves through your home connection instead of the public Wi-Fi you happen to be on.

This GL.iNet WireGuard server setup uses the Flint 2 (GL-MT6000) as the example, but the screens are the same on any GL.iNet router running firmware 4.x. The setup itself is quick. What stops most people is not the router at all: it is whether the internet connection can accept an incoming call in the first place. So that check comes first.

What you need before you start

  • The Flint 2 already online. The INTERNET page should show a green dot next to your connection. Set up the internet connection first; a VPN server cannot fix a router that is not online.
  • The admin password. You chose it the first time you logged in at 192.168.8.1. If you have lost it, read the reset warning further down before doing anything.
  • The WireGuard app on each device. Install it from the official WireGuard site or your phone's app store. Each phone, laptop or tablet gets its own profile.
  • A phone with mobile data. You will test from outside your home network. Testing over the router's own Wi-Fi tells you nothing.
  • Access to the box in front of the Flint 2, if there is one. If an ONU, modem-router or another router sits between the Flint 2 and the ISP, you need its admin login to add a port forwarding rule.
  • Current firmware. The menu names here match firmware v4.8 and later. Check for an update before you start so your screens match.

The one check that decides everything: public IP or CGNAT

Think of the WireGuard server as a phone line waiting for a call. Your laptop at the café has to be able to dial a number that rings at your home. If your ISP shares one public address among many customers, a system called carrier-grade NAT (CGNAT), there is no number that rings only at your house, and no setting on the router can change that. GL.iNet says it plainly: without a public IP address, the router cannot be set up as a WireGuard server.

GL.iNet's check takes two minutes. Log in to the router that connects to the ISP (if you have an ONU in router mode, that is the ONU, not the Flint 2) and note the WAN IP address. Then search "what is my ip" in a browser on the same network. If the two addresses match, you have a public IP. If they do not, the table below tells you what the mismatch means.

A private WAN address on the Flint 2 with a public address on the ONU is the classic ONU-plus-router layout. We explain how to spot it in Double NAT with ONU and router: how to check for it and fix it; for a WireGuard server it is fixable with one port forwarding rule.

What the WAN address on your router tells you, compared with the address a "what is my ip" search shows
WAN address you see What it means What to do
Same as "what is my ip" You have a public IP on this box Set up the server; no port forwarding if this is the Flint 2
192.168.x.x, 10.x.x.x or 172.16–31.x.x on the Flint 2 A box of yours in front is routing (double NAT) Forward UDP 51820 on that box to the Flint 2, or bridge it
100.64.x.x to 100.127.x.x Shared address space for CGNAT (RFC 6598) Ask the ISP for a public IP; it may cost extra
Private address on the ISP-facing box itself The ISP is doing the NAT Ask the ISP for a public IP or use a relay service

If your ISP will not give you a public address, GL.iNet points to its own relay-based alternative, AstroWarp. That is a different setup and outside this guide.

encrypted tunnel to your public IP forward UDP 51820 LAN access Phone on mobile data (WireGuard app) Internet ONU or ISP router (only if present) Flint 2: WireGuard server Home LAN: NAS, cameras, PCs
If the Flint 2 connects straight to the ISP (ONU in bridge mode, with the Flint 2 dialling PPPoE), the middle box disappears and no forwarding rule is needed.

GL.iNet WireGuard server setup, step by step

01

Log in to the Admin Panel at 192.168.8.1

Connect a computer or phone to the Flint 2 by cable or Wi-Fi, type 192.168.8.1 into the browser's address bar and sign in with your admin password. Common mistake: being connected to the ONU's Wi-Fi or another router's network, so the page never loads. Make sure the device is on the Flint 2's own network.

02

Open VPN > WireGuard Server and click Generate Configuration

In the left menu, go to VPN, then WireGuard Server. On a router that has never run the server, click Generate Configuration. GL.iNet marks this button as an initial-setup action only, so do it once rather than treating it as a repair button later.

03

Check the Configuration tab

GL.iNet says the default configuration works for most cases. IPv4 Address is the server's tunnel address: leave it unless it clashes with your upstream router's gateway. If it does, enter another one such as 10.1.0.1/24 and click Apply. Listen Port is the UDP port the server waits on, 51820 by default; keep it unless something else on your network uses it. Leave Enable Obfuscation off unless every client app supports AmneziaWG. Common mistake: typing a new IPv4 address without the /24 at the end, which GL.iNet lists as a cause of clients that connect but cannot reach anything.

04

Add one profile per device on the Profiles tab

Switch to Profiles, click Add, give the profile a descriptive name such as phone-rahim or work-laptop, and click Apply. Set More holds advanced options you can ignore for now. Common mistake: using one profile on two devices. Each WireGuard profile is one key pair, and the server tracks one location per key, so two devices sharing a profile keep pushing each other off.

05

Pick the server address the profile points to

Since firmware v4.8 you can choose which address goes into the profile: the public IP, the DDNS domain or the current WAN IP. If your ISP changes your public IP from time to time, which most home connections do, turn on Dynamic DNS first (APPLICATIONS > Dynamic DNS, toggle Enable DDNS, agree to the terms, Apply) and choose the DDNS domain. Common mistake: choosing current WAN IP when the Flint 2 sits behind an ONU. That address is private and cannot be reached from outside.

06

Copy the profile to the device

Each profile is offered three ways. On a phone, open the WireGuard app, choose to add a tunnel by scanning a QR code, and scan the code on screen. On a laptop, click Download to save the .conf file and import it into the WireGuard app. Plain text is there if you want to read the settings or paste them somewhere. Common mistake: sending a screenshot of the QR code through a chat app. The code contains the device's private key; anyone who has it can join your network.

07

Click Start

Click Start in the upper-right corner of the WireGuard Server page. On firmware v4.8 and later, the same page then shows traffic and connected clients. On v4.7 and earlier, check the VPN Dashboard page instead. The server is now waiting; the next section proves whether anything can reach it.

What is inside a profile

You never need to edit the profile by hand, but knowing what the lines do makes troubleshooting much faster. This is the standard WireGuard configuration format with placeholder values; your keys and addresses will be different.

WireGuard client configuration (.conf) format; placeholder values, not a real GL.iNet export phone-rahim.conf
[Interface]
# This device's own key. Keep it secret.
PrivateKey = <device private key>
# This device's address inside the tunnel
Address = <tunnel address>/32
DNS = <DNS server reached through the tunnel>

[Peer]
# The Flint 2's public key
PublicKey = <server public key>
# 0.0.0.0/0 sends all traffic through home
AllowedIPs = 0.0.0.0/0
# Where the phone dials: your public IP or DDNS name, and the listen port
Endpoint = <public IP or DDNS domain>:51820

The Endpoint line is the one that matters most. If it holds a private address, or a public address your ISP has since changed, the phone is dialling a number that no longer rings at home. If you change the Listen Port on the server, GL.iNet notes that every client's Endpoint and any upstream forwarding rule must change to match.

If an ONU or another router sits in front: forward UDP 51820

When the Flint 2 is a secondary router, the incoming WireGuard packets arrive at the ONU first, and the ONU has no idea they belong to the Flint 2. A port forwarding rule tells it. GL.iNet's tutorial lists what the rule needs; the menu names differ on every ISP box, so look for a page called Port Forwarding, Virtual Server or NAT.

  1. Reserve the Flint 2's address first. On the ONU or primary router, give the Flint 2 a fixed (reserved) IP address. Otherwise a reboot can hand it a new address and the rule silently points at nothing.
  2. External port and internal port: 51820, or whatever Listen Port you set on the WireGuard Server page.
  3. Protocol: UDP is what WireGuard uses; GL.iNet's tutorial also accepts All or UDP/TCP if the box offers no UDP-only choice.
  4. Internal IP (sometimes Host IP): the Flint 2's WAN IP address, or pick the Flint 2 from a list if the box shows one.
  5. Every router in between: If there are two boxes in front of the Flint 2, each one needs its own rule.

The cleaner alternative, if your ISP allows it, is to put the ONU in bridge mode and let the Flint 2 dial the PPPoE connection itself. Then the Flint 2 holds the public IP directly and there is nothing to forward.

How to check it worked

  • Leave your home network. On your phone, turn Wi-Fi off and use mobile data only. GL.iNet lists testing from the server's own Wi-Fi or LAN port as a common reason a working server looks broken.
  • Turn the tunnel on in the WireGuard app. Open the tunnel's details. A recent handshake time means the phone and the Flint 2 have exchanged keys; no handshake means packets are not reaching the router.
  • Look at the WireGuard Server page. On firmware v4.8 and later it shows upload and download traffic and the connected devices. Zero traffic and zero clients means nothing has connected.
  • Search "what is my ip" on the phone. With the tunnel on, it should show your home connection's public IP and location, not your mobile operator's.
  • Open something on your home LAN. Try a NAS or camera by its 192.168.8.x address. If browsing works but home devices do not open, turn on Allow Remote Access to the LAN Subnet (next section).

Settings to change after setup

  • Server Options: On firmware v4.8 and later, click Options in the upper-right corner of the WireGuard Server page (on v4.7 and earlier, the gear icon under VPN Dashboard > VPN Server). Turn on Allow Remote Access to the LAN Subnet if you want to reach home devices, not just browse.
  • Leave IP Masquerading on. GL.iNet advises disabling it only for site-to-site setups where the other side knows your LAN subnets.
  • Client to Client only if you need it. It lets VPN clients reach each other by their tunnel addresses. It does not expose the LANs behind each client by itself.
  • Dynamic DNS. If you skipped it, turn it on now and re-issue profiles using the DDNS domain, so a change of public IP does not break every device.
  • Delete old profiles. When a phone is lost or replaced, delete its profile on the Profiles tab. Its key stops working immediately.
  • Change one LAN subnet if you travel with a GL.iNet router. GL.iNet routers default to 192.168.8.1. If a GL.iNet travel router will be your client, change the LAN address on one of them (Network > LAN, Router IP address, for example 192.168.10.1).
  • Update the firmware. Check for updates now and then; GL.iNet has moved WireGuard screens between firmware versions before.

If you plan to carry a GL.iNet travel router as the client, our travel router picks include models that run the same firmware. Setting one up as a WireGuard client is a separate job from this server setup.

Which password or key is which

The secrets involved in this setup, where each one lives, and what happens if you lose it
Secret Where it lives If you lose it
Admin password Set at first login on 192.168.8.1 Only a reset recovers access, which wipes the VPN server
Wi-Fi password Router label, or the Wireless page Log in by cable and read or change it
WireGuard profile (device key) QR code or .conf file per device Delete that profile and add a new one
PPPoE username and password Issued by your ISP Ask the ISP to resend or reset it

Troubleshooting: symptom and fix

The tunnel turns on but there is never a handshake

Packets are not reaching the Flint 2. Work through GL.iNet's causes in order: no public IP (repeat the check above), a missing or wrong port forwarding rule on the box in front, testing from the home network, or an ISP that blocks the port. For the last one, change Listen Port to another number, update the forwarding rule, and re-import the profile so its Endpoint matches.

To test the forwarding rule on its own, GL.iNet suggests forwarding port 443 on the primary router to the Flint 2, turning on DDNS and HTTPS Remote Access (SYSTEM > Security > Remote Access Control), and opening the DDNS hostname from mobile data. If the Flint 2's login page appears, forwarding works. Turn HTTPS Remote Access off again afterwards if you do not need it.

Connected, but the phone has no internet

The server shows a client, so the tunnel is up; the problem is what happens inside it. GL.iNet's first suggestion is DNS: go to Network > DNS, set Mode to Manual DNS, pick Google Public DNS as DNS Server 1 and click Apply. If that does not help, the tunnel address may clash with your upstream router's gateway: change IPv4 Address on the Configuration tab to something like 10.1.0.1/24, keeping the /24.

It fails only when the client is another GL.iNet router

Both routers are probably using 192.168.8.1 as their LAN address, so neither knows which network is which. Change the LAN address on either router under Network > LAN (Router IP address), for example to 192.168.10.1, and apply.

It connects, then stalls or drops

GL.iNet's fixes for an unstable tunnel are, in order: lower the MTU on the client from 1420 to a smaller value such as 1380, turn on VPN passthrough on the primary router if it has the option, and set manual DNS as above. Small packets getting through while larger pages stall is the typical sign of an MTU problem.

It worked for weeks, then stopped

Most often the ISP changed your public IP and the profiles still point at the old one. Turn on Dynamic DNS, pick the DDNS domain as the server address and re-import the profiles. Also check that the Flint 2 is online after any power cut, and if the forwarding rule seems to have stopped working, set it up again on a different port.

Browsing works but the NAS or camera will not open

Open Options on the WireGuard Server page and turn on Allow Remote Access to the LAN Subnet. Without it, the tunnel carries your internet traffic but does not let you into devices on the home LAN.

Frequently asked questions

Do I need port forwarding if the Flint 2 is my only router?

No, as long as its WAN address is a public IP. Port forwarding is only needed when another router, such as an ONU in router mode, sits between the Flint 2 and the ISP. GL.iNet's port forwarding tutorial covers the secondary-router case.

Can I run a WireGuard server behind CGNAT?

Not as described here. GL.iNet states that without a public IP the router cannot be set up as a WireGuard server. Ask your ISP for a public IP (some charge for it), or look at a relay-based service such as GL.iNet's AstroWarp.

How fast will the VPN be away from home?

GL.iNet quotes WireGuard speeds of up to 900 Mbps for the Flint 2, but that is a vendor figure for the router's processing. In practice your remote speed is capped by your home connection's upload speed, because everything you download through the tunnel has to be uploaded from home first.

Which port should I use?

The default is UDP 51820, the usual WireGuard port. Keep it unless your ISP blocks it or something else uses it. If you change it, update the forwarding rule and re-import every profile so the Endpoint matches.

Can my phone and laptop share one profile?

Do not do it. Each profile is a single key, and the server only tracks one location per key, so two devices using the same profile keep knocking each other off. Add a profile for each device; it takes seconds.

The short version

  1. Check for a public IP before touching the router: if the WAN address on the ISP-facing box does not match "what is my ip", or starts with 100.64 to 100.127, you are behind NAT and need the ISP's help or a forwarding rule.
  2. The setup itself is VPN > WireGuard Server: Generate Configuration once, keep the defaults unless the tunnel address clashes, add one profile per device on the Profiles tab, then click Start.
  3. Behind an ONU in router mode, reserve the Flint 2's IP and forward UDP 51820 to it, or bridge the ONU so the Flint 2 holds the public IP.
  4. Test from mobile data, not home Wi-Fi, and turn on Dynamic DNS so a changed public IP does not break every profile.

GL.iNet Flint 2 (GL-MT6000)

Affiliate disclosure — Networking Room participates in the Amazon Services LLC Associates Program and earns from qualifying purchases. The link below changes nothing in the guide above.

GL.iNet Flint 2 (GL-MT6000)
Image: GL.iNet
View on Amazon

Sources

MA

Mawdud Ahmed

Runs network operations for a licensed fibre ISP in Khulna, Bangladesh (AS137403) — GPON access, MikroTik edge, BGP upstream. Every review here is tested against that network rather than a lab loop.