supraj.dev
AWS

Security groups vs network ACLs

Why does AWS have two kinds of firewall, security groups and network ACLs?

28 s loop7 sentencesSilent, read alongScene: Layers
Read the story, sentence by sentence 7 sentences

What you'll be able to say

  1. A security group is stateful and attached to each instance: replies to allowed requests leave automatically, and it has allow rules only.
  2. A network ACL is stateless and covers a whole subnet: replies need their own allow rule, and it can also deny traffic.
  3. Traffic from outside the subnet meets the network ACL first, then the security group, and both must allow it.