Cloud NAT in Google Cloud: Letting Private Machines Reach Out Without Opening the Front Door

Cloud NAT in Google Cloud: Letting Private Machines Reach Out Without Opening the Front Door

A beginner-friendly guide to how Cloud NAT gives private resources safe outbound internet access, how addresses and ports are shared, and how to design, monitor and troubleshoot it.

Imagine a large office building where hundreds of employees need to make phone calls to customers all over the world. The company does not give each employee a public phone number, because that would let any stranger dial any desk. Instead, all outgoing calls pass through a central switchboard. The person on the other end sees only the company’s main number, and if they call back, the switchboard connects them to the right employee who made the original call. Strangers who simply dial the main number out of the blue are politely turned away. Cloud NAT is that switchboard for your cloud resources: it lets private machines call out to the internet while keeping them invisible and unreachable from the outside.

1First, Some Networking Basics

A few simple ideas make Cloud NAT easy to understand.

IP addresses: public and private

Every device on a network has an address, called an IP address, that lets others send data to it. A public address can be reached by anyone on the internet. A private address is meant only for use inside an organization’s own network, and the internet does not know how to deliver traffic to it directly. Your home devices use private addresses, and your home router uses one public address for all of them together.

Why not give everything a public address?

There are two big reasons. First, public addresses are limited and cost money. Second, a machine with a public address is a machine that attackers can try to reach. Automated scanners across the internet constantly probe public addresses looking for weak spots. Keeping machines private removes that exposure completely.

The catch: private machines still need the outside world

Even a locked-down private server often needs to reach out. It may need to download security updates, fetch software packages, call a payment provider’s service, send an email through an external service, or talk to a partner’s application. A private address alone cannot do this, because replies need somewhere public to come back to.

What NAT does

NAT stands for Network Address Translation. A NAT device sits between your private machines and the internet. When a private machine sends a request out, NAT swaps the private source address for one of its own public addresses, remembers who asked, and sends the request on. When the reply comes back, NAT looks up its memory, swaps the address back, and hands the reply to the right private machine.

Simple Analogy

Think of a hotel front desk. Guests make calls from their rooms, but the outside world sees only the hotel’s main number. When someone calls back asking for “the guest who just called,” the front desk knows which room to connect. Random callers who ask for a guest who never called out are not connected.

2So, What Is Cloud NAT?

A fully managed, software-defined NAT service built into Google Cloud’s network.

Cloud NAT is Google Cloud’s managed network address translation service. It lets virtual machines, container clusters and certain serverless workloads that have no external IP address make outbound connections to the internet, and receive the responses to those connections. It does not let the internet start new connections to those machines. That one-way-in-spirit behavior is what makes it a strong security tool.

The most important design point is that Cloud NAT is not a virtual machine that you run. In many traditional setups, teams create a special NAT server, which becomes a bottleneck, a single point of failure and a machine that must be patched and monitored. Cloud NAT is instead built into Google’s software-defined networking layer. Translation happens as traffic leaves the host machine, so there is no middle machine to slow things down or break, and it scales along with your workloads.

i
Key Idea

Cloud NAT is a configuration, not a server. You describe which subnets should use it and which public addresses it should present to the world, and Google’s network does the translation for you across every region machine automatically.

!
Common Misconception

Cloud NAT is not a firewall and it does not accept incoming connections for your servers. If you need to publish a service to the internet, you use a load balancer or an external address with firewall rules. Cloud NAT is strictly for outbound-initiated traffic and its replies.

0
NAT servers you need to build or patch
Regional
Each gateway serves one region of one VPC network
Outbound
Designed for connections your resources start

3Core Building Blocks You Must Know

A short dictionary of Cloud NAT words.

Term 1

NAT Gateway

The Cloud NAT configuration object. It defines which subnets are served and which public addresses are used. It is not a machine.

Term 2

Cloud Router

The managed control component that a NAT gateway is attached to. Here it holds the NAT configuration for a region of a VPC network.

