Interview Prep/Networking/NAT, Firewalls & VPN

What is conntrack and what happens when its table fills up?

AdvancedConceptNAT, Firewalls & VPN
Answer

Linux connection tracking records the state of every flow so stateful iptables/nftables rules and NAT can work. The table has a maximum size (net.netfilter.nf_conntrack_max); when full, new connections are dropped and the kernel logs nf_conntrack: table full, dropping packet.

conntrack -C
sysctl net.netfilter.nf_conntrack_max

Busy NAT nodes, kube-proxy nodes and DNS-heavy workloads hit this. Raise the limit, reduce short-lived flows, or bypass tracking for known high-volume traffic.

All Networking questions Roadmap: Networking for DevOps

More on NAT, Firewalls & VPN