I have a public and a private instance in my AWS VPC.
I created a NAT gateway in my public subnet. The route table that is associated with the private subnet (of the private instance), has a route with destination 0.0.0.0/0
and target to the NAT.
So far I validated that everything works, besides that the private instance has internet connection.
How can I do that?
I tried to ping his private iP address (of the private instance), but I guess it shouldn't work. I need to connect to the private instance somehow, and then ping www.google.com
to check for internet connection.
How do I connect to the private instance?
through Putty from the public instance, if I ssh into the private instance, and then ping google.com
and the packets are indeed being sent - This means the NAT is working?