Skip to content

NAT Gateway

#14 · Level 1 · Core services · Networking basics

A NAT Gateway lets servers in a private subnet go out to the internet, but doesn’t let anyone from outside come in. NAT means Network Address Translation — it replaces the inside server’s private IP with its own IP when talking to the outside. A regular (zonal) NAT Gateway is placed in a public subnet in one AZ, and goes out through the Internet Gateway. A newer Regional NAT Gateway is attached to the whole VPC instead; it needs no public subnet and spreads across AZs on its own. The private subnet’s Route Table needs a route to the NAT Gateway. It is an AWS managed service, so AWS takes care of its maintenance.

An office errand runner. When staff inside want something brought from outside, they send the errand runner. But nobody outside can get into the office through the errand runner.

Databases and backend servers need to stay private. But sometimes they also need the internet, for example to download software updates.

It is placed in a public subnet (or created for the whole VPC in Regional mode), and a private subnet’s Route Table points the way to it.

Internet Gateway · Subnet

For details and the latest information, see the official documentation: