Diagnostic step 1
Monitor conntrack usage (watch -n1 cat /proc/sys/net/netfilter/nf_conntrack_count and nf_conntrack_max) during the backup window to correlate stalls with exhaustion.
Generated Oct 25, 2026, 9:44:56 AM
Monitor conntrack usage (watch -n1 cat /proc/sys/net/netfilter/nf_conntrack_count and nf_conntrack_max) during the backup window to correlate stalls with exhaustion.
Increase nf_conntrack_max and re-calculate appropriate hashsize: set nf_conntrack_max to expected entries * 2 and tune net.netfilter.nf_conntrack_buckets (hashsize) to a prime near nf_conntrack_max/4; on Debian set at boot via /etc/sysctl.d and ensure vendor scripts don't override.
Tune TCP conntrack timeouts for established connections (net.netfilter.nf_conntrack_tcp_timeout_established) to avoid premature eviction for known long uploads; reduce timeouts for ephemeral UDP if needed.
Consider marking trusted long-lived flows to bypass conntrack (using raw table and NOTRACK) for internal backup hosts, or place those hosts on a 1:1 NAT or routed subnet to avoid heavy NAT churn.
After changes, reproduce during low-impact window and verify stalls gone by monitoring /proc/net/nf_conntrack entries per flow and using tcpdump to confirm NAT mappings persist. Roll back sysctl changes by restoring previous values if unexpected side effects occur.