Term 3

NAT IP Address

A public address the gateway presents to the internet on behalf of your private machines. It can be allocated automatically or reserved by you.

Term 4

Port

A number that identifies one connection on an address. Many private machines share one public address by using different ports.

Term 5

NAT Mapping

The remembered link between a private machine’s connection and the public address and port used for it.

Term 6

Port Allocation

The pool of ports each machine is given so it can open several connections at once.

Term 7

Idle Timeout

How long an unused mapping is kept before it is forgotten and its port freed for others.

Term 8

Public NAT and Private NAT

Public NAT translates to internet-routable addresses. Private NAT translates between private networks that cannot otherwise talk, such as overlapping ranges.

4How Cloud NAT Works Behind the Scenes

Following one connection from start to finish.

Suppose a private virtual machine wants to download a software update from a public website. The machine has only an internal address. It sends its request toward the internet. Because there is no external address on the machine, the request is handled by the network layer, which sees that a Cloud NAT gateway applies to this machine’s subnet. The network then translates the source address from the machine’s private address to one of the gateway’s public addresses, and assigns a source port from the block of ports reserved for this machine. The request travels to the website, which sees only the public address.

The website replies to that public address and port. Google’s network recognizes the reply as belonging to an existing mapping, translates the destination back to the machine’s private address, and delivers it. If someone on the internet instead tries to start a brand-new connection to the public NAT address, there is no matching mapping, so the traffic is dropped. That is the security benefit.

sequenceDiagram
    participant VM as Private VM
    participant NAT as Cloud NAT
    participant WEB as Public Website
    VM->>NAT: Request from private address, source port 40001
    NAT->>NAT: Swap to public NAT address and an allocated port, store mapping
    NAT->>WEB: Request from public address
    WEB-->>NAT: Reply to public address and port
    NAT->>NAT: Find mapping, swap back to private address
    NAT-->>VM: Reply delivered
    WEB-xNAT: Unsolicited new connection attempt is dropped
        
FIG 1 — The life of one outbound connection through Cloud NAT, and why unsolicited inbound traffic fails
Simple Analogy

Imagine sending mail from a large apartment building using only the building’s street address plus a unique reference number on each envelope. The post office replies to that address with the same reference number, and the building’s mailroom uses the number to find the right apartment. A letter with a made-up reference number simply gets returned.

One address, many connections: the role of ports

A single public address has tens of thousands of usable ports, and each active connection to a particular destination needs its own. Cloud NAT divides the available ports among the machines it serves, so that many private machines can safely share a small number of public addresses. More addresses mean more total ports, and therefore more simultaneous connections.

5What Can Use Cloud NAT?

The kinds of workloads that benefit from private outbound access.

Virtual machines

Compute Engine instances with no external address can download updates, call external services and reach partner systems through the gateway.

Container clusters

Nodes and pods in private Google Kubernetes Engine clusters need outbound access to pull images from public registries or call outside services. Cloud NAT provides it without exposing nodes.

Serverless workloads

Serverless services such as Cloud Run and Cloud Functions can send their outbound traffic through a VPC network, using a connector or direct network egress, and then through Cloud NAT. This gives them a stable set of public addresses.

Managed notebook and batch environments

Data science and batch processing machines in private subnets often need to install libraries from public sources. Cloud NAT lets them do so safely.

!
Important Exception

A virtual machine that already has its own external IP address uses that address directly for internet traffic and does not need Cloud NAT. Cloud NAT is for resources without external addresses.

6Cloud NAT and Private Google Access: Two Different Doors

Beginners often mix these up, so let us separate them clearly.

Private Google Access lets resources without external addresses reach Google APIs and services, such as storage and data tools, using Google’s internal paths. Cloud NAT lets those same resources reach the general internet, such as public websites and third-party services. They solve different problems and are often used together.

