Why WireGuard Works on Wi-Fi but Hangs on Cellular & PPPoE: Exact Tunnel MTU and TCP MSS Clamping
One of the most baffling failure modes in modern networking is the asymmetric tunnel stall: your WireGuard handshake succeeds in 20 milliseconds, ICMP ping replies cleanly, and SSH prompts appearβyet the moment you run git push, pull a Docker layer, or open a heavy TLS webpage over PPPoE fiber or 5G cellular, the connection freezes indefinitely. Nine times out of ten, you are facing a Path MTU Discovery (PMTUD) black hole.
1. Anatomy of the Overhead Budget: Byte-by-Byte Breakdown
Standard Ethernet frames carry a Layer 3 Maximum Transmission Unit (MTU) of 1500 bytes. Whenever a VPN encapsulates an inner IP packet inside an outer transport packet, the tunnel headers steal bytes from that 1500-byte ceiling. If the resulting encapsulated packet exceeds the narrowest link along the WAN path and carries the IPv4 Don't Fragment (DF) flag (or is IPv6, where intermediate routers never fragment), the upstream router must drop the packet and send back an ICMP Fragmentation Needed (Type 3, Code 4) or ICMPv6 Packet Too Big message.
When overly aggressive carrier firewalls or misconfigured NAT gateways silently drop those ICMP messages, neither endpoint learns that full-sized TCP segments are being discarded. Small packets (DNS lookups, TCP SYN/ACK handshakes, 64-byte pings) slip underneath the ceiling and succeed, while 1460-byte data segments vanish without a trace.
| Link / Overlay Layer | Header Overhead | Math Breakdown | Resulting Tunnel MTU |
|---|---|---|---|
| Ethernet + WireGuard (IPv4 outer) | 60 bytes | 20B IPv4 + 8B UDP + 32B WG | 1440 (default safe: 1420) |
| Ethernet + WireGuard (IPv6 outer) | 80 bytes | 40B IPv6 + 8B UDP + 32B WG | 1420 bytes |
| PPPoE Fiber + WireGuard (IPv4) | 68 bytes | 8B PPPoE + 60B WG/IPv4 | 1432 bytes |
| PPPoE Fiber + WireGuard (IPv6) | 88 bytes | 8B PPPoE + 80B WG/IPv6 | 1412 bytes |
| Cellular / 4G-5G Dual-Stack / Tailscale | Variable (1360β1420 WAN) | Carrier GTP + CLAT/464XLAT | 1280 bytes (RFC 8200 floor) |
| VXLAN inside WireGuard (IPv4) | 110 bytes | 50B VXLAN + 60B WG/IPv4 | 1390 bytes |
2. Why Cellular Carriers and Nested Overlays Break MTU = 1420
WireGuard's well-known 1420-byte default assumes a pristine 1500-byte Ethernet underlay carrying an IPv6 outer endpoint (1500 - 80 = 1420). That assumption collapses immediately on two common real-world links: residential PPPoE fiber (which reduces WAN MTU to 1492, pushing IPv6-outer WireGuard down to 1412 bytes) and mobile 4G/5G networks.
Mobile carriers run GTP encapsulation, IPv6-only cores with 464XLAT/CLAT translation, and internal MPLS headers that frequently shrink effective path MTU below 1420 bytes. Setting MTU = 1280 on mobile WireGuard profiles respects the mandatory IPv6 minimum MTU floor (RFC 8200) while costing less than 1.5% extra header ratio. Likewise, nesting raw WireGuard inside Tailscale (which already caps its virtual adapter at 1280 bytes) pushes inner MTU to 1200β1220 bytes, violating IPv6 minimums and guaranteeing stalled sessionsβavoid double-tunneling whenever possible.
3. Proving the Exact Path MTU in 15 Seconds with Unfragmented Ping
N
e
v
e
r
g
u
e
s
s
M
T
U
v
a
l
u
e
s
b
l
i
n
d
l
y
.
U
s
e
a
n
u
n
f
r
a
g
m
e
n
t
e
d
I
C
M
P
p
r
o
b
e
(
D
o
n
'
t
F
r
a
g
m
e
n
t
f
l
a
g
s
e
t
)
t
o
m
e
a
s
u
r
e
t
h
e
e
x
a
c
t
l
a
r
g
e
s
t
p
a
c
k
e
t
y
o
u
r
W
A
N
o
r
t
u
n
n
e
l
c
a
n
c
a
r
r
y
.
R
e
m
e
m
b
e
r
t
h
a
t
p
i
n
g
'
s
p
a
y
l
o
a
d
p
a
r
a
m
e
t
e
r
e
x
c
l
u
d
e
s
t
h
e
2
0
-
b
y
t
e
I
P
v
4
h
e
a
d
e
r
a
n
d
8
-
b
y
t
e
I
C
M
P
h
e
a
d
e
r
(
2
8
b
y
t
e
s
t
o
t
a
l
)
,
s
o
t
e
s
t
i
n
g
a
1
4
1
2
-
b
y
t
e
M
T
U
r
e
q
u
i
r
e
s
a
p
a
y
l
o
a
d
s
i
z
e
o
f
1
4
1
2
-
2
8
=
1
3
8
4
b
y
t
e
s
.
# Linux: test if a 1412-byte packet traverses the tunnel without fragmentation
ping -M do -s 1384 -c 4 1.1.1.1
# macOS: -D sets Don't Fragment
ping -D -s 1384 -c 4 1.1.1.1
# Windows PowerShell / CMD: -f sets Don't Fragment, -l sets payload bytes
ping -f -l 1384 -n 4 1.1.1.1
# If you see 'Frag needed and DF set' or 100% packet loss, binary-search downward:
# Try 1352 (MTU 1380), then 1252 (MTU 1280).
4. Pair Interface MTU with Router TCP MSS Clamping
Lowering MTU = 1412 on your local wg0 interface fixes outbound packets from that host, but when WireGuard runs on a gateway router forwarding traffic for LAN clients (laptops, IoT devices, or Kubernetes pods whose own NICs still advertise MTU 1500), remote HTTPS servers will still transmit 1460-byte TCP segments back toward your gateway.
TCP Maximum Segment Size (MSS) clamping solves this cleanly during the initial three-way handshake. By rewriting the TCP MSS option inside SYN packets passing through your VPN gateway to Inner_MTU - 40 (for IPv4: 20B IP + 20B TCP) or Inner_MTU - 60 (for IPv6: 40B IP + 20B TCP), both ends agree never to emit oversized TCP segments in the first place.
# nftables (modern Linux gateways) β auto-clamp TCP MSS to discovered PMTU
nft add rule inet filter forward oifname "wg0" tcp flags syn \
tcp option maxseg size set rt mtu
# Explicit static MSS clamp for PPPoE + IPv6-outer WireGuard (MTU 1412 -> MSS 1372)
iptables -t mangle -A FORWARD -o wg0 -p tcp --tcp-flags SYN,RST SYN \
-j TCPMSS --set-mss 1372
# WireGuard [Interface] stanza
[Interface]
MTU = 1412
5. Split-Tunnel AllowedIPs Pitfall: Excluding Private LAN Subnets
O
n
c
e
M
T
U
a
n
d
M
S
S
a
r
e
h
e
a
l
t
h
y
,
t
h
e
n
e
x
t
c
o
m
m
o
n
W
i
r
e
G
u
a
r
d
s
n
a
g
i
s
l
o
s
i
n
g
l
o
c
a
l
N
A
S
,
p
r
i
n
t
e
r
,
o
r
o
f
f
i
c
e
s
u
b
n
e
t
r
e
a
c
h
a
b
i
l
i
t
y
a
f
t
e
r
s
e
t
t
i
n
g
A
l
l
o
w
e
d
I
P
s
=
0
.
0
.
0
.
0
/
0
.
B
e
c
a
u
s
e
W
i
r
e
G
u
a
r
d
u
s
e
s
p
o
s
i
t
i
v
e
-
o
n
l
y
C
r
y
p
t
o
k
e
y
R
o
u
t
i
n
g
t
a
b
l
e
s
w
i
t
h
n
o
n
e
g
a
t
i
o
n
s
y
n
t
a
x
,
y
o
u
m
u
s
t
s
u
b
t
r
a
c
t
y
o
u
r
l
o
c
a
l
R
F
C
1
9
1
8
b
l
o
c
k
s
(
f
o
r
e
x
a
m
p
l
e
,
1
9
2
.
1
6
8
.
1
.
0
/
2
4
o
r
1
0
.
0
.
0
.
0
/
8
)
f
r
o
m
0
.
0
.
0
.
0
/
0
i
n
t
o
a
c
l
e
a
n
s
e
t
o
f
m
i
n
i
m
a
l
n
o
n
-
o
v
e
r
l
a
p
p
i
n
g
C
I
D
R
p
r
e
f
i
x
e
s
β
a
n
d
m
a
k
e
s
u
r
e
U
D
P
p
o
r
t
5
1
8
2
0
i
s
p
e
r
m
i
t
t
e
d
c
l
e
a
n
l
y
t
h
r
o
u
g
h
y
o
u
r
p
e
r
i
m
e
t
e
r
f
i
r
e
w
a
l
l
.