Large TCP uploads stall over WireGuard peer after MTU reduction on Linux server
Environment
Two Ubuntu 22.04 servers running WireGuard kernel module (wg-quick v1.0.20220411). Both endpoints NATed behind consumer routers. Physical NICs MTU 1500; wg0 configured with MTU 1280 on both ends. Raw iptables rule present to bypass conntrack for tunnel traffic on server A.
Symptoms
Large scp/rsync uploads (multi-megabyte files) stall after ~300–700 KB transferred; small requests and ICMP succeed. Stalls are transient — restarting transfer often resumes briefly. Windows client transfers through same path succeed.
Observations
tcpdump on server A shows forward data segments sent continuously after stall; server B's tcpdump shows no corresponding ACKs after stall. Disabling TSO/GSO on wg0 (ethtool -K wg0 tso off gso off) makes the large transfers complete. Enabling sysctl net.ipv4.tcp_mtu_probing=1 reduces occurrences but doesn't eliminate them. conntrack-bypass raw PREROUTING rule present.
Already attempted
Restarted WireGuard, disabled offloads on wg0 and on underlying phys NIC, temporarily removed raw conntrack bypass rule, ran iperf3 (unaffected for small flows), captured pcap during failure, verified router NAT didn't show fragment drops.
Question
What is causing large TCP uploads to stall over WireGuard after MTU reduction, and how can I restore reliable large-transfer throughput without disabling offloads globally or drastically reworking firewall rules?
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
- Networking37% match
Large TCP uploads stall over WireGuard after MTU lowered on Linux server
Open0 answers - Networking35% match
WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Open0 answers - Networking34% match
WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Open0 answers - Networking33% match
WireGuard tunnel: large TCP uploads stall after MTU reduction on Debian 12 server
Open0 answers - Networking32% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers