GRE tunnel drops fragmented packets >1400B only when raw PREROUTING conntrack-bypass rule is present on Linux router
Environment
Linux router (kernel 5.15) using iptables-nft for NAT/forwarding, GRE tunnel between two sites; MTU negotiated 1500->1476 for GRE overhead. A custom iptables raw table PREROUTING rule marks some traffic - NOTRACK to bypass conntrack for high-throughput flows.
Symptoms
Large TCP transfers across GRE stall or drop (many retransmits) when packet size exceeds ~1400 bytes. Small requests OK. Problem appears only when raw NOTRACK rule active. Captures show fragments sent but never reassembled at peer.
Observations
tcpdump on ingress shows GRE-encapsulated packets with DF set fragmenting at outer MTU; inner packets sometimes split into fragments. When NOTRACK removed, flows succeed. sysctl net.ipv4.ip_forward and ip_conntrack counters normal. Offloads (GSO/GRO) enabled on interfaces.
Already attempted
Disabled iptables raw rule — problem gone. Toggled GSO/GRO/TSO off on GRE and physical NICs — mitigated but performance reduced. Adjusted MTU on endpoints to 1400 — fixed, but disruptive to other flows.
Question
Why does marking packets NOTRACK in raw PREROUTING cause GRE-encapsulated fragmented packets to be dropped, and how to keep conntrack bypass without breaking large transfers?
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
- Networking24% match
GRE site-to-site: large TCP uploads stall after MTU lowered when conntrack-bypass raw rule present
Open0 answers - Networking22% match
Edge Linux router drops long-lived TCP uploads after conntrack table thrash under heavy NAT load
Solved1 answer - Linux22% match
Linux kernel logs NETDEV WATCHDOG and igb driver drops packets after enabling GRO on high-throughput gateway
Open1 answer