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.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner