Networking

WireGuard tunnel: ICMP passes but large TCP uploads stall — suspect GRO/GSO offload interaction on Linux host

Environment

Environment

Linux server (kernel 5.x) running WireGuard in-kernel module; clients Linux desktops and mobile phones. WireGuard interfaces use MTU 1420, NAT on server to internal network. Large TCP uploads (rsync/HTTP) from clients stall or drop at high throughput; small transfers and ICMP work fine.

Symptoms

Symptoms

Large TCP uploads hang mid-transfer, progress stalls and resumes sporadically; ping and small downloads work. Connection resets observed when transfers resumed manually. Problem appears after kernel/module update and only affects tunneled TCP; local LAN traffic unaffected.

Observations

Observations

tcpdump on server shows incoming packets coalesced (large segments) and outgoing translated packets with merged segments. Disabling GRO/GSO on the WireGuard-facing NIC on the server (ethtool -K <if> gro off gso off tso off) allowed large TCP uploads to complete reliably. Disabling MSS/clamp had no effect. No obvious conntrack exhaustion logged.

Already attempted

Already attempted

Adjusted MTU on peers from 1420 to 1380 and back; toggled MSS clamping; restarted wireguard and netfilter; temporarily disabled offload as above which restored transfers. Kernel upgrade applied recently prior to regression.

Question

Question

What are the recommended diagnostic steps and permanent fixes for WireGuard + host NIC offload interactions? Should I keep offloads disabled, update kernel, or change MTU/MSS? How to verify root cause safely and rollback?

COMMUNITY RESPONSES

Verified community troubleshooting

0 replies

No answers yet..

Showing 0 of 0 community responses
AI DIAGNOSTICS

Incident analysis

Updated 4w ago• Trouble ID

Most likely causes

Kernel/driver regression in GRO/GSO/TSO handling for encapsulated traffic (WireGuard) causing malformed segments post-encryption 95%
MTU/MSS mismatch causing fragmentation at the host combined with offload that hides PTB ICMP replies 50%
Conntrack/NAT timeouts combined with reassembly issues under high throughput 30%

Summary

When tunneled packets are subject to host NIC offloads (GRO/GSO/TSO) the kernel may coalesce or segment packets expecting the stack to re-segment before encryption/encapsulation; with WireGuard encapsulation this can mis-handle segment boundaries and crush TCP state leading to stalls. The fact that disabling GRO/GSO restores transfers strongly implicates offload interaction or a kernel regression in network stack handling for encapsulated encrypted traffic. MTU/MSS tweaks sometimes mask the symptom but don't fix underlying segmentation handling. Permanent fixes include kernel/driver updates that include the offload-handling regression fix, or keeping offloads disabled on the physical NIC and/or the WireGuard interface as a stopgap.

Suggested Fixes

Diagnostic step 1
Reproduce the issue while collecting packet captures on both client and server (tcpdump -s0 -w) to show segmentation/coalescing behavior and timing; compare before/after toggling offloads.
Diagnostic step 2
Temporarily disable offloads on the server's physical NIC: ethtool -K <iface> gro off gso off tso off; test large TCP uploads. This is reversible and confirms offload involvement.
Diagnostic step 3
If confirmed, check kernel changelogs and network driver updates for fixes; plan a maintenance kernel/driver upgrade on the host.

Continue troubleshooting

Matched from the title, description and tags