Long‑lived TCP transfers stall after enabling hardware NAT offload on edge firewall
Environment
Edge gateway appliance (ARM-based OEM) running vendor firmware v2.3.5 with hardware NAT/accelerated forwarding enabled; internal LAN 192.168.1.0/24; upstream ISP single public IP; conntrack max set to 262144; /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established default.
Symptoms
Long TCP uploads/downloads (SFTP, rsync, large HTTP transfers) start normally then stall after 1–5 minutes. Short requests and new connections still work. Stalled flows recover only after firewall restart or client TCP reconnect.
Observations
tcpdump on LAN side shows ACKs stop being forwarded while client keeps sending; /proc/net/nf_conntrack shows fewer entries for stalled flows and entries disappear. dmesg contains 'offload: failed to program NAT' logs after enabling offload. No CPU saturation on appliance.
Already attempted
Rebooted appliance, toggled offload setting via GUI (reported disabled then re-enabled after reboot), increased conntrack_max, cleared conntrack table manually, applied latest vendor micro-patch (v2.3.6) — temporary improvement only.
Question
What diagnostics and steps will safely identify whether hardware NAT offload or asymmetric routing is killing established TCP flows, and how should I restore reliable long‑lived connections without losing NAT throughput?
Verified community troubleshooting
First thing: disable the firewall's hardware NAT/flow offload so packets always traverse kernel netfilter. On most appliances that's a single checkbox or CLI toggle; then run a long file transfer while running tcpdump on both WAN and LAN interfaces and watch /proc/net/nf_conntrack. If transfers keep running with offload off, you've isolated a vendor offload bug — keep offload disabled and open a vendor case with the captures. Rollback firmware only if vendor confirms regression; keep the offload toggle change reversible and document it for rollback.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Networking26% match
Edge Linux router drops long-lived TCP uploads after conntrack table thrash under heavy NAT load
Solved1 answer - Networking24% match
Kubernetes nodes with kube-proxy in IPVS mode cause long-lived TCP connections to stall when conntrack entries exceed kernel limit
Open0 answers - Networking21% match
SSH sessions and long TCP transfers hang after enabling TCP window scaling on edge Linux router
Solved1 answer - Networking21% match
Site-to-site IPsec tunnel stalls large TCP transfers after disabling MSS clamp on edge firewall
Open0 answers