What is the difference between a stateful and a stateless firewall?
BeginnerConceptNAT, Firewalls & VPN
Answer
Stateful firewalls track connections, so allowing an outbound request automatically allows its reply. Stateless firewalls evaluate every packet independently, so you must allow both directions explicitly.
AWS security groups are stateful; network ACLs are stateless, which is why NACLs need ephemeral port ranges (1024–65535) open for return 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 conntrack and what happens when its table fills up?AdvancedWhat is a security group and how does it differ from a network ACL?Beginner