AWS NAT Instance And Configuration

March 29, 2021 / Nirav Shah

You can use a NAT instance in a public subnet in your VPC to enable instance in the private subnet to initiate outbound IPv4 traffic to the internet or other AWS services. But prevent the instance from receiving inbound traffic initiated by someone on the internet.

NAT is not supported for IPv4 traffic use on egress only internet gateway.

Step 1: Create VPC (VPC1)

AWS NAT instance configuration guide

Step 2: Create a public subnet using the VPC.

NAT instance AWS VPC setup

Step 3: Create a private subnet using the VPC.

AWS NAT instance private subnet internet access

Step 4: Create the internet gateway and attach to the newly created VPC (VPC1)

Configure NAT instance AWS network

Step 5: Create the routeing table.

AWS NAT instance configuration

Step 6: Edit the route table and attache IG to it.

AWS NAT instance configuration
AWS NAT instance configuration

Step 7: Edit the subnet associations and select public subnet.

AWS NAT instance configuration
AWS NAT instance configuration

Step 8: Launch NAT instance.

AWS NAT instance configuration

Step 9: Select your VPC and public subnet.

AWS NAT instance configuration

Step 10: Select the default option.

AWS NAT instance configuration

Step 11: Launch one Linux instance.

AWS NAT instance configuration

Step 12: Select the private subnet.

AWS NAT instance configuration

Step 13: Now connect the NAT instance and try to access the internet. You are able to access it. Create a .pem file and provide the necessary permissions. And now can have the access to the private Linux instance.

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let’s Talk About Your Needed AWS Infrastructure Management Services

    Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project