FULL AI ANALYSIS

WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed

Generated Oct 16, 2026, 9:43:08 AM

Analysis summary

Symptoms point to a PMTU/MSS black hole or offload behavior where large TCP segments get dropped or not fragmented when sent through the WireGuard tunnel. The fact small transfers and UDP succeed, and disabling offloads helps, suggests either ICMP 'Fragmentation needed' messages are being blocked on the path (so endpoints never reduce segment size), or large frames created by TSO/GSO are being mishandled by a NIC/driver or by the tunnel endpoint. Other possibilities include a WireGuard MTU mismatch between peers, NAT/conntrack fragmentation issues on an intermediate router, or a hardware NIC bug that surfaces only for encapsulated traffic.

Possible causes

Path MTU black hole: ICMP 'fragmentation needed' blocked on path, so TCP doesn't reduce MSS and large segments are dropped inside the tunnel.

80%

TCP offloads (TSO/GSO) produce large frames that are not handled correctly by host NIC driver or by an intermediate device when encapsulated in WireGuard.

60%

WireGuard MTU mismatch or misconfigured MTU on one peer, leading to packets larger than the tunnel can forward.

50%

Stateful NAT/conntrack or firewall on intermediate router mishandles fragmented or large tunneled packets.

30%

Suggested fixes

1

Diagnostic step 1

Reproduce reliably with iperf3 and with a raw TCP transfer while running tcpdump on both endpoints (capture both inside and outside the WireGuard interface).

2

Diagnostic step 2

On both ends, disable TCP offloads temporarily (ethtool -K <if> tso off gso off gro off) — if this consistently removes the stall, collect ethtool -k and ethtool -S outputs to correlate with NIC driver.

3

Diagnostic step 3

Verify ICMP 'fragmentation needed' reaches the sender: run traceroute -F/MTU-path tests or use ping -M do -s <size> to detect the largest transmissible packet. If ICMP blocked, enable/allow ICMP on intermediate devices or configure MSS clamp on the edge.

4

Diagnostic step 4

Set explicit MTU and peers' endpoint MTU to a safe lower value (e.g., 1200) on both WireGuard peers as a reversible mitigation and test high-volume transfers.

5

Diagnostic step 5

Enable MSS clamping at the edge router (or on the server NAT) as a quick workaround if PMTU messages cannot be unblocked: iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu (apply where NAT occurs). Remove after root cause found to avoid surprising fragmentation changes for other flows (reversible). If issue looks NIC/driver specific, gather dmesg, lspci -vvv, kernel version and file with NIC vendor or kernel maintainers for further escalation.