IPv4 clients in another subnet connect to TCP 443 on an EC2 HTTPS service from 198.51.100.0/24. Routes and host permissions are configured. Client source ports are 49152-65535 for this scenario.
One security group is associated with the EC2 ENI. It allows TCP 443 ingress from 198.51.100.0/24 and has no egress rules.
The subnet NACL has inbound rule 90 denying TCP 443 from 198.51.100.25/32, rule 100 allowing TCP 443 from 198.51.100.0/24, then default Deny. Its outbound rules currently contain only default Deny.
Choose TWO correct statements or changes to enable HTTPS for clients other than 198.51.100.25.
Separate security-group response tracking from directional NACL permissions. Allow outbound responses to the client port range in the NACL and keep the specific inbound Deny at a lower rule number than the broad Allow.
Detailed explanation
A NACL does not automatically allow replies. Responses target the client ports specified in this scenario. Keep inbound Deny rule 90.
A NACL applies the first matching rule in ascending number order. A match at Allow rule 100 does not proceed to rule 200; put the specific Deny first.
443 is the server listening port. Replies target the clients on 49152-65535; distinguish source and destination ports.
Security groups contain Allow rules, not explicit Deny rules. Their settings also cannot override an outbound NACL rejection.
Security groups are stateful. Replies to allowed inbound connections do not need the same egress permission as new outbound connections, but the NACL must permit them separately.
Check official documentation
Compare the following points with the official documentation.
Compare official documentation with the ENI security group, subnet NACL association, inbound rule numbers and CIDRs on destination port 443, and outbound client destinations on 49152-65535. In an authorized environment compare new connections from permitted and denied clients and check return traffic.
Official references
- Official documentation 1
- Official documentation 2
- Official documentation 3
- Official documentation 4
- Official documentation 5
- Official documentation 6
- Official documentation 7
What to confirm
Permitted clients connect to TCP 443 and receive responses; new connections from 198.51.100.25 are denied. Stateful security groups do not remove the need for outbound NACL permission. Do not assume a security-group rule change immediately terminates tracked connections.
Key points
- Security group
- Network ACL
- Stateful
- Stateless
Notes
- Environment: Official VPC and EC2 documentation review; optional new-connection and response comparisons in an authorized environment.
- Confirm current AWS service behavior and security guidance in the official documentation.
Foundation review
Check where each control applies
Security groups attach to resources such as ENIs; NACLs attach to subnets. A NACL evaluates traffic entering or leaving a subnet, not traffic routed entirely within that same subnet.
Check the response destination port
The HTTPS request targets server port 443, while its reply targets a client port. NACLs need permission in both directions. The 49152-65535 range is a scenario assumption, not a universal constant for every client.
Distinguish Deny rules from evaluation order
Security groups have no explicit Deny. A NACL uses the first match in ascending rule-number order. Tracked connections can survive a security-group rule change, so new-connection permission is different from immediate termination of existing connections.