Cloud Infrastructure Security
Security Groups vs. Network ACLs
Understanding the critical layers of defense-in-depth: Stateful vs. Stateless filtering.
Security Groups (SG)
The first line of defense for your specific resources.
- Scope: Operates at the Instance Level (Interface).
- State: Stateful. If you allow inbound, outbound is automatically allowed.
- Rule Type: Supports “Allow” rules only (Implicit deny for everything else).
Network ACLs (NACL)
The gatekeeper for the entire subnet boundary.
- Scope: Operates at the Subnet Level.
- State: Stateless. Inbound and Outbound rules are evaluated independently.
- Rule Type: Supports both “Allow” and “Deny” rules.
Traffic Flow Visualization
How a packet traverses the network to reach your data.