TOOLS Calculate exact WireGuard & Tailscale MTU, TCP MSS clamps, and CIDR ranges in seconds Open MTU & Subnet Tool →
Networking & VPN · 10 Min Read · By Radz

Fixing WireGuard MTU Blackholes and TCP MSS Clamping on Linux Gateways

Learn exact WireGuard and PPPoE header overhead math, how Path MTU Discovery blackholes break HTTPS over VPN, and how to clamp TCP MSS in nftables.

Author: Radz (Systems & Network Engineering) Published: 2026-11-14 Updated: 2026-11-23

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.

Outer IPv4 Packet (Max 1500 Bytes on Ethernet / 1492 Bytes on PPPoE) Outer IP 20B (v4) / 40B (v6) UDP 8 Bytes WireGuard 32 Bytes Header/Tag Inner Encrypted IP Packet Payload Safe MTU = Outer_MTU - 60B (IPv4) or - 80B (IPv6) Example: 1492 PPPoE fiber - 80B (IPv6-safe overhead) = 1412 tunnel MTU → TCP MSS = 1372
Figure 1: WireGuard adds 60 bytes over IPv4 or 80 bytes over IPv6 to every inner tunnel packet.

1. Calculating Exact WireGuard Overhead

Every packet encrypted by WireGuard carries fixed outer headers regardless of inner payload content:

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.

Written by Radz · OrangeVPN Engineering

Independent systems architect publishing field-tested guides on WireGuard/Tailscale networking, Linux security, and Android automation. Notice an errata or want to share a question?