A SysOps administrator is managing a high-throughput TCP service deployed on Amazon EC2 instances. The instances are registered by instance ID to a target group associated with a Network Load Balancer (NLB) in the `eu-west-1` region. To comply with strict security standards, the target security group is configured to only allow inbound TCP port traffic from a specific customer on-premises CIDR block (). While the customer can establish direct connections to individual instances during maintenance windows, all attempts to connect through the NLB fail, and the NLB target group reports the instances as unhealthy. What action must the administrator take to resolve the health check failure and restore connectivity through the NLB?
- AAdd an inbound rule to the target instances' security group that allows TCP port traffic from the public Elastic IP addresses allocated to the NLB.
- Add an inbound rule to the target instances' security group that allows TCP port traffic from the VPC subnets where the Network Load Balancer (NLB) is deployed.Cevap
- CConfigure the target group to use port for HTTP health checks instead of port , and update the EC2 instance web server configuration to listen on port .
- DModify the target group settings to disable client IP preservation, and configure the target instances' security group to allow inbound traffic from the Amazon Route 53 health check IP ranges.
Cevap
Add an inbound rule to the target instances' security group that allows TCP port traffic from the VPC subnets where the Network Load Balancer (NLB) is deployed.
The correct answer is to allow inbound TCP traffic on port from the subnets where the Network Load Balancer (NLB) is deployed. When targets are registered by instance ID, the NLB preserves the client source IP for routing actual traffic, meaning the EC2 instances see the client's IP () as the source. However, health check requests from the NLB always originate from the private IP addresses of the NLB nodes themselves. If the target security group only permits traffic from the client CIDR, the NLB's health checks will be blocked, causing the target group to mark them as unhealthy. Allowing traffic from the NLB's subnets resolves this issue.
Adım Adım Çözüm
Anahtar Kavram
NLB target security group and health check source IP behavior under client IP preservation.
Tahmini Süre:3m 0s