QuestionPrivate Google AccessCloud NAT
What can be reached?Google APIs and servicesThe general internet, including third-party services
Does it use public addresses?No, traffic stays on Google’s network pathsYes, your NAT addresses appear to the outside
Where is it enabled?Per subnetPer gateway, for chosen subnets
Typical exampleReading a file from a storage bucketDownloading a package from a public website
Simple Analogy

Private Google Access is a private staff corridor connecting your office to Google’s own warehouse next door. Cloud NAT is the front-door courier service that carries your parcels to any other address in the city. A well-run office uses the corridor whenever it can, and the courier only when it must.

i
Cost and Safety Tip

Enable Private Google Access on your subnets so traffic to Google services does not need to leave through NAT. It keeps that traffic on private paths and avoids unnecessary load on your NAT addresses.

7Choosing NAT IP Addresses: Automatic or Manual

The public faces your private machines wear when they go out.

Automatic allocation

With automatic allocation, Google picks and manages public addresses for the gateway and adds more when more ports are needed. This is the simplest option, and it scales without attention. The downside is that the specific addresses can change over time, so you cannot reliably give them to partners for allow-listing.

Manual allocation

With manual allocation, you reserve static external addresses in advance and assign them to the gateway. The outside world always sees the same, known addresses. This is the right choice whenever a partner, bank or software vendor requires you to supply fixed addresses to allow your traffic through their firewall. You must plan how many addresses you need, because the gateway can only use what you gave it.

FeatureAutomaticManual
Who manages addressesGoogleYou
Addresses stay the sameNot guaranteedYes, until you change them
Good for allow-listingNoYes
ScalingAutomaticYou must add addresses as needed
EffortLowModerate
Simple Analogy

Automatic allocation is like using a taxi company that sends whichever car is free. Manual allocation is like owning a fleet with fixed license plates, so a gated community can put your plates on its approved list.

i
Practical Tip

If any external party needs to allow-list you, choose manual allocation from day one. Switching later means telling every partner about new addresses, which takes time and coordination.

8Ports, Port Allocation and Running Out of Ports

The most common technical issue with any NAT service, explained gently.

Each connection from a private machine to a particular destination uses one source port on a NAT address. If a machine opens many connections to the same destination at the same time, it can use up its share of ports. When that happens, new connections fail until some free up, a situation called port exhaustion. Users may see timeouts or intermittent errors even though the network looks perfectly healthy.

How ports are shared

Cloud NAT reserves a block of ports for each machine that uses the gateway. You can set a minimum number of ports per machine. A higher minimum gives each machine more room, but means a given public address can serve fewer machines. Cloud NAT also offers dynamic port allocation, which starts each machine with a small number of ports and automatically increases it when the machine needs more, up to a limit you choose, and returns ports when demand falls. This balances efficiency with headroom.

Why destinations matter

Ports are tracked in combination with the destination. A machine can reuse the same source port for connections to different destinations, which means the real demand depends on how many simultaneous connections go to the same place. Chatty applications that talk heavily to a single external service are the most likely to exhaust their ports.

flowchart TD
    A[Machine opens many connections] --> B{Free ports left in its block?}
    B -->|Yes| C[Connection succeeds]
    B -->|No, dynamic allocation on| D[Gateway grants more ports up to the maximum]
    D --> C
    B -->|No, limit reached| E[New connections dropped - port exhaustion]
    E --> F[Fix: more ports per machine, more NAT addresses, or fewer simultaneous connections]
        
FIG 2 — What happens as a machine uses up its ports, and the ways to fix exhaustion
Simple Analogy

Imagine a call center with a fixed number of outgoing phone lines shared among all agents. If one agent keeps ten calls going to the same customer, that agent runs out of lines and cannot place another call, even though the building has plenty of idle telephones elsewhere.

!
Common Mistake

Assuming that adding more NAT addresses always fixes connection failures. Sometimes the real cause is an application that opens too many short-lived connections instead of reusing them. Connection reuse, often called keep-alive or connection pooling, is frequently the cheapest cure.

