FULL AI ANALYSIS

Large TCP uploads stall over WireGuard peer after MTU reduction on Linux server

Generated Oct 18, 2026, 9:45:27 AM

Analysis summary

Behavior matches a PMTU/MSS black-hole caused by packet offloading interacting with a reduced MTU on the WireGuard device and a conntrack-bypass path. When kernel offloads (TSO/GSO) are enabled, the host may present large frames to the NIC that are not being properly segmented to the tunnel MTU; conntrack bypass prevents the kernel from adjusting MSS or handling fragmentation properly. Disabling offloads on the tunnel device or forcing MSS clamping prevents oversized packets from being sent and resolves the stall. Other contributors could be downstream NAT/firewall dropping fragments or a driver regression, but the immediate symptom and the fact disabling offloads fixes it point to offload + MTU mismatch as root cause.

Possible causes

PMTU/MSS mismatch between physical NIC and wg interface causing large packets not to be segmented before hitting tunnel path

90%

Kernel/NIC offload (TSO/GSO) producing large skbs that don't get correctly segmented for the WG MTU (offload regression)

80%

Raw PREROUTING conntrack-bypass rule preventing kernel from doing MSS clamping or fragment handling on tunneled packets

70%

Intermediate NAT/firewall or router dropping fragments or large encapsulated UDP packets

50%

Suggested fixes

1

Diagnostic step 1

Test for MTU/MSS black hole: from client run ping -s <size> -M do to the peer tunneled IP to determine largest path MTU.

2

Diagnostic step 2

Enable TCP MSS clamping on tunnel flows on both endpoints (iptables mangle TCPMSS clamp to PMTU) and verify large transfers.

3

Diagnostic step 3

Temporarily disable TSO/GSO/LRO on the wg interface only (ethtool -K wg0 tso off gso off lro off) and confirm transfers complete; this is reversible.

4

Diagnostic step 4

If conntrack-bypass rule is present, test removing it or move bypass to POSTROUTING after MSS clamp; ensure conntrack sees the packets for MSS adjustment.

5

Diagnostic step 5

Set net.ipv4.tcp_mtu_probing=1 to help discover PMTU automatically, then test larger transfers and monitor tcpdump at both ends for retransmits/ACK gaps.