FULL AI ANALYSIS

WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server

Generated Oct 19, 2026, 9:33:36 AM

Analysis summary

Behavior matches a PMTU/MSS black-hole: packets exceed path MTU and intermediate device drops them while blocking ICMP 'fragmentation needed', so endpoints never reduce segment size. The temporary mangle TCPMSS clamp fixed it while present because it forces senders to use smaller MSS. Lowering wg0 MTU below worst-case path MTU can help but is a blunt tool. Other possible contributors include NAT/firewall dropping fragments, kernel offload/segmentation bugs causing oversized frames, or asymmetric routing leading to wrong PMTU estimation.

Possible causes

PMTU black-hole because an intermediate firewall/NAT blocks ICMP 'fragmentation needed' so TCP endpoints never learn to lower segment size

90%

No TCP MSS clamping on server or VPN gateway; sender still uses large MSS and relies on PMTU discovery

70%

NIC offload or kernel segmentation/encapsulation bug causing oversized tunneled frames that are dropped by downstream device

40%

Asymmetric routing where fragments or ICMP replies return via a different path that filters them, preventing PMTU discovery

30%

Suggested fixes

1

Diagnostic step 1

Temporarily enable TCP MSS clamping on the host to verify fix: iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu (or adapt to INPUT/OUTPUT depending on topology). Test with iperf3/rsync.

2

Diagnostic step 2

If MSS clamp works, persist the rule (iptables-persistent, nftables equivalent) or add to systemd-networkd/Netfilter startup scripts.

3

Diagnostic step 3

Alternatively set wg0 MTU to a conservative value (e.g. 1280) on both ends and test; if fine, adjust upward until you see issues to find safe MTU.

4

Diagnostic step 4

Capture traffic with tcpdump on both endpoints and an intermediate router to confirm where packets get dropped and to look for ICMP 'fragmentation needed'.

5

Diagnostic step 5

If ICMP is filtered, allow Type 3 Code 4 (fragmentation needed) through the firewall or ask the ISP to permit it for troubleshooting; revert if policy disallows externally modifying firewall rules without approval.