This repository provides utilities for setting up and managing NAT(Network Address Translation) instances on Amazon EC2. The tools are designed for use with Amazon Linux 2023 or Amazon Linux 2.
- An EC2 instance running Amazon Linux 2023 or Amazon Linux 2.
- The instance should be launched in a public subnet of your VPC.
You can run this script directly in your EC2 instance using curl:
curl -sSL https://raw.githubusercontent.com/nbsp1221/aws-nat-instance-utils/main/setup.sh | sudo bash
After running the script:
- Ensure 'Source/Destination Check' is disabled on the EC2 instance.
- Update your VPC route tables to direct traffic through this NAT instance.