A SysOps Administrator is troubleshooting network connectivity between two private subnets in a VPC. Application servers are located in Subnet A () and need to perform secure directory lookups on an LDAP server located in Subnet B () over TCP port .
Both subnets are associated with custom Network Access Control Lists (NACLs). The security groups associated with the application servers and the LDAP server are already configured to allow the required traffic. However, the directory lookups are currently failing.
Which two changes should the SysOps Administrator make to the NACLs to resolve this issue? (Select two.)
- In the Subnet A NACL, add an inbound rule that allows TCP traffic from Subnet B () on destination ports .Answer
- In the Subnet B NACL, add an outbound rule that allows TCP traffic to Subnet A () on destination ports .Answer
- CIn the Subnet B NACL, add an outbound rule that allows TCP traffic to Subnet A () on destination port .
- DIn the Subnet A NACL, add an inbound rule that allows TCP traffic from Subnet B () on destination port .
- EIn the security group associated with the LDAP server, add an outbound rule that allows TCP traffic to Subnet A () on destination ports .
Answer
In the Subnet A NACL, add an inbound rule that allows TCP traffic from Subnet B on destination ports , and in the Subnet B NACL, add an outbound rule that allows TCP traffic to Subnet A on destination ports .
Because Network Access Control Lists (NACLs) are stateless, separate rules must be defined for request and response traffic. When a client in Subnet A initiates an LDAP request to Subnet B on TCP port , the client uses a random port in the ephemeral range () as its source port. The LDAP server's response will therefore be sent from source port to destination ports . To allow this return traffic, the Subnet B NACL must have an outbound rule allowing TCP traffic to the Subnet A CIDR range on destination ports , and the Subnet A NACL must have an inbound rule allowing TCP traffic from the Subnet B CIDR range on destination ports .
Step-by-Step Solution
Key Concept
Because Network Access Control Lists (NACLs) are stateless, return traffic to client ephemeral ports () must be explicitly permitted in both inbound and outbound rules.
Estimated Time:1m 30s