Networking

Long‑lived TCP transfers stall after enabling hardware NAT offload on edge firewall

emmahacks
1mo ago
Environment

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

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

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

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

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?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
stella_stack Answer
user
Posted 1mo ago • 0 confirmations

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.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Vendor hardware NAT/flow offload bug causing established offloaded connections to stop being proxied through kernel conntrack 90%
Asymmetric routing or policy-based route change causing replies to take different egress and bypass conntrack expectations 55%
TCP/LSO/GRO checksum offload mismatch between kernel and NIC causing packets to be dropped on offload boundary 40%

Summary

Symptoms point to a hardware offload regression where the packet steering or NAT table programming fails for already‑established connections (offloaded flows stop being mirrored to conntrack). Asymmetric path or checksum offload mismatch can also produce similar one‑sided stalls. The dmesg 'offload' errors and disappearing conntrack entries most strongly implicate the hardware/NIC offload layer and its interaction with the kernel netfilter state.

Suggested Fixes

Diagnostic step 1
Disable hardware NAT/flow offload on the appliance (vendor GUI/CLI) to force all traffic through kernel netfilter; observe for recurrence.
Diagnostic step 2
Capture mirrored packet traces on LAN and WAN sides with tcpdump while a transfer is active to confirm flow forwarding and symmetric paths.
Diagnostic step 3
Monitor /proc/net/nf_conntrack and journalctl -k for offload-related errors while reproducing the stall.

Continue troubleshooting

Matched from the title, description and tags