Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

Stateful versus stateless firewalls: what is the practical difference?

BeginnerScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Do you track connections or evaluate each packet alone?

What I'd do →

  1. A stateful firewall remembers outbound connections and automatically allows the replies (security groups, iptables -m conntrack --ctstate ESTABLISHED,RELATED)
  2. A stateless firewall needs explicit rules both ways (NACLs, router ACLs)
  3. Stateful devices have connection table limits
  4. Check with conntrack -L | wc -l and sysctl net.netfilter.nf_conntrack_max

Why → State lets you write simple rules, at the cost of memory and a table that can fill.

Interview tip → Say you remember conntrack table exhaustion as the failure mode.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN