Google Cloud VPC Networking for Admins: Subnets, Firewall Rules, Shared VPC, and Cloud NAT
Google Cloud VPC basics for admins: global networks, custom subnets, firewall rules and policies, Shared VPC, Cloud NAT, and Private Google Access.
Last checked against Google's official documentation on .

Networking is where many Google Workspace admins feel least at home in Google Cloud. Workspace is SaaS; you never think about subnets. The moment your company runs VMs, databases, or a connection to the office, though, someone has to decide how traffic flows through your Google Cloud VPC network, and the defaults are not designed for production.
This guide explains Google Cloud’s VPC model in plain terms, the firewall options, Shared VPC, Cloud NAT, and Private Google Access, and ends with a simple design that suits most small and mid-sized organizations.
Key Takeaways
- A VPC is global; subnets are regional.
- Use custom mode networks and plan IP ranges that do not clash with the office.
- Firewall is deny ingress, allow egress by default; add rules by service account or tag.
- Shared VPC separates network control from application teams.
- Cloud NAT and Private Google Access let private VMs reach out without public IPs.
Table of contents
Open Table of contents
- The VPC Model
- The Default Network
- Planning IP Ranges
- Firewall Rules and Policies
- Shared VPC
- Cloud NAT
- Private Google Access
- Connecting to the Office
- A Simple Design for Most Organizations
- Troubleshooting Connectivity
- VPC Flow Logs
- VPC Service Controls in One Paragraph
- Load Balancers at a Glance
- Conclusion
The VPC Model