9Timeouts: How Long Mappings Are Remembered

NAT forgets connections after a while, and that forgetting matters.

Cloud NAT keeps a mapping for each active connection, and releases it when the connection ends or sits idle too long. Different kinds of traffic have different idle timeouts, which you can tune within allowed limits. Long-lived established TCP connections are remembered for a long time, while idle UDP traffic is forgotten much faster. After a connection closes, a short waiting period prevents confusion between old and new connections that reuse the same port.

Timeout 1

Established TCP

How long a connected, idle TCP session is kept. It is long by default because many applications hold connections open.

Timeout 2

Transitory TCP

How long a connection still being set up or torn down is held. It is short.

Timeout 3

UDP and ICMP

Connectionless traffic is forgotten quickly when idle, so applications that rely on long quiet periods may need keep-alive messages.

Timeout 4

TIME_WAIT

A short quarantine after a connection closes, before the port can be reused for the same destination.

Why does this matter? If an application opens a connection, then stays silent for longer than the timeout, the mapping disappears. When the application finally sends data, the connection appears broken. The fix is usually for the application to send small keep-alive messages regularly, or to tune the timeout where allowed. Shorter timeouts free ports faster, which helps with exhaustion, while longer timeouts protect slow, quiet connections.

Simple Analogy

A hotel front desk remembers which room made a call, but after a long silence it assumes the caller hung up and wipes the note. If the caller starts speaking again after the note is gone, the front desk no longer knows where to send the reply.

10Choosing Which Subnets Use the Gateway

Cloud NAT is applied selectively, not blindly.

When you create a gateway, you choose which parts of the network it serves. You can apply it to all subnets in the region, to only the primary address ranges of all subnets, or to a custom list of specific subnets and ranges. This lets you give outbound access only to the tiers that truly need it, such as application servers that call outside services, while keeping a database tier completely isolated with no internet path at all.

Apply to all subnets

Simple and broad. Good for small environments where every private resource may need to reach out.

Apply to chosen subnets only

The precise, least-privilege option. Only the listed subnets can use NAT, and everything else stays offline.

Apply to container ranges

Container platforms use secondary ranges for pods. You can include those ranges explicitly so pods get outbound access too.

i
Security Habit

Treat internet access as a privilege. Give NAT only to subnets that need it, and combine it with firewall rules that restrict outbound traffic to the destinations your applications really use.

11Public NAT and Private NAT

Two flavors for two different problems.

Public NAT

Public NAT is what most people mean by Cloud NAT. It translates private addresses to public, internet-routable addresses so private resources can reach the internet.

Private NAT

Private NAT translates between private address spaces rather than to the internet. It solves a classic headache: two networks that must be connected but use overlapping address ranges, for example after a company merger or when connecting to a partner who uses the same private ranges. Instead of renumbering whole networks, which can take months, Private NAT presents resources to the other side using non-overlapping translated addresses, so the two sides can communicate. It is used with hybrid and multi-network connectivity features, and its availability and supported combinations should be confirmed in current documentation.

FeaturePublic NATPrivate NAT
Translates toPublic, internet-routable addressesOther private address ranges
Main purposeOutbound internet access for private resourcesConnecting networks with overlapping ranges
Typical userAlmost every cloud teamOrganizations with merged, partner or legacy networks
Simple Analogy

Two companies each have a “Room 101” in their buildings. To let them send each other memos, a translator at the shared mailroom says “your Room 101 will be called Room 5101 on our side.” Nobody has to renumber their building.

12Setting Up Cloud NAT: The Journey

What you decide, in order, when adding Cloud NAT to a network.

1

Identify who needs outbound access

List the workloads that need to reach the internet and the specific destinations they call, such as update servers or partner services.

2

Prepare the network

Confirm the target resources have no external addresses, and enable Private Google Access on their subnets for Google services.

3

Create or choose a Cloud Router

