Interview Prep/Networking/NAT, Firewalls & VPN

How does an AWS NAT gateway work, and what are its limits?

AdvancedConceptNAT, Firewalls & VPN
Answer

It sits in a public subnet with an Elastic IP; private subnets route 0.0.0.0/0 to it. It performs PAT and supports up to 55,000 simultaneous connections to a single destination IP:port, scaling bandwidth to 100 Gbps automatically.

It is zonal, so use one per AZ to avoid cross-AZ charges and failure coupling. Errors like ErrorPortAllocation in CloudWatch mean you exhausted ports to one destination.

All Networking questions Roadmap: Networking for DevOps

More on NAT, Firewalls & VPN