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.
More on NAT, Firewalls & VPN
What is NAT and why is it used?BeginnerWhat is the difference between SNAT, DNAT and PAT?AdvancedHow does an AWS NAT gateway work, and what are its limits?AdvancedWhy is NAT gateway cost a common surprise and how do you reduce it?IntermediateWhat is the difference between a stateful and a stateless firewall?BeginnerWhat is a security group and how does it differ from a network ACL?Beginner