The gateway attaches to a Cloud Router in the same region and network as the resources it will serve.

4

Create the NAT gateway

Select the subnets it should serve and choose automatic or manual address allocation, depending on allow-listing needs.

5

Tune ports and timeouts

Estimate how many simultaneous connections machines make, then set minimum ports, dynamic allocation and timeouts accordingly.

6

Turn on logging and monitoring

Enable logs for errors and set up alerts for dropped packets and port usage before real traffic depends on it.

7

Test and verify

From a private machine, confirm it can reach the intended destinations and that the destination sees your NAT address.

flowchart LR
    subgraph VPC[Your VPC Network - one region]
        subgraph S1[Private Subnet]
            VM1[VM]
            VM2[VM]
            GKE[GKE Nodes and Pods]
        end
        CR[Cloud Router with NAT Gateway]
    end
    VM1 --> CR
    VM2 --> CR
    GKE --> CR
    CR -->|Translated to NAT IP addresses| INET[Internet]
    S1 -->|Private Google Access| GAPI[Google APIs]
        
FIG 3 — A typical design: private workloads reach the internet through one NAT gateway and Google services through private access

13Designing for Reliability and Multiple Regions

NAT is simple to start but deserves thought as systems grow.

Because a Cloud NAT gateway is a regional configuration with no single machine behind it, it does not have a traditional single point of failure. Even so, good design matters. Each region of your network that has private workloads needs its own gateway, since a gateway serves only its own region. If your application runs in three regions, expect three gateways, each with its own addresses.

When partners allow-list your addresses, remember that they must allow the addresses of every region you use, and that traffic from a region leaves through that region’s gateway. Document the full list and keep it current as you add regions. Also consider that a very large fleet may need many addresses to have enough ports, so plan address capacity as part of regular capacity reviews.

i
Operational Tip

Name gateways and reserved addresses clearly by region and purpose, and label them with owners. When a partner asks “which addresses do you use?”, a tidy inventory saves hours.

Simple Analogy

A company with offices in three cities needs a switchboard in each city. Calls from the Mumbai office show Mumbai’s number, calls from London show London’s number, and any customer who wants to approve the company’s calls must approve all three numbers.

14Security Benefits and Limits

What Cloud NAT protects, and what it does not.

What it gives you

Cloud NAT lets machines stay without public addresses, which removes them from the reach of internet scanners and direct attacks. It hides the real internal addresses from outside observers. It also provides a small, known set of outgoing addresses, which helps when you need to restrict or monitor where traffic is coming from.

What it does not do

Cloud NAT does not inspect or filter traffic. A compromised private machine can still call out to malicious servers through NAT unless other controls stop it. It is not a replacement for firewall rules, proxy or secure web gateway services, or monitoring. It also does not protect Google service traffic, which is governed by other controls.

flowchart TD
    A[Private addresses only - no direct internet exposure] --> B[Cloud NAT - outbound only translation]
    B --> C[Egress firewall rules - restrict destinations and ports]
    C --> D[Optional secure web gateway or proxy - inspect and filter]
    D --> E[Flow logs and NAT logs - detect and investigate]
        
FIG 4 — Cloud NAT is one layer; combine it with egress controls and logging
!
Do Not Overestimate NAT

Stopping inbound exposure is not the same as stopping data leaving. If you worry about data being sent out by a compromised workload, add egress firewall rules, destination restrictions and monitoring. NAT alone will happily forward whatever the machine sends.

15Monitoring, Logging and Troubleshooting

Because NAT problems often look like random application errors.

Signal 1

NAT Logs

Logs of translation events and errors, such as connections dropped because no ports were available. Can be limited to errors only to control volume.

Signal 2

Port Usage Metrics

Show how many ports each machine is using, so you can spot machines approaching their limits.

Signal 3

Dropped Packet Counts

Counts of packets dropped, and the reason, such as allocation failures from port exhaustion.

Signal 4

Flow Logs and Connectivity Tests

