Connecting to instance in private subnet through Network Load Balancer

0

I have a NLB in public subnet with a static ip address and an EC2 instance in private subnet. Connection to EC2 is not working for TCP protocol on port 6000. I have a NAT gateway in public subnet and route table of private subnet is pointing to 0.0.0.0/0 and NAT gateway. EC2 security group, inbound connection is open for 0.0.0.0/0 on port 6000. NACL for both subnets allows inbound and outbound connections. Route table of public subnet has an IGW. What might be missing in the configuration to make it work?

Sachin
已提問 1 年前檢視次數 512 次
2 個答案
0

Does the route table for the private subnet have a default rule of <VPC-CIDR>->Local? If not, you should add that back.

profile pictureAWS
專家
kentrad
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南