Monday, 15 April 2024

This lab is similar to lab-003 but instead of using a Nat gateway you are asked to use a Nat instance.

 

Architecture Diagram

lab-004-arch-01

Overview

As mentioned before, this lab is very similar to lab-003 except that you will create a Nat instance instead of a Nat gateway. To do just that, when you create the EC2 instance in the public subnet (the one labeled B), make sure to choose an AMI that comes with pre-installed NAT software.

Step 1 - Run Lab-002

Repeat all of the steps described in lab-002, making sure that any references to lab-002 are replaced by lab-004. The security group for the instance in the private subnet (the one labeled B) must have an inbound rule that enables not only SSH but also HTTP traffic. For the EC2 instance in the public subnet (the one labeled A), follow the specific instructions described in the next step.

Step 2 - Launch an EC2 Instance with NAT Software

Search the community AMIs for one with NAT software pre-installed. After the instance is launched, make sure to enable port forwarding by disabling source/destination check.

lab-004-scrn-01 lab-004-scrn-02 lab-004-scrn-03

Step 3 - Create a Route Table

Create a new route table with the Name tag private and with a default route to the NAT instance created in step 2.

Step 4 - Associate the Route Table to the Private Subnet

Associate the newly created route table to the private subnet.

No comments:

Post a Comment