WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Environment
Ubuntu 22.04 LTS server (kernel 5.15.x) running WireGuard endpoint (wg0). Server route to internet goes through a hardware firewall/router that had MTU reduced from 1420 to 1280 during an MSS/fragmentation change. Clients are Linux and macOS hosts running WireGuard peers.
Symptoms
Large TCP uploads (multi‑MB files, rsync/scp) stall after 40–90s, showing retransmits then timeouts. Small downloads and small HTTP requests succeed. Interactive SSH is OK. Issue appears immediately after the router MTU change and persists until MTU reset.
Observations
tcpdump on wg0 shows client sending TCP segments with DF set and sizes > 1200B; server sees repeated retransmits and never receives ICMP 'fragmentation needed'. ip route shows wg0 mtu 1420 on peers but tunnel mtu configured to 1280 on server. No ICMPv4 allowed through firewall.
Already attempted
Changed wg0 MTU on server and a client to several values (1280, 1400, 1420) — no consistent fix. Tried disabling TCP offload (ethtool -K) on server NICs; temporarily reverted router MTU to 1420 and large uploads resumed. Enabled iptables TCPMSS clamp on server but used an nftables-only system (iptables rule had no effect).
Question
What diagnostics and reversible fixes will reliably restore large TCP upload throughput over WireGuard without rolling back the router change? How to identify the specific device dropping ICMP 'fragmentation needed' and mitigate in mixed iptables/nftables environments?
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
- Networking40% match
WireGuard tunnel connects but large TCP transfers stall — small requests OK (likely PMTU / MSS black hole)
Open0 answers - Networking40% match
WireGuard: Large TCP uploads stall after MTU lowered on Linux server while small requests succeed
Open0 answers - Networking40% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers - Networking39% match
Large TCP uploads stall over WireGuard after MTU lowered on Linux server
Open0 answers - Networking35% match
Large TCP uploads stall over WireGuard peer after MTU reduction on Linux server
Open0 answers