Solution:
Root Cause: Subnet Network ACL (NACL) Blocking Stateless Traffic or Return Ephemeral Ports
Unlike stateful Security Groups, Network ACLs are stateless. If an Inbound NACL rule permits port 22/80 traffic, but the Outbound NACL rule blocks ephemeral response ports (1024-65535), return packets are dropped.
Step-by-Step Fix:
1Inspect Subnet Network ACL:
VPC Console -> Subnets -> Select Instance Subnet -> Network ACL tab.2Configure Inbound NACL Rules:
Rule #100: Type SSH (22) (or HTTP/HTTPS), Protocol TCP, Action ALLOW, Source 0.0.0.0/0.3Configure Ephemeral Outbound NACL Rules (Required for Stateless Return Traffic):
Rule #100: Type Custom TCP, Port Range 1024-65535, Action ALLOW, Destination 0.0.0.0/0.*Note:* Ephemeral outbound ports are mandatory for client TCP handshakes to resolve.