Show whether traffic is leaving the subnet at all and whether routes and rules would allow a path.

A calm troubleshooting order

1

Confirm the machine really lacks an external address

Resources with external addresses bypass NAT, which can explain surprising source addresses.

2

Confirm the gateway covers its subnet

Check that the subnet or range is included in the gateway configuration and that the gateway is in the same region.

3

Check routes and firewall rules

A default route to the internet must exist, and egress firewall rules must allow the traffic.

4

Look for port exhaustion

Check dropped packet metrics and logs. If allocation failures appear, raise ports, add addresses or reduce short-lived connections.

5

Check timeouts and the remote side

Quiet connections may be forgotten. Also confirm the remote service has allow-listed your NAT addresses and is not rate-limiting them.

i
Early Warning

Set alerts on port usage and dropped packets before launch. Port exhaustion tends to appear during traffic peaks, which is exactly when you do not want to start learning about it.

16Understanding Costs

Small per unit, but worth watching at scale.

Cloud NAT pricing generally has a few parts: a charge related to the gateway and the number of machines it serves, a charge for the amount of data processed, and charges for the external IP addresses that the gateway uses. Regular internet egress charges for data leaving Google Cloud also apply. Exact rates change, so always use Google Cloud’s pricing page and calculator.

Keep Google traffic off NAT

Use Private Google Access so traffic to Google services does not pass through NAT and does not add to data processing charges.

Reduce unnecessary downloads

Cache packages and container images inside your network, for example in a private artifact registry, so many machines do not each download the same files from the internet.

Right-size addresses

Reserve only the number of addresses you need. Idle reserved addresses can cost money.

Limit NAT to needed subnets

Applying NAT only where required reduces both cost and security exposure.

Control log volume

Log errors rather than every translation when full detail is not required.

17Advantages and Trade-offs

A balanced view of Cloud NAT.

Advantages

  • Fully managed with no NAT servers to build, patch or scale.
  • No single point of failure, since translation is part of Google’s networking layer.
  • Keeps resources private while still allowing outbound access.
  • Stable, known addresses are possible with manual allocation, helping allow-listing.
  • Dynamic port allocation and tunable timeouts help match real workloads.
  • Private NAT helps connect networks with overlapping address ranges.

Disadvantages / Trade-offs

  • Outbound only; it cannot publish services to the internet.
  • Port limits can cause exhaustion for connection-heavy applications.
  • Does not inspect or filter traffic by itself.
  • Each region needs its own gateway, increasing the number of addresses to manage.
  • Adds data processing and address costs.
  • Shared addresses mean one noisy workload can affect how a remote service treats all of them.

18Best Practices and Anti-Patterns

Habits that save you from late-night surprises.

Best practices at a glance

1

Keep resources private by default

Use Cloud NAT instead of giving external addresses to machines that only need to call out.

2

Use manual addresses when partners must allow-list you

Reserve static addresses and share the list with partners in advance.

3

Enable dynamic port allocation

Let ports grow with demand, and set sensible minimum and maximum values.

4

Encourage connection reuse in applications

Connection pooling and keep-alive greatly reduce port use and speed up requests.

5

Combine NAT with egress rules and Private Google Access

Restrict outbound destinations and keep Google traffic on private paths.

6

Monitor ports and drops before launch

Alert on allocation failures so you hear about exhaustion from a dashboard, not from customers.

Anti-patterns to avoid

ANTI-PATTERN-01 Avoid
Problem

Building a home-made NAT virtual machine instead of using Cloud NAT.

Why It’s Harmful

That machine becomes a bottleneck and single point of failure, needs patching and monitoring, and limits throughput.

Correct Approach

Use the managed Cloud NAT service, which scales with your workloads and needs no servers.

ANTI-PATTERN-02 Avoid
Problem

Relying on automatic addresses when a partner requires a fixed allow-list.

Why It’s Harmful

Addresses can change, causing sudden outages when the partner’s firewall stops recognizing you.

