Layering Both for Defense in Depth
Combine the two firewalls to reinforce your network security.
Defense in Depth
Defense in depth means stacking independent controls so a failure or gap in one does not expose the workload. In a VPC, security groups and network ACLs are two such layers, joined by route tables, WAF, and Network Firewall to form overlapping barriers around your resources.
Complementary Strengths
Security groups give fine, per-resource, stateful control with allow-only rules. NACLs give coarse, subnet-wide, stateless control with both allow and deny. Using them together lets you set a broad subnet baseline while tuning each resource precisely.
All lessons in this course
- How Security Groups Filter Traffic
- How Network ACLs Filter Subnets
- Stateful versus Stateless Behavior
- Layering Both for Defense in Depth