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.