Correct Approach

Reserve static addresses and use manual allocation from the start.

ANTI-PATTERN-03 Avoid
Problem

Ignoring port limits until connection errors appear in production.

Why It’s Harmful

Exhaustion causes intermittent failures that are hard to trace and usually appear at peak traffic.

Correct Approach

Estimate connection patterns, enable dynamic allocation, add addresses as needed, and alert on usage.

ANTI-PATTERN-04 Avoid
Problem

Treating Cloud NAT as a complete security solution.

Why It’s Harmful

It blocks unsolicited inbound traffic but does not stop a compromised machine from sending data out.

Correct Approach

Add egress firewall rules, destination controls, inspection where needed, and logging.

“Private by default, outbound by exception, and always watched.”

19Frequently Asked Questions

Q1Is Cloud NAT a virtual machine?

No. It is a managed, software-defined service built into Google’s network. There is no NAT machine for you to run, patch or scale.

Q2Can the internet start a connection to my private VM through Cloud NAT?

No. Cloud NAT handles connections your resources start and their replies. Unsolicited inbound connections are dropped. To publish a service, use a load balancer or another inbound design.

Q3Do I need Cloud NAT to reach Google Cloud services like storage?

Not usually. Private Google Access lets resources without external addresses reach Google APIs. Cloud NAT is for the wider internet.

Q4Is a gateway global or regional?

Regional. Each gateway serves resources in one region of one VPC network, so multi-region designs need a gateway in each region.

Q5What is port exhaustion and how do I fix it?

It happens when a machine has used all the NAT ports allocated to it, so new connections to the same destination fail. Fix it by enabling dynamic port allocation, raising port limits, adding NAT addresses, or making the application reuse connections.

Q6How do I give a partner a fixed set of addresses to allow?

Reserve static external addresses and configure the gateway for manual address allocation. Share those addresses, for every region you use, with the partner.

Q7Does a VM with an external IP use Cloud NAT?

No. A machine with its own external address uses it directly for internet traffic. Cloud NAT serves machines without external addresses.

Q8Can serverless workloads use Cloud NAT?

Yes, when their outbound traffic is routed through a VPC network, using a connector or direct network egress. They then share the NAT addresses, which gives them stable outbound addresses.

Q9What is Private NAT used for?

It translates between private networks, most commonly to connect networks whose address ranges overlap, without renumbering either one. Check current documentation for supported scenarios.

Q10Does Cloud NAT filter or inspect traffic?

No. It translates addresses only. Use firewall rules, secure web gateway or proxy services, and logging for filtering and inspection.

20Summary and Key Takeaways

Cloud NAT solves a simple but important problem: private resources need to reach the outside world without becoming reachable from it. As a managed, software-defined service, it removes the need for NAT servers, scales with your workloads, and keeps machines hidden behind a small set of public addresses. Using it well means choosing automatic or manual addresses based on whether partners must allow-list you, understanding that ports are a shared and limited resource, tuning timeouts, enabling logs and alerts, and pairing NAT with Private Google Access and egress controls. Treat it as one dependable layer in a larger security and networking design, and it will quietly do its job.

Key Takeaways

  • Outbound access without exposure — Cloud NAT lets private resources call out to the internet and receive replies, while unsolicited inbound connections are dropped.
  • Managed and serverless in design — there is no NAT machine to run; translation is built into Google’s network and scales with your workloads.
  • Automatic versus manual addresses — choose manual static addresses whenever partners need to allow-list you.
  • Ports are the real limit — plan for port allocation, use dynamic allocation, add addresses as needed, and reuse connections to avoid exhaustion.
  • Pair it with Private Google Access — keep Google service traffic on private paths and reserve NAT for the wider internet.
  • It is one layer, not the whole wall — add egress firewall rules, destination controls and logging, because NAT does not inspect traffic.
  • One gateway per region — multi-region designs need a gateway and address inventory in every region, with clear documentation and monitoring.