Interview Prep/AWS/VPC and Networking

Why do NACLs need ephemeral port rules?

IntermediateConceptVPC and Networking
Answer

NACLs are stateless, so return traffic is evaluated as a new flow. A client connecting to port 443 receives replies on a random ephemeral port (1024–65535 for most Linux and Windows; 49152–65535 per IANA). You must allow outbound ephemeral ports on the server subnet and inbound ephemeral ports on the client subnet.

Forgetting this is the classic reason a "working" SG setup breaks after someone tightens the NACL.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking