Home › Guides
Six letters of instruction
Six illustrated WireGuard guides: the first tunnel, phones by QR, reaching your LAN, sending everything through a server, peers and maintenance.
- The first tunnelBuild a first WireGuard tunnel with a VPS and a PC: keys, two config files, the UDP port, starting it, and checking with wg show and ping.
- Phone by QRTurn a WireGuard client config into a QR code and scan it: qrencode in the terminal, ready codes in OpenWrt and wg-easy, and how to stay safe.
- Use your home network from outsideReach your home LAN from outside with WireGuard: the router or a small box as server, AllowedIPs, forwarding, firewall, port mapping and dynamic DNS.
- Everything through the tunnelRoute everything through WireGuard: AllowedIPs 0.0.0.0/0, forwarding and NAT on the server, DNS, IPv6 leaks and how to check the result.
- Add and remove devicesAdding and removing WireGuard devices, pausing one, reloading without dropping others, limiting where a device may go, and replacing lost keys.
- Keep it runningKeep WireGuard working: start at boot, reading wg show, backing up, changing the port, dynamic DNS changes and updating on each system.
Where to start
| You want to | Start here |
|---|---|
| Try it for the first time | First tunnel |
| Add a phone to a server | Phone by QR |
| Reach the NAS at home | Home |
| Send all traffic through a server | Everything through |
Letters answered
FixesThe letter went out, no reply cameWireGuard is active but shows no latest handshake and 0 bytes received. UDP ports, security groups, swapped keys, clock, endpoint and carrier blocks.
SpeedToo thick for the letter slotPing works over WireGuard but pages, SSH or images hang? It is usually the MTU. How to measure the right value with ping and clamp the MSS.
HomeA house without a numberNo public IPv4 at home? Check for CGNAT, connect over IPv6, relay through a VPS with WireGuard, or use a tool that punches holes.
On the same round
- WireGuard on a VPS
- WireGuard phone setup
- WireGuard home network
- AllowedIPs 0.0.0.0/0
- WGDashboard
- WireGuard multiple devices
- WireGuard Windows
- WireGuard macOS
- WireGuard installer
Postcodes: WireGuard tutorial, how to use WireGuard, WireGuard configuration