A VPC network is a private network inside Google Cloud. Unlike some other clouds, it is global: one VPC can span every region. Subnets are regional, each with an IP range you choose, such as 10.10.0.0/20 in asia-south1 (Mumbai).
VMs in any subnet of the same VPC reach each other over internal IPs without peering or gateways. That makes multi-region designs simple.
Two modes exist:
- Auto mode creates one subnet in every region with fixed ranges from
10.128.0.0/9. - Custom mode creates only the subnets you define.
Use custom mode. Auto mode’s ranges often clash with office or VPN networks, and you rarely need a subnet in every region.
The Default Network
New projects get a default auto mode network unless you stop it, and it comes with permissive firewall rules allowing SSH, RDP, and ICMP from anywhere. That is convenient for a tutorial and risky in a company.
Enforce the organization policy compute.skipDefaultNetworkCreation so new projects start without it. Our organization policies guide lists it in the recommended baseline.
Planning IP Ranges
Before you create subnets, write down:
- Ranges used in your offices, VPN, and any other cloud.
- A block reserved for Google Cloud, for example
10.20.0.0/14. - A range per region and per environment from that block.
- Secondary ranges if you will run GKE.
This one page saves a painful renumbering project later.
Firewall Rules and Policies
Every VPC has two implied rules: deny all ingress and allow all egress. Everything else you add.
| Option | Scope | Best for |
|---|---|---|
| VPC firewall rules | One network | Simple setups |
| Network firewall policies | One or more networks, global or regional | Most new designs |
| Hierarchical firewall policies | Organization or folder | Company-wide rules, such as blocking known bad ranges |
Rules match traffic by source and destination ranges, ports, and protocols, and they target instances by network tags or, better, by service account. Service account targets are harder to misuse because a developer cannot simply add a tag to their VM to open a port.
A practical starting set:
- Allow ingress from Google’s IAP range
35.235.240.0/20on 22 and 3389 for admin access through Identity-Aware Proxy. - Allow ingress from Google’s load balancer and health check ranges to web backends.
- Allow internal traffic only between the tiers that need it.
- Turn on firewall rule logging for rules that protect sensitive systems.
Shared VPC
Shared VPC lets one host project own the network while many service projects use it.
- The network team manages subnets, routes, firewall policies, NAT, and hybrid connections in the host project.
- Application teams create VMs, GKE clusters, and Cloud Run connections in their own service projects, inside subnets they are allowed to use.
- Costs for resources stay in each service project.
Grant Compute Network User on specific subnets to the application team’s service accounts and groups, rather than on the whole host project. A common pattern is one host project for production and one for non-production, both in a Shared services folder.
VPC Network Peering
Peering is the other way to connect networks. It joins two separate VPC networks, even in different projects or organizations, so resources reach each other on internal IPs. Each side stays administratively separate: only routes are exchanged, and each network’s admins choose what to export and import. Google lists three limits that shape designs: peering is not transitive (two networks peered with a third can’t reach each other through it), subnet ranges in peered networks can’t overlap, and firewall rules and policies are not shared, so each side writes its own allow rules. Use Shared VPC inside your own organization and peering for links to a partner or a managed service.
Cloud NAT
VMs without external IPs cannot reach the internet by default. Cloud NAT gives them outbound access for updates and APIs while keeping them unreachable from outside.
It is configured per region on a Cloud Router. You can let Google allocate NAT IP addresses automatically, or reserve static ones if a partner needs to allowlist your outbound IPs. Watch the NAT logs and port allocation if many VMs share one IP, because heavy outbound workloads can run out of ports.
Private Google Access
If VMs only need to reach Google APIs, such as Cloud Storage or BigQuery, enable Private Google Access on the subnet. Traffic to Google APIs then flows over Google’s network from internal IPs, with no NAT needed. For stricter designs, Private Service Connect gives Google APIs and managed services private endpoints inside your VPC.
Connecting to the Office
When you need traffic between Google Cloud and on-premises:
- HA VPN for encrypted tunnels over the internet. Quick to set up and fine for most small organizations.
- Cloud Interconnect (Dedicated or Partner) for private, high-bandwidth links.
Both use Cloud Router to exchange routes with BGP. Plan for two tunnels or two links for resilience.
A Simple Design for Most Organizations
- A Shared services folder with two host projects: production and non-production.
- A custom mode VPC in each, with subnets in your main region and a second region if needed.
- Network firewall policies with rules targeted by service account.
- Cloud NAT per region, and Private Google Access on every subnet.
- IAP for all admin SSH and RDP, and the external IP constraint enforced.
- HA VPN to the office, if needed.
- Application projects attached as service projects.
Troubleshooting Connectivity
Networking problems are easier to solve with Google’s built-in tools than with guesswork.
Connectivity Tests in the Network Intelligence Center simulate a packet from a source to a destination and tell you which firewall rule, route, or missing NAT blocks it. Run one before changing any rules.
Firewall rule logging shows which rule allowed or denied real traffic. Turn it on temporarily for the rules you suspect.
Common causes:
| Symptom | Likely cause |
|---|---|
| VM cannot reach the internet | No external IP and no Cloud NAT in that region |
| VM cannot reach Cloud Storage or BigQuery | Private Google Access off on the subnet, and no NAT |
| Load balancer shows unhealthy backends | Firewall does not allow Google’s health check ranges |
| SSH through IAP fails | No rule allowing 35.235.240.0/20 on port 22 |
| Office cannot reach a VM over VPN | Route not advertised, or overlapping IP ranges |
| Service project cannot use a subnet | Missing Compute Network User on that subnet |
VPC Flow Logs
Firewall rule logging tells you which rule matched. VPC Flow Logs record the traffic itself: sampled connections to and from VMs (including GKE nodes), Cloud Run with Direct VPC egress, Cloud VPN tunnels and Interconnect VLAN attachments. You can turn them on for a subnet, a whole VPC network or the entire organization. By default records are aggregated every 5 seconds, and Google says enabling them adds no delay or performance penalty. Logs land in Cloud Logging in the network’s project (the host project for Shared VPC) and are kept 30 days by default. They are charged under Network Telemetry pricing, so on busy subnets raise the aggregation interval or lower the secondary sampling rate to control cost.
VPC Service Controls in One Paragraph
Firewalls control network paths; VPC Service Controls control which projects can reach Google-managed services such as BigQuery and Cloud Storage, and from where. A service perimeter stops data being copied out of a set of projects even by someone with valid credentials. It is an advanced control with real operational overhead, so most organizations adopt it for their most sensitive data first. Our Gemini Enterprise security guide shows it in use for AI workloads.
Load Balancers at a Glance
Google Cloud has several load balancers, and the names are confusing at first. This table covers the common choices:
| Load balancer | Traffic | Scope | Typical use |
|---|---|---|---|
| Global external Application Load Balancer | HTTP and HTTPS | Global | Public websites and APIs, Cloud Armor, CDN, IAP |
| Regional external Application Load Balancer | HTTP and HTTPS | One region | Public apps with regional data requirements |
| Internal Application Load Balancer | HTTP and HTTPS | Regional or cross-region | Internal web apps and microservices |
| External proxy Network Load Balancer | TCP with TLS offload | Global or regional | Non-HTTP public services |
| Passthrough Network Load Balancer | TCP and UDP | Regional | Games, VoIP, legacy protocols, preserving client IPs |
For most admin use cases, the global external Application Load Balancer in front of Cloud Run or a managed instance group, with IAP turned on, is the right default. It handles certificates, routing by host and path, and security policies in one place.
Add Cloud Armor policies to public load balancers to block common web attacks and restrict access by country or IP range where appropriate.
Conclusion
Google Cloud networking is simpler than it first looks: one global VPC, regional subnets, explicit firewall rules, and managed NAT. Most problems come from the defaults, so remove the default network, plan IP ranges, and centralize the network with Shared VPC.
Your admins can then reach every private VM with their Google Workspace identity through IAP, with no VPN and no public IPs. Tomorrow’s guide is hands-on: deploying your first app to Cloud Run.
Official Google documentation:
Related reading:
- Identity-Aware Proxy Guide: admin access without public IPs.
- Organization Policies Baseline: network constraints to enforce.
- Gemini Enterprise Security and Compliance: VPC Service Controls for AI services.
This guide contains referral or affiliate links. If you sign up through one, Workspace Blog may earn a commission at no extra cost to you. Read our referral and advertising disclosure.
Frequently Asked Questions
- Is a Google Cloud VPC global or regional?
- A VPC network in Google Cloud is global, while its subnets are regional. One VPC can have subnets in Mumbai, Delhi, and Singapore, and VMs in all of them can talk to each other over Google's network using internal IP addresses without extra configuration.
- Should I use auto mode or custom mode VPC networks?
- Use custom mode for anything beyond experiments. Auto mode creates a subnet in every region with fixed IP ranges that can clash with your on-premises networks. Custom mode lets you choose regions and ranges, which you need for hybrid connectivity and Shared VPC.
- What are the default firewall rules in a new VPC?
- Every VPC has two implied rules: deny all ingress and allow all egress. The default network in a new project also has pre-populated rules that allow SSH, RDP, ICMP, and internal traffic, which is why many organizations block default network creation.
- What is Shared VPC?
- Shared VPC lets a central host project own the network, subnets, and firewall rules, while service projects attach to it and create VMs and other resources in the shared subnets. Network admins control the network and application teams control their own resources.
- How do VMs without external IPs reach the internet?
- Through Cloud NAT, a managed network address translation service configured on a Cloud Router per region. VMs get outbound internet access for updates and APIs while remaining unreachable from the internet. For Google APIs alone, Private Google Access is enough.