GRE site-to-site: large TCP uploads stall after MTU lowered when conntrack-bypass raw rule present
Environment
Debian 12 routers using GRE tunnel between two datacenters; original MTU 9000, recently lowered to 1500 on tunnel endpoints; iptables raw table contains a PREROUTING rule to bypass conntrack for specific traffic to improve throughput; GRE encapsulation in use; endpoints run Linux 6.x kernel.
Symptoms
Large TCP uploads (>1200 bytes per packet) begin transferring then throughput drops to near zero after ~30–90s; small requests and TCP handshakes succeed and short transfers complete. TCP sessions stall without immediate RST; connections eventually time out or recover after manual retry.
Observations
tcpdump on ingress shows a stream of 'Fragmentation needed' (ICMP type 3 code 4) from the far end, but those ICMP packets are not seen on the sender when the raw conntrack-bypass rule is active. When the raw rule is removed, ICMP Path MTU messages are forwarded and the large flows resume normally. Enabling explicit TCP MSS clamping on the GRE interface also restores transfers. conntrack counters show not tracked for flows matching the rule.
Already attempted
Disabled conntrack-bypass raw rule — problem resolved. Added -j CT --notrack to other chains with same effect. Tried lowering application MSS, set MTU smaller on endpoints — temporary fix. Allowed all ICMP in firewall — transfers resumed. Added 'TCPMSS' mangle rule on tunnel endpoint — resolved for test traffic.
Question
Why does a raw PREROUTING conntrack-bypass rule cause large TCP transfers to stall over GRE after MTU changes, and what is the safest permanent fix to avoid PMTU black holes without re-enabling full conntrack for high-throughput flows?
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
- Networking41% match
GRE tunnel drops fragmented packets >1400B only when raw PREROUTING conntrack-bypass rule is present on Linux router
Open0 answers - Networking31% match
WireGuard tunnel: large TCP uploads stall after MTU lowered on Linux server — likely PMTU / MSS black hole
Open0 answers - Networking30% match
WireGuard tunnel: large TCP uploads stall after MTU reduction on Debian 12 server
Open0 answers - Networking29% match
Large TCP uploads stall over WireGuard peer after MTU reduction on Linux server
Open0 answers - Networking28% match
WireGuard tunnel stalls on large TCP uploads after MTU change on Linux server
Open0 answers