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

You hit "RulesPerSecurityGroupLimitExceeded". What are your options?

IntermediateScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → Default 60 inbound and 60 outbound rules per SG, and 5 SGs per ENI.

What I'd do →

  1. Replace many CIDR rules with a managed prefix list, which counts as one rule by default (aws ec2 create-managed-prefix-list)
  2. Reference security groups instead of CIDRs
  3. Split rules across several SGs attached to the same ENI
  4. Request a quota increase, noting that rules x groups per ENI has a ceiling
  5. Clean unused rules with an audit script

Why → Prefix lists collapse hundreds of CIDRs into one reusable object.

Interview tip → Mention prefix lists are shareable across accounts with RAM.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN