Classic one: a web server's security group allows inbound 443 from anywhere and its subnet's NACL allows inbound 443, yet clients' TLS handshakes hang and never complete. What is missing?
- A route to the NAT gateway. Inbound public traffic uses the internet gateway route; NAT is outbound.
- An inbound security group rule for port 80. The handshake on 443 is what fails; 80 is irrelevant.
- An outbound security group rule for 443. Security groups are stateful; replies are allowed without an outbound rule.
- An outbound NACL rule allowing TCP 1024–65535 (ephemeral ports): NACLs are stateless, so the SYN-ACK to the client's ephemeral port is dropped. Security groups would have allowed the reply automatically; NACLs need the return path spelled out.
Add an outbound NACL rule for ports 1024–65535; NACLs are stateless, so the reply to the client is dropped without it.
Stateless versus stateful is the whole question. NACLs see each packet alone, so the reply to a client on port 51234 needs an outbound allow for ephemeral ports; forgetting it produces a SYN that is accepted and a SYN-ACK that vanishes.
Adding an outbound security group rule, or a rule for a different port. Security groups already allow the reply because they are stateful; the missing piece is the NACL's outbound allow for the ephemeral range 1024–65535, plus the mirror image for outbound-initiated traffic.