WireGuard handshake but no traffic: 7 causes
Seven faults left a test tunnel's handshake looking normal. How to read wg show transfer on both ends of a WireGuard tunnel and find where packets stop.
Key takeaways
- Six of seven broken test tunnels showed an age in the same 67-to-80-second band as the healthy one; the age cannot tell them apart.
- wg show transfer on both ends shows where packets stop in six of seven faults: compare what one end sent with what the other received.
- Forwarding off, NAT missing and a FORWARD drop gave identical counters on both ends; the server's own counters told them apart.
- A path dropping large packets passed small pings and DNS, gave a 100,000-byte download 0 bytes, and had the freshest handshake.
- 795 handshakes in 40 hours carried no user data on our own tunnel; the server's last-data time showed it.
On this page (16)
- How do you find where WireGuard traffic stops after a handshake?
- What does a WireGuard handshake actually prove?
- Why does the latest handshake look fine when nothing works?
- Which counters show where the packets stop?
- What do mismatched wg show transfer counters mean?
- What does it mean when one end sends a lot and the other counts almost nothing?
- Why can you ping the server but not reach the internet?
- How do you tell forwarding, NAT and the firewall apart?
- How do you fix forwarding, NAT and FORWARD drops on a WireGuard server?
- Why does a small ping pass when a 1,300-byte ping fails?
- How do you fix an MTU black hole?
- Why do IP addresses work but names don't?
- Can a tunnel keep handshaking for 40 hours and carry nothing?
- What does the ForestVPN app show when a handshake succeeds and nothing flows?
- How do you catch a dead tunnel before your users do?
- What don't we know yet?
Over 40 hours in October, a tunnel of ours renewed its WireGuard session about every three minutes, 795 times, while not one byte of user data moved (the postmortem). On 24 November we broke a test tunnel seven different ways, and the handshake looked normal in every case while pings, downloads or name lookups failed.
The handshake proves the keys and one UDP exchange, nothing about routes, forwarding, NAT, packet size or DNS; compare wg show transfer on both ends to find where packets stop. WireGuard behaved as specified every time. The byte counters on both ends located the break in six of the seven; the seventh, a DNS drop, looked healthy to them and showed only as failed name lookups. The handshake showed none of the seven.
Open the film file (MP4, 4 MB). Use it if YouTube is blocked or slow on your connection. mirror
How do you find where WireGuard traffic stops after a handshake?
Run wg show <interface> transfer on both ends while you send traffic, and look for the place where the numbers stop agreeing.
- Ping the far end's tunnel address, then something beyond it, and read
wg show <interface> transferon both ends. - Client sent thousands of bytes, server received about 150, and even the server's tunnel address stays silent: the server is discarding your packets. Look at its AllowedIPs entry for you.
- Client sent only a few hundred bytes although you sent more: the traffic never entered the tunnel.
ip route get <destination>shows which interface it used; widen the client's AllowedIPs. - Client sent thousands of bytes and the server received all of them, but only a few hundred came back: the server will not pass traffic on. Look at forwarding, NAT and its firewall.
- Small pings pass and big ones die: packet size. Everything passes except names: DNS.
No handshake at all is a different problem; start at WireGuard handshake did not complete or VPN not connecting. If you use the ForestVPN app instead of a server of your own, jump to what the app shows.
What does a WireGuard handshake actually prove?
A WireGuard handshake proves matching keys and one 148-byte message with a 92-byte reply crossing the path once. Because it never touches routes, AllowedIPs on later packets, forwarding, NAT, packet size or DNS, it is not a health check.
The protocol page and the whitepaper give the sequence:
- Handshakes happen on demand: a peer with something to send and no live session starts one (the construction is Noise_IKpsk2).
- The initiator sends 148 bytes, the responder replies with 92, and session keys follow. A server in our run that accepted nothing else counted exactly 148 received.
- From then on every data packet is encrypted to that peer, and the whitepaper's timers set the next handshake: the session's initiator starts a new handshake when it sends on a session 120 seconds old, a session past 180 seconds is refused outright, and a peer that sent data and heard nothing for 15 seconds starts over.
latest handshake, then, says when something last tried to send. Arrival is a separate question.
Client
- Route table and AllowedIPs Too narrow: the packet never enters the tunnel
- matches a peer
- Encrypt and send UDP Wrong Endpoint: no handshake at all
Path
- Outer UDP packet Large packets dropped: small pings pass
- across the network
- Server decrypts Handshake and keepalives counted
Server
- Source check against AllowedIPs Client missing: only the handshake counted
- allowed
- Forwarding Off: IpInAddrErrors climbs
- routed
- FORWARD chain Policy DROP counter climbs
- accepted
- NAT out No MASQUERADE: no reply comes back
Every fault in this post stops the packet at one of those steps, after the handshake has already succeeded. DNS is the odd one: in this run the query died in the server's FORWARD chain, the same step as the FORWARD-drop fault, but only for UDP port 53.
WireGuard's term for this is cryptokey routing. AllowedIPs is the routing table for outgoing packets and the source filter for incoming ones (wg(8)). A handshake consults neither, which is how AllowedIPs mistakes hide behind a perfect one.
Why does the latest handshake look fine when nothing works?
Because the age is only the time since the last handshake, and a young tunnel is young whether it works or not.
We brought each test tunnel up fresh and read it 60 seconds after the probes finished, 67 to 80 seconds after its handshake; the spread is just the probe timeouts. The healthy one showed 67 seconds and six of the seven broken ones showed 68 to 80. Only the MTU case had started a new handshake during the wait, and it read 26.
How we broke the tunnel
- What ran
- WireGuard in-kernel module with the stock wireguard-tools package (wg-quick) on both ends; open source
- Versions
- Ubuntu 26.04.1 LTS, kernel 7.0.0-43-generic, wireguard-tools 1.0.20250521-1ubuntu1, nftables 1.1.6, iptables 1.8.11 (nf_tables), iproute2 6.19.0, curl 8.18.0, dig 9.20.24
- Machine
- One virtual machine, four network namespaces: a client, a router in the middle, the server and a host standing in for the internet, which had no route back to the tunnel addresses
- Tunnel
- Client AllowedIPs 0.0.0.0/0, MTU 1420, no PersistentKeepalive; the server peer entry listed the client /32, with forwarding on, FORWARD accept rules for the tunnel and a MASQUERADE rule
- Probes
- Three pings to the server tunnel address; three small and three 1,300-byte DF pings to a host past it; a 100,000-byte HTTP download with an 8-second limit; one DNS query through the tunnel; then wg show on both ends, a wait, and wg show again. Kernel debug logging for WireGuard was on
- Cases and runs
- A healthy baseline, seven faults and one control (wrong Endpoint), three runs each, 27 in all, on 24 November 2026. Every tunnel was brought up fresh, so a handshake age is the time since bring-up. The first run of each waited 60 seconds, the others 15; outcomes matched across runs. Figures on this page are from the first run unless a line says otherwise. One extra run of the three server-side faults read the server counters
- Our own client
- The one-way-loss test from our source tree, unmodified, run once on its own virtual machine the same day
Not tested: wireguard-go, Windows, macOS, Android and iOS clients, MikroTik, OpenWrt or pfSense servers, a real internet path, carrier-grade NAT, IPv6, a preshared key, PersistentKeepalive, throughput. Keys were throwaway, made fresh per run.
One virtual machine with both ends in one kernel, so timings and throughput mean nothing here; read the byte counts as patterns.
| Case | Age, seconds |
|---|---|
| Healthy baseline | 67 |
| Server AllowedIPs leaves out the client | 80 |
| Client AllowedIPs too narrow | 76 |
| Forwarding off on the server | 79 |
| No NAT rule | 78 |
| FORWARD policy DROP | 78 |
| Path drops large packets | 26 |
| DNS dropped on the server | 68 |
A guide on the first page of results for this query states "Healthy = within the last 120 seconds." and its FAQ adds "A healthy peer shows a handshake within the last 0-120 seconds and non-zero transfer counters" (VPNsmith, read 24 November 2026). That page is about the other failure, a handshake that never completes, and there the rule earns its keep.
As proof that data flows, it could not work in our test: every tunnel was under two minutes old when read, so a 120-second rule passes healthy and broken alike. Over longer runs the age misleads in three ways:
- A healthy tunnel that goes quiet gets older until the next packet starts a handshake.
- A broken tunnel that keeps sending renews itself. An initiator starts a new handshake at 120 seconds while it has data to send, and a peer that sent data and heard nothing for 15 seconds starts a new handshake. The MTU case did the second during our wait and read "Now" while its downloads were stalled. Our 40-hour tunnel, below, renewed every 181.7 seconds with no user data moving.
PersistentKeepalivehands every tunnel something to send. We did not set it, so this follows from the protocol alone. The keepalive post and the FAQ cover it.
That guide also reads "0 B received" as the sign of a one-way block, which is right for a handshake that never completes. We saw 0 received only in the control, where a wrong Endpoint meant no handshake and the client's 592 sent bytes were four 148-byte initiations. After a finished handshake the client's received column cannot be 0, because it already holds the 92-byte reply. For this query, look for a small number instead: 124, 148 or 508.
Which counters show where the packets stop?
wg show <interface> transfer prints bytes received and sent per peer, so two ends give four numbers. On a healthy tunnel each end's sent equals the other's received. Our baseline matched to the byte, at 7,012 and 111,944.
To read them:
- Send something first. Counters only move when traffic does.
- Read both ends within a few seconds of each other.
- Compare client sent with server received, then server sent with client received.
- Subtract the floor: a handshake plus a keepalive or two is a few hundred bytes by itself.
The rows run along the packet's road. We have no data on how often each fault happens.
| Cause | Download, DNS | Pings: server, past it, 1,300-byte | Client sent / server received (bytes) | Server sent / client received (bytes) |
|---|---|---|---|---|
| Healthy | 100,000 bytes, answered | 3/3, 3/3, 3/3 | 7,012 / 7,012 | 111,944 / 111,944 |
| Server AllowedIPs leaves out the client | 0 bytes, no answer | 0/3, 0/3, 0/3 | 5,780 / 148 | 124 / 124 |
| Client AllowedIPs too narrow | could not connect, no answer | 3/3, 0/3, 0/3 | 564 / 564 | 476 / 476 |
| Forwarding off on the server | 0 bytes, no answer | 3/3, 0/3, 0/3 | 5,780 / 5,780 | 508 / 508 |
| No NAT rule | 0 bytes, no answer | 3/3, 0/3, 0/3 | 5,780 / 5,780 | 508 / 508 |
| FORWARD policy DROP | 0 bytes, no answer | 3/3, 0/3, 0/3 | 5,780 / 5,780 | 508 / 508 |
| Path drops large packets | 0 bytes, answered | 3/3, 3/3, 0/3 | 5,668 / 1,588 | 24,684 / 1,452 |
| DNS dropped on the server | 100,000 bytes, no answer | 3/3, 3/3, 3/3 | 7,012 / 7,012 | 111,740 / 111,740 |
| Wrong Endpoint (control, no handshake) | 0 bytes, no answer | 0/3, 0/3, 0/3 | 592 / 0 | 0 / 0 |
Runs 2 and 3 matched these outcomes. Byte totals moved by a few hundred in the healthy and DNS rows, and the MTU row's server column read 26,136 in run 2.
What do mismatched wg show transfer counters mean?
Five counter patterns cover every fault we built, and each points at one layer.
- Client sent 5,780, server received 148: the server accepted the handshake and discarded the rest.
- Client sent 564: the client never routed the traffic into the tunnel.
- Both pairs agree (5,780 and 508): the tunnel delivered every packet, so the fault lies past the server's tunnel interface.
- Server sent 24,684, client received 1,452, small pings fine: large packets die on the path.
- Counters near the healthy run, names failing: DNS.
The sums are checkable. WireGuard messages come in fixed sizes: 148 bytes for an initiation, 92 for the reply, 32 for a keepalive, and 128 for each small ping (84 bytes padded to 96, plus 32 of header and tag).
Take the narrow-AllowedIPs client. Its 564 is 148 + 3 × 128 + 32: an initiation, three pings to the server's own tunnel address and a keepalive, and nothing else. In the three server-side faults the client received 508, or 92 + 3 × 128 + 32. The first pair that disagrees, or the first pair that stays tiny, names the layer.
What does it mean when one end sends a lot and the other counts almost nothing?
Either the packets arrived and were discarded before any counter saw them, or they never left the sender. Breaking AllowedIPs on each end showed us both.
Server side: the client's address is missing
The client sent 5,780 bytes and the server's received column stayed at 148. Even pings to the server's own tunnel address failed.
In the kernel debug log the line Packet has unallowed src IP (10.8.0.2) from peer appeared 16 times. Each packet was decrypted, found to claim an address its peer may not use, and dropped before the transfer column counted it.
The kernel counts it elsewhere: in receive.c the same drop increments the interface's rx_errors and rx_frame_errors, so ip -s link show <wg interface> should show it without debug logging. We turned the debug lines on with echo 'module wireguard +p' > /sys/kernel/debug/dynamic_debug/control. To mend it, put the client's /32 in the server's peer entry.
Client side: the destination is outside AllowedIPs
Pings to the server's tunnel address were answered 3 of 3 and everything beyond it failed. Ping counted 3 errors: ICMP unreachable replies from the middle router, which had no route onward. Curl exited with code 7, a failed connect.
The client sent 564 bytes in total because the destination sat outside its own AllowedIPs, so the traffic never entered the tunnel. It took the ordinary route out of the physical interface. On a real network that traffic can leave unencrypted and even reach an internet host, just not through WireGuard; a LAN behind the server stays unreachable. ip route get <destination> names the physical interface where it should name the WireGuard one. To mend it, widen the client's AllowedIPs.
Both ends of the server-side AllowedIPs run, trimmed, keys masked
$ wg show wg-c # client, after the hold
peer: <key>
endpoint: 10.0.3.2:51820
allowed ips: 0.0.0.0/0
latest handshake: 1 minute, 20 seconds ago
transfer: 156 B received, 5.64 KiB sent
$ wg show wg-s # server
peer: <key>
endpoint: 10.0.1.2:59190
allowed ips: 10.8.0.99/32
latest handshake: 1 minute, 20 seconds ago
transfer: 148 B received, 156 B sent
kernel log, server side:
16 wireguard: wg-s: Packet has unallowed src IP (10.8.0.2) from peer N (addr)
2 wireguard: wg-s: Sending keepalive packet to peer N (addr)
1 wireguard: wg-s: Sending handshake response to peer N (addr)
1 wireguard: wg-s: Receiving handshake initiation from peer N (addr)
Nothing is red, and the handshake is barely over a minute old. One line names the fault: allowed ips: 10.8.0.99/32.
Why can you ping the server but not reach the internet?
The tunnel is fine and the server will not pass your traffic along. Forwarding is off, the NAT rule is gone, or the firewall drops forwarded packets. Those three gave identical counters on both ends in every repetition we ran, so only the server's own counters separate them.
Each fails in its own place. With net.ipv4.ip_forward at 0, the kernel will not route a packet meant for somebody else. With the FORWARD policy at DROP, the firewall refuses it. Without an iptables or nftables MASQUERADE rule, the packet leaves carrying a tunnel address and the reply has no road home.
How do you tell forwarding, NAT and the firewall apart?
Read the server. One extra run of each fault, with a short hold, recorded what its kernel and firewall counted.
The server-counter run
- What
- One extra run each of the healthy baseline and the three faults, with a 3-second hold, on 24 November 2026
- Read
- nstat for IpForwDatagrams and IpInAddrErrors, packet counts on the server and on the internet host, iptables FORWARD and nat counters
- Setup
- As in the main run; the host standing in for the internet had no route back to the tunnel addresses
Not tested: nftables counters, a real upstream router.
One run each, taken after a single probe set.
| What we read on the server | Healthy | Forwarding off | No NAT rule | FORWARD policy DROP |
|---|---|---|---|---|
| Packets the internet host received | 30 | 8 | 23 | 8 |
| MASQUERADE rule packets | 4 | 0 | rule absent | 0 |
| FORWARD chain, packets in and out | 22 and 21, accepted | 0 and 0 | 14 and 0 (4,734 bytes in) | policy DROP: 14 packets, 4,734 bytes |
IpForwDatagrams (nstat) | 43 | 0 | 14 | 14 |
IpInAddrErrors (nstat) | 0 | 14 | 0 | 0 |
Read down the columns. The nat table counts only the first packet of each connection, so the healthy run's 4 MASQUERADE packets beside 30 at the internet host are normal, not a sign of broken NAT. IpForwDatagrams read 14 under FORWARD policy DROP, so on this kernel it counted packets the FORWARD chain then dropped; it tells forwarding-off apart from the other two faults, not NAT from DROP. We did not check other kernels.
Forwarding off shows as IpInAddrErrors rising while IpForwDatagrams stays at zero. The firewall shows as a policy counter climbing on the FORWARD chain. NAT shows as packets leaving the internet-facing interface, nothing coming back and no MASQUERADE rule at all. Both firewall columns hold the same 14 packets and 4,734 bytes, which suggests the tunnel handed the server identical traffic each time.
The links carry background chatter of their own: the 8 packets in two columns are that, and the no-NAT run's internet-side interface counted 9 received.
Our four server checks (bash):
nstat -az IpForwDatagrams IpInAddrErrors
iptables -L FORWARD -v -n
iptables -t nat -L POSTROUTING -v -n
ip -s link show <internet-facing interface>On a live server these counters have been running since boot: read them, send one ping through the tunnel, and read them again. Under nftables, nft list ruleset shows counters only on rules written with a counter statement.
How do you fix forwarding, NAT and FORWARD drops on a WireGuard server?
Turn forwarding on, accept forwarded tunnel traffic and masquerade it out of the internet-facing interface. These are the lines our healthy run used (trimmed), in the server's wg-quick config (10.8.0.0/24 is our tunnel subnet):
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT
PostUp = iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o <internet-facing interface> -j MASQUERADE
Forwarding is set outside PostUp, with sysctl -w net.ipv4.ip_forward=1, and kept across reboots by a line net.ipv4.ip_forward = 1 in a file under /etc/sysctl.d/.
If your FORWARD policy is DROP, the two FORWARD lines are what let the tunnel through (we did not run that combination). Docker sets that policy when it enables forwarding (Docker's packet filtering page; we did not test it). A DNS drop has its own fix, in the section on names below.
Our first run of this fault passed
Our run of the forwarding-off fault came back healthy, which was the wrong answer. On the test machine, wg-quick's AppArmor profile had denied the sysctl write inside our PostUp line, so forwarding stayed on without a word. We moved the write out of PostUp and started over. If your config sets it in PostUp, check sysctl net.ipv4.ip_forward after wg-quick up.
Server counters for the three faults, trimmed
forwarding off
IpInAddrErrors 14
IpForwDatagrams 0
FORWARD 0 packets in, 0 out
no MASQUERADE rule
IpInAddrErrors 0
IpForwDatagrams 14
FORWARD 14 packets (4734 bytes) in, 0 out
POSTROUTING: no MASQUERADE rule
server internet-side interface: TX 23 packets, RX 9
FORWARD policy DROP
IpInAddrErrors 0
IpForwDatagrams 14
Chain FORWARD (policy DROP 14 packets, 4734 bytes)
POSTROUTING: MASQUERADE 0 packets
server internet-side interface: TX 8 packets, RX 8
Why does a small ping pass when a 1,300-byte ping fails?
A device on the path is dropping big packets and letting small ones by. Pings, DNS answers and the handshake itself work, and downloads starve. Our small pings and DNS lookups passed, all three 1,300-byte pings failed, and a 100,000-byte download delivered 0 bytes.
How we made the black hole
- Fault
- The link between the middle router and the server set to 1,280 bytes, and IP fragments dropped on arrival at both ends
- Tunnel MTU
- Left at 1420
- Reading
- Counters after the probes, then again after the hold; server kernel debug log
Not tested: a path that answers with ICMP fragmentation needed, an IPv6 outer packet.
The sums below assume an IPv4 outer packet.
Do the sum. A 1,300-byte ping payload becomes a 1,328-byte packet inside the tunnel. WireGuard adds 32, UDP 8 and IPv4 20, so the outer packet is 1,388 bytes. Past 1,280, it gets split, and the pieces are lost. A small ping (84 bytes, padded to 96) goes out as 128 inside UDP and passes. A full 1,420-byte inner packet would measure 1,480 on the wire.
No other row has this counter shape. Client sent 5,668, server received 1,588. Server sent 24,684, client received 1,452. During the hold the server's sent column kept growing to 29,496.
WireGuard never retransmits; the growth is the web server's TCP retransmissions, which the server encrypted and sent, plus two handshake initiations and a few small packets.
The sums are exact: 5,668 - 1,588 = 4,080, three 1,360-byte messages (the three 1,300-byte pings), and 24,684 - 1,452 = 23,232, sixteen 1,452-byte messages (full 1,420-byte packets plus 32). Every lost byte was a big packet. Nothing else had the server sending 17 times what the client took in while small pings passed.
This row also owns the freshest handshake. At the end of the hold the age read 26 seconds; in the same second wg show printed latest handshake: Now on both ends, so a second new handshake had landed. The server's debug log twice records that it stopped hearing back after 15 seconds and retried.
Only this fault renewed its handshake: in the others the server received the client's packets and answered within 10 seconds, with data or a keepalive (the 32 in 508 and 124), which cancels the 15-second retry, while here the server's own big packets were the ones lost and nothing came back. So the freshest handshake in the run belonged to a dead path.
How do you fix an MTU black hole?
Lower the tunnel MTU or clamp the TCP MSS. WireGuard MTU shows how to find the value, and the app's message is Small packets pass, large ones don't. We tested neither fix here.
The MTU run, trimmed, keys masked
(transfer pairs are received/sent)
after tests: client transfer 1452 5668 server transfer 1588 24684
after hold: client transfer 1908 5884 server transfer 1804 29496
$ wg show wg-s
peer: <key>
allowed ips: 10.8.0.2/32
latest handshake: Now
transfer: 1.76 KiB received, 28.80 KiB sent
kernel log, server side (counts):
2 wireguard: wg-s: Retrying handshake with peer N (addr) because we stopped hearing back after 15 seconds
2 wireguard: wg-s: Sending handshake initiation to peer N (addr)
2 wireguard: wg-s: Receiving handshake response from peer N (addr)
Why do IP addresses work but names don't?
WireGuard's counters cannot see a dropped name lookup: the tunnel carries it like any other packet, and the server's firewall eats it. We blocked UDP port 53 on the server. Pings passed, a 100,000-byte download by address arrived whole, the counters sat within a few hundred bytes of the healthy run, and our one DNS query got no answer.
How we dropped DNS
- Fault
- iptables FORWARD drop of UDP destination port 53 on the server
- Check
- dig +time=2 +tries=1 pointed straight at the resolver through the tunnel
Not tested: wg-quick DNS lines, resolvconf, systemd-resolved.
Resolver plumbing on the client was out of scope.
To fix it, make the server's firewall pass UDP port 53 to the resolver, or point the client at a resolver it can reach through the tunnel. To test, run dig @<resolver> <name> through the tunnel, then ping <an address>. An address that answers beside a name that does not points at the resolver and at port 53 on the server's firewall. WireGuard is not involved.
Can a tunnel keep handshaking for 40 hours and carry nothing?
Yes, and ours did. Between 8 and 10 October 2026 one of our tunnels logged 795 handshakes and carried no user data, because our own client stopped sending user data after a brief one-way outage. WireGuard was not at fault, and a handshake-age check set above 197 seconds would have called it healthy the whole time. The postmortem tells it in full.
Where the 40-hour numbers come from
- Source
- The daemon log of our own router tunnel, 12:01 on 8 October to 05:25 on 10 October 2026 UTC; 814 handshake lines in the plotted span
- Derived
- Gaps between consecutive Handshake complete lines; no keys, no addresses
- Zero data
- From the server status in the postmortem, not from a counter series in the log
Not known: why the one-way loss began, and the exact second it started; the router and server clocks were never compared.
Quantum is the tunnel engine we build for ForestVPN; our client runs it.
- Roughly eight minutes of one-way loss (the server's packets reached us, ours did not) caught the extra key exchange our client runs inside the tunnel after the handshake.
- The client had a rule: no user data crosses until that exchange succeeds. After four resets the exchange gave up for good.
- WireGuard's own timer opened a new session whenever the old one expired, about every three minutes. No user data crossed any of those sessions. Only the client's housekeeping packets did, and each one that found the session expired started a new handshake.
The rhythm gives it away. Before the outage the log has 19 gaps, each within 0.3 seconds of 120, 240 or 360 (median 240): whole multiples of REKEY_AFTER_TIME, 120 seconds, the point where the initiator starts a new handshake while it still has data to send.
Afterwards: 794 gaps from 179.9 to 197.0 seconds, median 181.7, with 770 at 184.0 or less. That sits near REJECT_AFTER_TIME, 180 seconds. Each session expired unused, and the next housekeeping packet started another.
Across the 40 hours the log holds Handshake complete lines and a few decapsulation errors. No warning, no error.
We had no alert for it
Only the server knew. The server's status command (fv show) reported last data "1 day ago", and nobody asked. A 120-second handshake alert would have flickered during about a third of the outage, 34 percent by our arithmetic, since handshakes came every 181.7 seconds. Any threshold above 197 seconds would have stayed green throughout.
Our repair turns the failed state into a pause: 30 seconds, then 60, then 120, each stretched by up to 25 percent of random jitter, then another attempt. On 24 November we ran the scenario for it.
Under one-way loss our client held back user data and kept starting handshakes (6 in 75 seconds). The client was back in its working state, allowed to send user data again, 73.2 seconds after the path healed, well inside the test's 150-second limit. A single run, so we claim no more.
What does the ForestVPN app show when a handshake succeeds and nothing flows?
ForestVPN's apps derive their status on the device from the tunnel's own counters, and say Working only when data is flowing both ways (connection status). A tunnel that handshakes and then carries nothing appears as connected, then nothing is carried.
Two status messages echo this page. For the forwarding, NAT and firewall faults the closest is "The path to the exit works; the exit can't reach the internet". For the MTU case the connection-status page describes it as "Large packets drop, small ones pass. A different location won't fix it." We never ran the app against these faults, so the match is our reading.
How do you catch a dead tunnel before your users do?
Alert on received bytes at the peer that expects data, and fire a realistically sized probe through the tunnel on a timer. A handshake-age alert can't tell dead from alive: in our test the ages overlapped, and on our own tunnel a 120-second rule would have flickered while any rule above 197 seconds would have stayed green.
Four habits we took from the test run and our own outage:
- Count bytes received, per peer, on the side waiting for data. During our outage the server had the answer all along.
- Probe end to end with a packet close to full size, so the MTU case fails the probe too.
- If a check passes, find the counter it was supposed to move. Our forwarding test passed for the wrong reason.
- Treat a rhythm as data. A steady 180-second handshake with nothing else moving is a symptom.
What don't we know yet?
- Other systems. Not tested: wireguard-go, Windows, macOS, Android, iOS, and MikroTik RouterOS, OpenWrt or pfSense servers. We expect the counters to mean the same, and the logs to differ.
- Real path MTU discovery. Our black hole silently dropped fragments. A router that replies with ICMP "fragmentation needed", or an IPv6 or DF outer packet, could behave differently.
- PersistentKeepalive. Never set, so what it does to handshake age is reasoning.
- wg-quick's
DNS =line and the resolver plumbing behind it. - Interface error counters. The kernel source increments
rx_errorsfor the AllowedIPs drop, but we never readip -s link show <wg interface>in the run. - The usual PostUp line. AppArmor decides on the file write whatever the value, so we expect
PostUp = sysctl -w net.ipv4.ip_forward=1to be refused too; we did not run it. - Handshake age on long runs. Our test tunnels were under two minutes old when read; the long-run behaviour comes from the protocol timers and our one 40-hour tunnel.
- The 40-hour case. Why the one-way loss happened, and the exact second it began.
- Scale. One virtual machine, both ends in one kernel, three repetitions per fault.
Questions and answers
Does PersistentKeepalive fix a WireGuard handshake with no traffic?
Only when an expired NAT mapping was the problem. A keepalive keeps the mapping open and gives the tunnel something to send, which also keeps the handshake fresh. It changes nothing about AllowedIPs, forwarding, NAT rules or packet size. We did not set it in this test run.
Why does WireGuard connect but not reach my home LAN?
The client's AllowedIPs must include the LAN range, the server must forward, and LAN devices need a way to answer: masquerade onto the LAN, or a route on the LAN router back to the tunnel subnet. Our no-NAT fault failed exactly that way.
Does this apply to WireGuard on Windows 11?
The server-side checks do, whatever the client runs. We tested Linux on both ends only, so we cannot say how the Windows client's figures or logs read. On the server, compare what it received with what the client says it sent.
Sources
- WireGuard protocol and cryptography (read November 24, 2026)
- WireGuard whitepaper (Donenfeld, 2017) (read November 24, 2026)
- wg(8) manual page (read November 24, 2026)
- Forty hours connected, zero bytes: a postmortem of our own tunnel (read November 24, 2026)
- Linux kernel: drivers/net/wireguard/receive.c (read November 24, 2026)
- Docker: packet filtering and firewalls (read November 24, 2026)
- VPNsmith: WireGuard handshake troubleshooting (read November 24, 2026)
How this was made
AI-assisted drafting from a test run of WireGuard faults on 24 November 2026 and the postmortem of our own 40-hour incident, checked against the raw output, with automated and editorial review.
