WireGuard tunnel: large TCP uploads stall after MTU reduction on Debian 12 server
Environment
Debian 12 host (kernel 6.1), WireGuard peer-to-peer tunnel between datacenter server and remote Ubuntu 22.04 client. wg0 MTU was lowered from 1500→1280 to accommodate nested VPNs and an outer GRE path. Host uses iptables NAT, conntrack, and an Intel 1Gb NIC with default offloads enabled.
Symptoms
Small downloads and short HTTP requests succeed. Large TCP uploads from client to server begin, progress for ~40–70s, then throughput drops to near-zero while TCP remains ESTABLISHED; retransmits increase. Resuming after killing the transfer and restarting sometimes succeeds for a short window.
Observations
TCP 3-way handshake completes; initial segments appear in tcpdump on wg0 but server-side wireshark shows large aggregated segments from client that exceed outer MTU. Disabling offloads on server NIC immediately allows the long upload to complete. iptables mangle rule for TCP MSS clamping present but had no effect. net.ipv4.tcp_mtu_probing left at default.
Already attempted
Set wg0 MTU to 1280 and 1420 (no consistent fix). Added iptables mangle TCPMSS clamp-mss-to-pmtu on FORWARD chain (no change). Toggled net.ipv4.tcp_mtu_probing=1. Temporarily disabled GSO/GRO/TSO on server NIC (ethtool -K eth0 gso off gro off tso off) — long transfers then completed reliably.
Question
What is causing large TCP uploads to stall after MTU reduction over WireGuard, and how can I fix this reliably without disabling NIC offloads globally?
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
- Networking43% match
WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Open0 answers - Networking40% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers - Networking39% match
WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Open0 answers - Networking38% match
Large TCP uploads stall over WireGuard peer after MTU reduction on Linux server
Open0 answers - Networking38% match
Large TCP uploads stall over WireGuard after MTU lowered on Linux server
Open0 answers