Google Cloud · Networking
Cloud NAT
Managed network address translation so VMs and GKE nodes without external IPs can reach the internet, without accepting inbound connections.
On the Google Cloud Associate Cloud Engineer exam listPrivate connectivity
What it is and what problem it solves
Cloud NAT is configured on a Cloud Router in a region and translates outbound connections from private VMs, GKE nodes and serverless VPC egress to NAT IP addresses. It's software-defined (no NAT instances to run), allocates source ports per VM (statically or dynamically), and never allows unsolicited inbound connections.
When to use it
- Private VMs and GKE nodes needing outbound internet access (package repositories, partner APIs).
- Fixed egress IPs for partner allow-lists.
When to avoid it
- Reaching Google APIs: use Private Google Access or Private Service Connect, which are cheaper and avoid NAT ports.
- Inbound access to services: use a load balancer.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| Default minimum ports per VM (static allocation) | 64 Can be raised with a quota request |
Dynamic port allocation lets busy VMs use more. | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
- NAT gateway per hour, per VM using it (up to a cap).
- Data processed per GB, plus external IP addresses.
Where it is cost-efficient
Moderate outbound traffic to third parties.
Where costs grow
Large data transfers through NAT, especially to Google APIs that could use Private Google Access.
Cost controls and common surprises
Enable Private Google Access, monitor processed bytes, and avoid pulling large artifacts through NAT repeatedly.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Outbound-only translation; no inbound exposure for private instances.
What you configure
Use manual NAT IPs when partners allow-list them and log translations when investigating.
Exam cues and common confusions
- Private instances need outbound internet: Cloud NAT on a Cloud Router.
- Dropped connections under load: port exhaustion; enable dynamic port allocation or add NAT IPs.
Related
Courses and lessons
- Private Nodes That Dropped Connections · Google Cloud in Production · Members
Services, comparisons and patterns
- Virtual Private Cloud (VPC) · Service
- Compute Engine · Service
- Google Kubernetes Engine (GKE) · Service
Sources
Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.