WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Environment
Ubuntu 22.04 LTS server running WireGuard (linux kernel 5.15, wireguard-tools 1.0.20220513). Peers include macOS 12.6 and Ubuntu 20.04 laptops. wg0 MTU was recently changed from 1420 to 1280 to accommodate an intermediate tunnel.
Symptoms
Large TCP uploads (scp/rsync/HTTP POST uploads > ~1.5–2 MiB) stall — throughput rises briefly then drops to near zero and the transfer hangs. Small requests and downloads complete normally; UDP-based tests show steady throughput.
Observations
tcpdump on server's wg0 shows the TCP sender continuing to send segments but the peer stops ACKing after the stall point. No RSTs seen. ping with large packet sizes (fragmentation) fails when DF set. iperf3 short tests and small-block transfers succeed. No kernel OOM. No obvious WireGuard error logs. No stateful firewall hits in server logs.
Already attempted
Adjusted wg0 MTU up/down on both ends; added iptables MSS clamp on server NAT rules; toggled KeepAlive and PersistentKeepalive; disabled firewall temporarily; tested over different public networks; restarted wg-quick on both ends. Temporary improvement when disabling TCP offloads on the host (ethtool -K <if> tso off gso off), but not a permanent fix.
Question
What is most likely causing large-TCP uploads to stall after changing MTU, and how can I reliably diagnose and mitigate this without breaking existing connectivity?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking45% match
WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Open0 answers - Networking40% match
Ubuntu 22.04 server: Large HTTPS POSTs to IPv6-enabled APIs stall while small requests succeed — suspected PMTU/ICMPv6 filtering
Open0 answers - Networking39% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers - Networking37% match
WireGuard tunnel: large TCP uploads stall after MTU reduction on Debian 12 server
Open0 answers - Networking37% match
Large TCP uploads stall over WireGuard after MTU lowered on Linux server
Open0 answers