IPv4 HTTPS enters a web subnet from other subnets in the same VPC. Its NACL has inbound rule 100 allowing TCP 443 from 0.0.0.0/0; outbound has only the default * Deny.
Deny HTTPS from 10.20.10.0/24 while permitting requests and replies for 10.20.20.0/24. Clients are configured to use source ephemeral ports 32768-60999; routes, other NACLs, SGs, and listeners are verified.
Which rules should be added to the web subnet NACL?
Place Deny before the broad inbound Allow and permit valid reply destination ports outbound.
Detailed explanation
NACLs are stateless; inbound permission does not automatically permit the reverse direction. A separate outbound Allow is required.
Server replies originate from 443 but target client ephemeral ports. Permitting outbound destination 443 alone does not allow the necessary replies.
The existing rule 100 matches first, so rule 110 is not evaluated. NACLs do not use the last matching rule.
The Deny precedes the existing Allow. HTTPS replies target client ephemeral ports, so permit those destination ports outbound.
Check official documentation
Compare the following points with the official documentation.
On approved clients in other subnets, verify the configured ephemeral range. Inspect the web subnet NACL association, rules 90 and 100, directions, and destination ports. Compare new HTTPS connections from denied and allowed clients.
Official references
What to confirm
TCP 443 from the denied range is blocked; allowed clients complete HTTPS requests and responses. Match ephemeral ports to actual client configuration, without treating 32768-60999 as a universal OS default.
Key points
- Network ACL
- Rule number
- Ephemeral port
Notes
- Environment: Official VPC documentation and approved clients and web subnet with known source port configuration
- Reviewed against the linked AWS documentation on 2026-10-15.
Foundation review
Use the lowest-numbered first match
NACL evaluation stops at the first matching rule in ascending order. Deny at 90 before the broad Allow at 100. A later Deny at 110 cannot cancel a decision already made at 100.
Check reply destination and direction
HTTPS replies originate at server port 443 and target client ephemeral ports. Permit outbound destinations 32768-60999 here. This is the verified range for this scenario, not a value to apply unconditionally to other operating systems or NAT clients.
Separate NACL and SG state handling
NACLs require independent inbound and outbound permissions. Rules apply at the associated subnet boundary; testing only within one subnet does not verify that boundary. SG response permissions do not replace required NACL rules.