A SysOps Administrator is configuring a custom Network Access Control List (NACL) for a private subnet that hosts a fleet of Amazon EC2 instances. These instances must download security patches from an external repository over HTTPS (TCP port 443) via a NAT gateway. The security group associated with the instances permits all outbound traffic.
The private subnet's custom NACL has the following rules:
- Outbound: Rule 100 allows TCP port 443 to .
- Inbound: Rule 100 allows TCP port 443 from .
All other traffic is denied by the default rules. The instances are currently unable to download the patches.
Which configuration change will resolve this connectivity issue?
- Add an inbound rule to the custom NACL allowing TCP traffic on ports 1024-65535 from .Cevap
- BAdd an inbound rule to the security group allowing TCP traffic on ports 1024-65535 from .
- CAdd an outbound rule to the custom NACL allowing TCP traffic on ports 1024-65535 to .
- DModify the private subnet's route table to route outbound traffic () directly to the Internet Gateway.
Cevap
Add an inbound rule to the custom NACL allowing TCP traffic on ports 1024-65535 from the internet.
Because Network Access Control Lists (NACLs) are stateless, return traffic must be explicitly allowed. When an EC2 instance initiates a connection to an external repository over HTTPS (TCP port 443), the return traffic from the repository is sent to the instance's ephemeral port range (1024-65535). Therefore, an inbound NACL rule must be configured to allow TCP traffic on ports 1024-65535.
Adım Adım Çözüm
Anahtar Kavram
Statelessness of Network Access Control Lists (NACLs) and the requirement of ephemeral ports for return traffic.