FULL AI ANALYSIS

WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole

Generated Oct 20, 2026, 9:41:02 AM

Analysis summary

Behavior matches a Path MTU Discovery black hole: large TCP segments with DF are sent but an intermediate device (likely the changed router or a firewall) is blocking ICMP 'fragmentation needed' so endpoints never learn lower MTU. WireGuard tunnels encapsulate packets, changing effective path MTU; if endpoints keep a larger MTU while an intermediate enforcer blocks ICMP, large flows stall. Alternatives include missing MSS clamping on egress, NIC offload interacting with encapsulation, or a misconfigured nftables/iptables rule set that fails to adjust MSS for SYN packets.

Possible causes

ICMP 'fragmentation needed' (PMTU) messages being filtered by an intermediate firewall/router after MTU change — endpoints never reduce segment size

90%

No MSS clamp applied on tunnel egress so TCP SYNs advertise too-large MSS and endpoints send large segments that cannot traverse the path

75%

Offload features (GSO/TSO/LRO) on server NIC or peers cause oversized frames that the router drops when encapsulated, appearing like a stall

40%

WireGuard tunnel MTU mismatch across peers combined with NAT device fragmentation behavior (encapsulation + NAT creates larger packets)

35%

Suggested fixes

1

Diagnostic step 1

Temporarily allow ICMP 'fragmentation needed' (type 3/code 4) through the firewall/router on the path to confirm PMTU is the issue; verify via tcpdump that ICMP messages arrive at endpoint when reproducing large upload.

2

Diagnostic step 2

Apply MSS clamping for TCP SYNs on the WireGuard egress interface on the router or the WireGuard host (nftables or iptables-mangle TCPMSS --clamp-mss-to-pmtu). For nftables: add a mangle rule to adjust tcp option MSS for SYN packets leaving the tunnel.

3

Diagnostic step 3

If using nftables and iptables coexistence, implement the clamp using the active packet filter (use nft add rule inet mangle POSTROUTING tcp flags syn tcp option maxseg set rt pmtu or equivalent) or enable iptables-legacy compatibility temporarily and add tcp_mss rule.

4

Diagnostic step 4

Disable NIC offloads temporarily on the server (ethtool -K eth0 gso off tso off gro off) and re-test large transfer to rule out offload-induced fragmentation issues.

5

Diagnostic step 5

If immediate firewall edits are not permitted, reduce the WireGuard tunnel MTU on both endpoints (wg set mtu 1280) and confirm uploads succeed; this is reversible and safe to test during maintenance windows.