Lab 11 1 NAT Gateways Instance - nicolas-tullio/Tech-Journal GitHub Wiki

Deliverables

Screenshot of your PrivateSubnet RouteTable showing it is using the NAT Instance

image

Screenshot of a successful ping of 8.8.8.8 from your Private Instance

image

Screenshot of successful nc install on Private Instance (just running nc and getting the error is fine)

image

Steps

Setting up NAT Gateway Instance

Go to VPC > NAT gateways > Create NAT Gateway

  • Make sure it is on the VPC and Public subnet created in Lab 10
  • Also tell it to assign a Public IP
  • Click create

image

image

Updating Private Subnet Routing Table to use NAT Gateway

Navigate to Route tables > PrivateRouteTable

image

Specify the following values

  • Destination: 0.0.0.0/0
  • Target: Select Instance from the dropdown menu to select the NAT Instance id #
  • Click on Save routes

image

Your Private Subnet Route should now look something like:

image

  • Now the Instances launched within PrivateSubnet will have access to the Internet through the NAT Instance

Validate NAT Instance

SSH into your Public Instance from last week

Then, from that Public Instance ssh into your Private Instance

image

Your Private Instance should be able to ping 8.8.8.8

image

Your Private Instance should be able to "sudo yum install nc" to install netcat from an Internet repo

image