One of the most frustrating VPN symptoms looks deceptively like a DNS or TLS bug: ping works, small SSH commands work, and tiny HTTP health checks succeed—yet loading a web dashboard or pushing a Git commit stalls indefinitely mid-transfer. In almost every case, the culprit is a Path MTU Discovery (PMTUD) blackhole caused by WireGuard encapsulation pushing packets beyond an upstream ISP's 1492-byte PPPoE or mobile LTE frame limit.
1. Calculating Exact WireGuard Overhead
Every packet encrypted by WireGuard carries fixed outer headers regardless of inner payload content:
- Outer IP header: 20 bytes for IPv4, 40 bytes for IPv6 (when endpoints talk over IPv6).
- Outer UDP header: 8 bytes.
- WireGuard transport framing & Poly1305 authentication tag: 32 bytes (16-byte message header/counter + 16-byte AEAD MAC tag).
Total encapsulation overhead is therefore 60 bytes over IPv4 and 80 bytes over IPv6. Over standard 1500-byte Ethernet, WireGuard's default MTU = 1420 already reserves 80 bytes so both IPv4 and IPv6 outer endpoints fit safely. However, Philippine FTTH PPPoE fiber lines typically cap WAN MTU at 1492 (8-byte PPPoE header), and mobile LTE/5G links frequently drop to 1428 or 1400.
2. Proving an MTU Blackhole in 30 Seconds
Run ping with Don't Fragment (-M do) across progressively smaller payloads inside the tunnel (remember ICMP header + IPv4 header add 28 bytes on top of the -s data size):
# Test 1420-byte tunnel packet (1392 data + 28 IP/ICMP = 1420)
ping -M do -s 1392 -c 3 10.66.0.1
# Step down to 1380 total (1352 data + 28 header) or 1280 total (1252 data)
ping -M do -s 1352 -c 3 10.66.0.1
ping -M do -s 1252 -c 3 10.66.0.1
If -s 1252 succeeds immediately while -s 1392 silently drops with zero ICMP "Fragmentation Needed" reply, an intermediate router is dropping large UDP datagrams without returning ICMP Type 3 Code 4 feedback.
3. Setting Safe MTU and nftables TCP MSS Clamping
In addition to lowering MTU in /etc/wireguard/wg0.conf (for instance 1360 for broad LTE/PPPoE compatibility, or try our interactive WireGuard MTU & Subnet Calculator), Linux subnet routers should clamp TCP SYN/SYN-ACK Maximum Segment Size (maxseg size set rt mtu) so peers behind the gateway never negotiate 1460-byte TCP segments over a smaller tunnel:
# /etc/nftables.conf snippet for WireGuard subnet routers
table inet wg_clamp {
chain forward {
type filter hook forward priority mangle; policy accept;
oifname "wg0" tcp flags syn tcp option maxseg size set rt mtu
iifname "wg0" tcp flags syn tcp option maxseg size set rt mtu
}
}
The keyword rt mtu tells Netfilter to dynamically calculate the exact maximum TCP payload permitted by the outgoing route's MTU (route_mtu - 40 for IPv4 or route_mtu - 60 for IPv6) rather than hardcoding stale numbers across multiple interfaces.
Verify Before Deploying Widely
Inspect TCP handshake options with sudo tcpdump -i wg0 -nn 'tcp[tcpflags] & tcp-syn != 0' while loading an HTTPS page from a routed client. Seeing mss 1320 (or 1380) instead of mss 1460 confirms MSS clamping is active.