-1

I has setup my AWS with VPC NAT gateway, subnet, Route Table as below diagram http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html

The different is my private subnet are create EC2 instance instead of Database Servers.

My problem is the EC2 instance in private subnet are failed to connnect to internet using NAT.

FYI, the EC2 instance in public subnet are able to connect internet using the instance EIP. Mean internet in public subnet working fine.

Please Help. Thanks

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • Have you gone through these troubleshooting steps in that page you linked to? http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html#nat-gateway-troubleshooting-no-internet-connection – Karen B Jun 26 '16 at 16:17

3 Answers3

0

Make sure you disabled source/dest check on the NAT instance ('action' menu - 'networking')

Putnik
  • 5,925
  • 7
  • 38
  • 58
0

Verify if

1) Nat Gateway is created inside a public subnet.

2) Route tables of the private subnet/s is configured properly.

Mohammad Ghonaim
  • 385
  • 2
  • 10
0
  • Check that the NAT gateway is in 'available' state.

  • Check that the route tables are configured correctly. NAT gateway must be in public subnet with a route that directs all internet traffic (i.e. 0.0.0.0/0) to internet gateway. Your private EC2 instance must be in private subnet with a route that directs all internet traffic (i.e. 0.0.0.0/0) to NAT gateway.

  • Check that the security groups for the private EC2 instance allows HTTP/HTTPS outbound internet traffic (0.0.0.0/0). if you are using PING, then also check ICMP is allowed (in addition to HTTP and HTTPS).