A NACL change broke working connections. What commonly goes wrong?
IntermediateScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer
Situation read → Stateless rules need both directions.
What I'd do →
- Check inbound rule for the service port and the outbound rule for ephemeral ports 1024-65535 (and vice versa for client connections)
- Check rule numbers: a lower-numbered deny overrides a later allow
- The default NACL allows everything, a custom one denies everything by default
- Use VPC Flow Logs to see REJECT with the NACL's subnet ENI
- Roll back with the last known-good rule set
Why → NACLs forget connections; reply packets are evaluated as new traffic.
Interview tip → Say you keep NACLs simple and use SGs for logic.
More on Security: Firewalls, SGs, NACLs & VPN
Security group versus NACL: explain the differences.BeginnerHow do you let only your office IP SSH into a server?BeginnerWhat does it mean that a security group can reference another security group?BeginnerStateful versus stateless firewalls: what is the practical difference?BeginnerWhat is a WAF and where do you place it?BeginnerWhat is the difference between a site-to-site VPN and a client VPN?Beginner