A SysOps Administrator is hosting a public website on an Amazon EC2 instance within a VPC. The instance is in a subnet with an associated route table that has a default route () pointing to an Internet Gateway. The Security Group attached to the instance allows inbound TCP port traffic from all sources () and allows all outbound traffic. The Administrator associates a custom Network Access Control List (NACL) with the subnet. The NACL allows inbound TCP port traffic from all sources () and outbound TCP port traffic to all destinations (). Users report that they cannot connect to the website. Which of the following is the most likely cause of this issue?
- AThe Security Group associated with the EC2 instance must be updated to allow outbound traffic to ephemeral ports (-) of the clients.
- BThe route table associated with the subnet is missing a route for targeting the Internet Gateway.
- The custom NACL outbound rules do not allow return traffic to the ephemeral port range (-) of the clients.Cevap
- DThe subnet lacks a VPC Gateway Endpoint route configuration to direct return traffic to the clients.
Cevap
The custom NACL outbound rules do not allow return traffic to the ephemeral port range (-) of the clients.
The correct answer is correct because Network Access Control Lists (NACLs) are stateless. When a client initiates a connection to a web server, the source port on the client is an ephemeral port (typically -). Although the NACL allows inbound traffic on port and outbound traffic on port , the outbound response from the server is sent to the client's ephemeral port. Because the custom NACL does not have an outbound rule allowing traffic to the ephemeral port range, the return traffic is dropped.
Adım Adım Çözüm
Anahtar Kavram
Stateless firewalls (NACLs) require explicit outbound rules for ephemeral ports to allow return traffic, whereas stateful firewalls (Security Groups) track connection states automatically.
Tahmini Süre:1m 30s