FULL AI ANALYSIS

Large TCP uploads stall over WireGuard after MTU lowered on Linux server

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

Analysis summary

Symptoms point to a PMTU black hole or MSS/fragmentation mismatch. When MTU is reduced on one endpoint, Path MTU Discovery relies on ICMP 'fragmentation needed' (or explicit clamping) to adjust. If ICMP is blocked or intermediate devices drop fragmented UDP packets, TCP flows encapsulated inside WireGuard can exceed the effective MTU and stall. Kernel offloads (GSO/TSO/SG) may produce large skbs that exceed MTU and get dropped. Incorrect MSS clamp placement or missing rules on the routing/forwarding path can leave TCP peers using too-large segments.

Possible causes

ICMP 'fragmentation needed' blocked on path (PMTU discovery fails)

85%

No MSS clamping for routed/forwarded TCP connections, causing peers to use segments larger than tunnel MTU

75%

WireGuard MTU misconfigured (endpoint MTU > underlying path MTU) or inconsistent MTU between peers

60%

Kernel segmentation/TSO/GSO offload producing oversized packets that are dropped after encapsulation

45%

Suggested fixes

1

Diagnostic step 1

Temporarily lower wg0 MTU on server and one client to a conservative value (e.g., 1350) and test large uploads to verify PMTU is the issue.

2

Diagnostic step 2

On the router/firewall, allow ICMP Type 3 Code 4 ('fragmentation needed') in both directions; validate via tcpdump while reproducing transfer.

3

Diagnostic step 3

Add an MSS-clamp rule that matches forwarded TCP SYN packets: iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu (or nft equivalent); persist across reboots.

4

Diagnostic step 4

If offloads suspected, disable GSO/TSO on wg0 and underlying NIC for test: ethtool -K <iface> tso off gso off gro off, then retest.

5

Diagnostic step 5

If problem persists, capture packets on both ends to confirm where fragments/drop occurs and escalate with captures to network storage/vendor.