NAT Gateway Overview
What you'll learn: Discover how managed NAT gateway services give your private cloud resources secure, reliable outbound internet access.
What is a NAT Gateway?
A NAT Gateway is a fully managed cloud service that handles Network Address Translation for you. It allows resources in private subnets (like backend servers or databases) to initiate outbound connections to the internet while remaining unreachable from the outside.
Think of it like a helpful receptionist at a private office building. Employees (private resources) can call out through the receptionist's phone line, but external callers can't reach employees directly—they only see the receptionist's number.
Why Use a Managed NAT Gateway?
Remember from "NAT Fundamentals" that you need NAT to let private instances access the internet. While you could set up your own NAT instance (just another virtual machine doing NAT), a managed NAT gateway offers major advantages:
- High availability: Cloud providers handle redundancy automatically
- Scalable bandwidth: Automatically adjusts to your traffic needs
- No maintenance: No patching, updating, or instance failures to worry about
- Better performance: Purpose-built for NAT operations
How It Works
You deploy a NAT gateway in a public subnet (one with an internet gateway route). Then you update the route table for your private subnets to send outbound internet traffic (0.0.0.0/0) to the NAT gateway. The gateway translates private IP addresses to its own public IP for outbound requests, then routes responses back correctly.
Key Takeaway: NAT gateways are managed services that provide reliable, scalable outbound internet connectivity for private subnet resources without exposing them to inbound internet traffic.