Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

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 →

  1. Check inbound rule for the service port and the outbound rule for ephemeral ports 1024-65535 (and vice versa for client connections)
  2. Check rule numbers: a lower-numbered deny overrides a later allow
  3. The default NACL allows everything, a custom one denies everything by default
  4. Use VPC Flow Logs to see REJECT with the NACL's subnet ENI
  5. 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.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN