WireGuard has become the default answer whenever someone asks how to get a tunnel out of a home network, and I have been as guilty of that as anyone. When I wrote up what replaced SixXS, the recommendation for anyone stuck behind CGNAT was WireGuard to a cheap VPS, and I stand by it. But "run WireGuard on your router" hides a lot of detail, because the experience depends enormously on what firmware that router is running. Having now set it up on OpenWrt, on a couple of vendor firmwares that bundle it, and once, regrettably, through a userspace implementation on a box that had no business running it, here are the notes from the firmware side of the fence.
Why WireGuard suits small routers in the first place
The protocol was practically designed for this class of hardware. The kernel implementation is a few thousand lines of code, the handshake is cheap, and the data path uses ChaCha20-Poly1305, which runs respectably on the MIPS and ARM cores you find in consumer routers. That last point matters more than people realise. These SoCs almost never have AES acceleration, so an IPsec or OpenVPN tunnel using AES ends up doing the whole thing in software and your throughput falls off a cliff. ChaCha20 was chosen precisely because it is fast on CPUs without crypto extensions, and on a modest ARM router you will typically saturate a home uplink over WireGuard where OpenVPN on the same box struggles to manage a fraction of that.
There is also no connection state to speak of. WireGuard has no notion of a session being up or down, just the time since the last valid handshake. For a router that reboots when the power blips, or sits behind an ISP connection that renumbers itself at 4 a.m., that statelessness is a genuine operational advantage. The tunnel does not need to be torn down and re-established. It just carries on the next time a packet flows.
Kernel or userspace: check before you buy
The first question to ask of any firmware is whether its WireGuard is the kernel module or a userspace implementation. OpenWrt ships the kernel module and has done for years, and it shows: the tunnel interface is a first-class network interface, it participates in the firewall zone model properly, and throughput is as good as the hardware allows. Some vendor firmwares also ship the kernel module, usually because their firmware is OpenWrt or something close to it underneath the branded UI.
The ones to watch out for are firmwares that bolt on wireguard-go or an equivalent userspace daemon. It is a perfectly correct implementation, but every packet now crosses the kernel boundary twice through a TUN device, and on a small CPU that roughly halves your throughput and adds latency jitter. Worse, on some firmwares the userspace daemon is supervised badly, so when it dies nothing restarts it and the tunnel silently stays down. If the spec sheet says WireGuard support but the firmware is some ancient vendor kernel, be suspicious about which kind you are getting.
The config model fights the firmware's config model
WireGuard's configuration is minimal: a private key, a listen port, and a list of peers, each with a public key and AllowedIPs. The subtlety is that AllowedIPs does two jobs at once. It is a routing table, deciding which peer outbound packets go to, and it is an ingress filter, deciding which source addresses a peer is permitted to use. This dual role is elegant on the command line and consistently mangled by firmware UIs.
The common failure modes I have hit:
- UIs that treat AllowedIPs as purely a route and do not explain that 0.0.0.0/0 on a peer will hijack the router's entire default route, including its own WAN traffic, unless policy routing is set up underneath
- UIs that let you enter overlapping AllowedIPs on two peers and accept it silently, when the kernel will only honour one
- UIs that regenerate the config on every save and discard anything you added by hand, such as a PostUp firewall rule or an MTU override
- No way to express a routed subnet behind a peer at all, only single host addresses
On OpenWrt the UCI config maps cleanly onto the real thing, so what you write is what runs. On the more decorative vendor UIs I have ended up ignoring the web interface entirely and dropping a proper wg configuration in via SSH, which works until a firmware update tramples it.
MTU, keepalives and the lessons of CGNAT
WireGuard adds 60 bytes of overhead on IPv4 and 80 on IPv6, so the interface MTU wants to be 1420 or lower if there is PPPoE or another tunnel underneath. Get this wrong and you get the classic symptom set: small transfers work, TLS handshakes to some sites hang, and everything looks fine in a ping test. Clamp MSS on the tunnel interface as well, exactly as you would for any other encapsulation. None of this is new. It is the same arithmetic that applied to every tunnel I have run on home hardware since the WRT54G era, when I was bending a Linksys into doing 1:1 NAT it was never designed for. The encapsulations change, the MTU maths does not.
If your router sits behind CGNAT, set PersistentKeepalive on the peer, 25 seconds is the conventional value, so the NAT mapping on the carrier's box stays alive and the far end can still reach you. And remember that WireGuard resolves a peer's endpoint hostname once, at config load. If your VPS endpoint is on a dynamic DNS name, you need a watchdog script that re-resolves and re-sets the endpoint, because the protocol will not do it for you. Several firmwares now ship exactly such a script. Check yours does before you rely on it.
A tunnel is not a firewall
The part people skip, every time. A WireGuard interface on your router is a new network path into your LAN, and it deserves the same default-deny treatment as the WAN. The advice in my old post on firewall settings for a home network transfers almost unchanged: allow established and related, allow what you deliberately expose, drop the rest, and log what you drop. On OpenWrt that means putting the WireGuard interface in its own zone and writing explicit forwarding rules to the LAN zone, not lazily adding it to the LAN zone itself. AllowedIPs will stop a peer spoofing source addresses, but it says nothing about which ports on which internal machines that peer may reach. That is firewall work, and no part of WireGuard does it for you.
What I would actually run
If the router can take OpenWrt, that is the answer: kernel WireGuard, honest configuration, proper firewall zones. If you are on vendor firmware, verify it is the kernel implementation, test throughput before trusting it, and assume the UI is hiding at least one of the sharp edges above. Either way, treat the tunnel as untrusted ingress until your firewall rules say otherwise. The crypto is the solved part. The firmware around it is where the work still is.