简体   繁体   中英

Unable to Reach Internet from Private Ec2 with NAT Gateway

I am unable to ping google.com from my private EC2 instance in my AWS VPC.

I have a bastion set up in front of the private instance, and am connecting to it via guacamole. But once I login and run ping google.com , it hangs.

在此处输入图像描述

My security group inbound / outbound rules for the bastion look like:

在此处输入图像描述

And here are the inbound / outbound rules for the private instance:

在此处输入图像描述

My Network ACLs are wide open. I have a private route table that points to the Network Gateway for any destination. I also have a public route table that points to the Inte.net Gateway for any destination. What am I missing? Why can't I ping google from my private EC2 instance?

I accidentally associated my private su.net with my public route table. After I changed the association to the private route table with the nat gateway, it worked!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM