Cloud VPN in Google Cloud: Building a Private, Encrypted Bridge Between Networks

Cloud VPN in Google Cloud: Building a Private, Encrypted Bridge Between Networks

A friendly, in-depth guide to how Cloud VPN and HA VPN connect your offices, data centers, other clouds and VPC networks over encrypted IPsec tunnels, and how to design them for reliability, speed and safety.

Imagine two buildings on opposite sides of a busy city. Between them runs a public road where anyone can watch the traffic, so you do not want to send your private documents by an open truck. Instead, you build a sealed, locked tunnel that only the two buildings can enter, and every package inside is wrapped in a code that only they can read. That sealed tunnel is exactly what Cloud VPN gives you between your own network and Google Cloud, and in this guide we will learn it one idea at a time, starting with the very basics.

1What Is Cloud VPN?

Cloud VPN is Google Cloud’s managed service for creating encrypted site-to-site connections over the internet.

VPN stands for Virtual Private Network. A network is simply a group of computers that can talk to each other. A private network is one that only trusted members can use. A virtual private network gives you a private connection even though the cables underneath are shared with the public internet. The word virtual means the privacy is created by software and encryption, not by laying your own private wire.

Cloud VPN connects a peer network, such as your office or data center, to a Virtual Private Cloud network in Google Cloud. It can also connect two Google Cloud VPC networks to each other. The traffic travels across the internet, but it is wrapped in IPsec, a well-known set of security rules, so outsiders cannot read it or change it without being noticed.

Simple Analogy

Think of Cloud VPN as an armored courier service between two offices. Each office has a trusted gate. Packages are sealed in tamper-proof boxes at one gate, carried along public roads, and opened only at the other gate. The roads are public, but the boxes are not.

What Cloud VPN is and is not

Cloud VPN is a site-to-site service. It joins whole networks together so that machines on one side can reach machines on the other using private addresses. It is not a service for individual laptops dialing in from a coffee shop, and it does not send your traffic out to the public internet. Its only job is to connect your private network to your Google Cloud network through an encrypted tunnel.

IPsec
Encryption standard protecting every packet
Regional
Each gateway lives in one region
Managed
Google runs the gateway infrastructure
i
Good to Know

Cloud VPN does not provide client-to-gateway VPN or SSL VPN. If you need individual users to connect from their own devices, you need a different solution. Cloud VPN is for connecting networks, not people.

2Why Connect Networks Privately?

Almost every company that uses the cloud ends up needing a private link between the cloud and somewhere else.

Very few organizations move everything to the cloud overnight. They keep some systems in their own data centers, some in other clouds and some in Google Cloud. These systems must talk to each other, and the conversations often contain sensitive business data. A private, encrypted link makes this safe without needing every server to be exposed to the internet.

Reason 1

Hybrid Cloud

Applications in the data center need to call services or databases that now live in Google Cloud, and the reverse.

Reason 2

Gradual Migration

During a move to the cloud, old and new systems run side by side and must exchange data safely.

Reason 3

Multi-Cloud

Workloads on other cloud providers need private paths to Google Cloud for sharing data or running parts of an application.

Reason 4

Private Addresses

Internal servers keep private IP addresses and never need public exposure just to be reachable.

Reason 5

Compliance

Rules about protecting data in transit are easier to meet when traffic is encrypted end to end between sites.

Reason 6

Speed to Deploy

A VPN uses the existing internet connection, so you can often build one in days rather than waiting weeks for a physical circuit.

The main alternatives

A VPN is not the only way to connect to Google Cloud. Dedicated physical links called Cloud Interconnect offer higher bandwidth and steadier performance, but cost more and take longer to arrange. Some teams start with a VPN and move to Interconnect later. Others keep the VPN as an encrypted backup. We will compare these options in detail later in this guide.

!
Common Misconception

Some beginners believe a VPN makes the internet itself private. It does not. It creates a protected tunnel between two specific points. Everything outside that tunnel is as public as ever.

3Core Concepts and Vocabulary

Networking has many short, confusing words, so let us define each one before we use it.

Term 1

VPC Network

Your private, software-defined network inside Google Cloud, where your virtual machines and services live.

Term 2

Cloud VPN Gateway

The Google-side endpoint of the VPN. It sits in one region and holds the external IP addresses used by tunnels.

Term 3

Peer VPN Gateway

The device or service on the other side, such as an office firewall, a router or another cloud’s VPN gateway.

Term 4

VPN Tunnel

One encrypted connection between a gateway interface and a peer gateway interface. Traffic flows inside it.

Term 5

IPsec

The family of rules that encrypts and authenticates packets so they cannot be read or altered in transit.

Term 6

IKE

Internet Key Exchange, the negotiation where two gateways prove who they are and agree on secret keys.

Term 7

Cloud Router

A managed Google Cloud service that exchanges routes with your peer using BGP, so you do not maintain route lists by hand.

Term 8

BGP

Border Gateway Protocol, the language routers use to tell each other which networks they can reach.

Term 9

ASN

Autonomous System Number, a unique number that identifies a network in BGP conversations.

Term 10

Pre-Shared Key

A secret password known to both gateways, used to prove identity during tunnel setup.

Simple Analogy

A gateway is a locked door, a tunnel is the corridor behind the door, IPsec is the lock and sealed boxes, IKE is the secret handshake that happens before the doors open, and BGP is the map exchange where each building tells the other which rooms it contains.

i
Regional Resources

A Cloud VPN gateway belongs to a region, not a zone. You choose the region when you create it, and a failure of one zone does not remove the gateway.

4HA VPN and Classic VPN

Cloud VPN comes in two gateway types, and one of them is clearly the modern choice.

HA VPN is the high-availability gateway. HA stands for high availability, which means the service is designed to keep working even when something fails. An HA VPN gateway has two interfaces, each with its own external IP address drawn from a separate pool. Each interface can hold multiple tunnels, so you can build redundancy and add capacity.

Classic VPN is the older gateway. It has a single interface and a single external IP address, and it supports static routing only. It does not support IPv6. Google recommends HA VPN as the highest-availability option, and offers a guide for moving from Classic to HA.

AspectHA VPNClassic VPN
Interfaces and external IPsTwo interfaces, two external IPsOne interface, one external IP
RoutingDynamic routing with BGP through Cloud RouterStatic routing only
IP versionsIPv4, IPv6 or dual stackIPv4 only
Availability SLA99.99 percent for the recommended topologies99.9 percent
StatusRecommended for new designsLegacy, with BGP deprecated
!
Classic VPN Deprecation

Google deprecated dynamic routing with BGP for Classic VPN tunnels on August 1, 2025. New Classic tunnels using BGP can no longer be created, existing BGP tunnels keep working but have no availability SLA, and static-route Classic tunnels still work. For any new project, choose HA VPN.

Throughout the rest of this guide we focus on HA VPN, because it is the gateway you should design with today. We will return to Classic VPN in the migration chapter.

5Architecture and Components

A working HA VPN setup has a small set of building blocks that always appear together.

On the Google Cloud side you create a VPC network, a Cloud Router and an HA VPN gateway. On the other side you have a peer gateway, which Google Cloud represents with a resource describing its IP addresses. Between them you create VPN tunnels, and over each tunnel you run a BGP session so the two sides learn each other’s networks.

flowchart LR
  A["On-premises network"] --> B["Peer VPN gateway"]
  B -->|"Tunnel 1"| C["HA VPN gateway interface 0"]
  B -->|"Tunnel 2"| D["HA VPN gateway interface 1"]
  C --> E["Cloud Router"]
  D --> E
  E --> F["VPC network"]
        
FIG 1 — The main components of an HA VPN connection

What each part does

Component

HA VPN Gateway

Provides two external IP addresses where tunnels terminate on the Google side.

Component

External VPN Gateway Resource

A Google Cloud object that describes your peer device and its IP addresses so tunnels know where to connect.

Component

VPN Tunnels

The encrypted links. Two or more per gateway are recommended for the highest availability.

Component

Cloud Router and BGP Sessions

Exchange routes automatically, and add or withdraw them when tunnels go up or down.

Simple Analogy

The gateway is the building’s front doors, the tunnels are corridors, and the Cloud Router is the receptionist who keeps a live directory of which rooms can be reached through which corridor, updating it instantly if a corridor is closed.

i
What Is Open to the Internet

The external IP addresses of a gateway accept only a few kinds of traffic: ESP packets, which carry the encrypted data, and UDP on ports 500 and 4500, which carry the key exchange. Everything else is dropped.

6How a Tunnel Is Built Internally

Before any data flows, the two gateways hold a carefully ordered conversation.

When a tunnel starts, the two gateways first need to prove they are who they claim to be. Cloud VPN uses a pre-shared key for this proof. They then negotiate which encryption methods they both support, and they create fresh secret keys. Only after all of this does encrypted traffic begin to flow.

1

Reach the Peer

One gateway sends the first key exchange message to the other’s public IP address, using UDP port 500, or 4500 if NAT traversal is needed.

2

Agree on Security Settings

Both sides propose encryption and integrity methods and choose a set they both support.

3

Authenticate with the Shared Secret

Each side proves it knows the pre-shared key without ever sending the key itself.

4

Create the Child Security Association

The gateways create the keys that will actually protect user data and define which networks may use the tunnel.

5

Carry Traffic and Rekey

Packets are wrapped in ESP and sent. Keys are refreshed periodically before they expire.

sequenceDiagram
  participant A as Peer gateway
  participant B as HA VPN gateway
  A->>B: Start key exchange with proposals
  B->>A: Choose settings and respond
  A->>B: Authenticate with pre-shared key
  B->>A: Authenticate with pre-shared key
  A->>B: Create child keys for data
  B->>A: Confirm tunnel is established
  A->>B: Encrypted data packets
  B->>A: Encrypted data packets
        
FIG 2 — A simplified view of tunnel setup

Tunnel mode and what travels inside

Cloud VPN uses ESP in tunnel mode. That means the entire original packet, including its own addressing, is encrypted and placed inside a new outer packet addressed from one gateway to the other. Observers on the internet can see only the outer addresses, not what is inside.

i
Health Checks Built In

Cloud VPN supports dead peer detection, which lets a gateway notice that its partner has gone quiet, so a broken tunnel can be torn down and rebuilt instead of silently dropping data.

7Routing: Static Routes and Dynamic BGP

Encryption builds the tunnel, but routing decides which traffic uses it.

A router is like a traffic sign that says which road leads to which city. With static routing, a person writes the signs by hand. If a new network appears on one side, someone must go and add a new sign. With dynamic routing, the routers tell each other automatically which networks they can reach, and they update the signs on their own when something changes.

Simple Analogy

Static routing is a printed paper map that stays the same until you reprint it. Dynamic routing is a live navigation app that learns about roadworks and changes the route while you drive.

HA VPN uses BGP only

Tunnels on an HA VPN gateway must use dynamic routing with BGP. The BGP sessions run on a Cloud Router. Your Cloud Router advertises the VPC subnets to the peer, and the peer advertises its own networks back. Google Cloud then adds those learned routes to the VPC so that virtual machines can reach the remote network.

Advantages of Dynamic BGP

  • New subnets are advertised automatically without manual edits
  • Failed tunnels are detected and their routes withdrawn
  • Route priorities allow preferred and backup paths
  • Works naturally with multiple tunnels and gateways
  • Scales better as the network grows

Things to Watch

  • The peer device must support BGP
  • Both sides need compatible ASN and IP settings
  • Wrong advertisements can leak or blackhole traffic
  • Troubleshooting requires basic BGP knowledge

Priorities and preference

When more than one path leads to the same destination, BGP needs a way to choose. Google Cloud lets you set priorities on the routes a Cloud Router advertises. Lower numbers are usually preferred, so you can make one tunnel the main road and another the backup. The best practice is to advertise the same prefixes on all links and use priorities, not different prefixes, to express preference.

!
Address Overlap

The private address ranges on both sides must not overlap. If your office and your VPC both use the same range, the routers cannot tell where to send traffic. Plan address ranges carefully before building anything.

8Active-Active and Active-Passive Designs

With two tunnels you must decide whether both carry traffic or one waits as a spare.

In an active-active design, both tunnels carry traffic at the same time. The routers use equal-cost multipath to spread flows across both. Your total capacity is the sum of both tunnels, which is attractive for bandwidth. In an active-passive design, only one tunnel carries traffic while the other stays ready as a backup, and traffic moves to it only if the main tunnel fails.

AspectActive-ActiveActive-Passive
Normal trafficShared across tunnelsCarried by one tunnel
Capacity in normal operationCombined capacity of all tunnelsCapacity of one tunnel
After a failureRemaining tunnel must carry everything, and capacity may halveBackup tunnel takes over with similar capacity
Failover behaviorRoute withdrawal can take a while, so brief packet loss is expectedSwitch happens through priority change
ComplexityNeeds matching priorities on both sidesNeeds clear primary and backup priorities
Simple Analogy

Active-active is two checkout lanes both open at a shop, so more customers pass quickly, but if one closes the other becomes crowded. Active-passive is one lane open and a second lane kept ready, so service stays steady when the first lane closes.

Think about the failure case

A common planning mistake is to measure only normal conditions. Suppose each tunnel can carry a certain amount and your traffic needs most of the combined total. In active-active mode, when one tunnel fails, the survivor cannot handle everything and users feel slowness. Always ask: if one tunnel disappears, can the other still carry my busiest hour?

Google’s guidance is to prefer active-passive with a single HA VPN gateway, and active-active when you use multiple gateways, and to avoid active-passive setups with more than two tunnels, because available bandwidth can be wasted.

i
Failover Takes Time

When a tunnel fails, routes must be withdrawn and traffic rerouted. In some active-active situations this can take tens of seconds. Design applications to retry gracefully instead of assuming instant failover.

9Topologies and the 99.99 Percent SLA

An SLA is a promise, and the promise only holds when you build the connection the recommended way.

SLA means service level agreement. For HA VPN, Google offers a 99.99 percent availability target for recommended topologies. That is roughly under an hour of allowed downtime in a whole year, compared with about nine hours for 99.9 percent. But the promise has conditions, and it applies to Google’s side of the connection together with a correctly built peer.

Common topologies

HA VPN to Two Separate Peer Gateways

Each HA VPN interface connects to a different peer device. This is the most resilient option, because even a failure of an entire peer device leaves the other path working.

HA VPN to One Peer with Two Interfaces

One peer device presents two IP addresses, and each Google interface connects to one of them.

HA VPN to One Peer with One Interface

A single peer IP address, which is acceptable when that peer is internally redundant. Both Google interfaces form tunnels to that one address.

HA VPN Between Two VPC Networks

An HA VPN gateway in each network connects the two, which is a common way to link separate projects or environments privately. The exact availability value depends on the specific layout, so check the topology guidance.

HA VPN to Other Clouds

Connections to Amazon Web Services or Microsoft Azure use several tunnels, with an AWS peer using four tunnels, to match how those platforms provide their own redundancy.

Conditions for the highest SLA

Each interface of the HA VPN gateway needs at least one tunnel to the matching peer interface. A single tunnel from a single interface does not qualify. The peer side must also be configured to meet the same level of redundancy, because the promise cannot cover a device Google does not control. Finally, an HA VPN gateway with only one interface in use has no availability SLA at all.

flowchart TD
  A["HA VPN gateway interface 0"] -->|"Tunnel A"| C["Peer interface 0"]
  B["HA VPN gateway interface 1"] -->|"Tunnel B"| D["Peer interface 1"]
  C --> E["On-premises network"]
  D --> E
        
FIG 3 — Two tunnels, one from each interface, for the highest availability
!
Do Not Rely on One Tunnel

Building an HA gateway but creating only one tunnel is a very common error. It looks like high availability on the diagram, but it provides none of the promised protection.

10Bandwidth, Packet Rate and Scaling

A tunnel is a pipe of limited size, and knowing the size avoids surprises.

Each VPN tunnel has a limit on how many packets it can process every second. For Cloud VPN this limit is about 250,000 packets per second, counting traffic in both directions together. Depending on the average packet size, that limit corresponds to somewhere between about one and three gigabits per second of throughput. Small packets reach the packet limit sooner, so they bring the bandwidth down.

Simple Analogy

Imagine a toll booth that can process a fixed number of vehicles per minute, no matter their size. A line of tiny scooters uses up the toll booth just as quickly as a line of big trucks, but carries far fewer goods. Packets work the same way.

How to get more capacity

1

Add More Tunnels

Create additional tunnels on the same gateway interfaces and spread traffic across them with equal-cost multipath routing.

2

Use More Gateways

For very large needs, build multiple HA VPN gateways and balance traffic between them.

3

Consider Interconnect

When sustained high bandwidth is a requirement, a dedicated connection may be a better foundation, optionally with VPN encryption running over it.

Why real speeds are often lower

Throughput also depends on distance and quality. Longer round-trip time and any packet loss reduce how fast a single connection can move data. Testing with a single stream often gives disappointing numbers, so engineers measure using several parallel streams to see the real capacity. Remember also that the tunnel carries traffic both ways in one shared limit.

FactorEffectWhat You Can Do
Packet sizeSmall packets hit the packet limit firstAvoid needless fragmentation and tune MTU
Round-trip timeHigher delay slows single connectionsPlace gateways close to users and servers
Packet lossLoss triggers retransmission and slowdownCheck the underlying internet path
Number of flowsFew big flows may use only one tunnelUse many parallel flows where possible
Peer device capacityAn underpowered device caps the whole linkVerify the peer can handle encrypted throughput
i
Check the Peer Too

Many slow VPNs are limited not by Google Cloud but by the peer firewall, which may be doing encryption in slow software. Always verify both ends.

11Encryption, IKE Versions and Ciphers

The strength of your tunnel depends on the settings both gateways agree to use.

A cipher is a recipe for scrambling data, and a key is the secret ingredient. Both sides must use the same recipe, or they cannot understand each other. Cloud VPN supports both IKE version 1 and IKE version 2. IKEv2 is the modern version and is required for IPv6 on HA VPN. Only IKEv2 lets you choose which ciphers are used, which is a strong reason to prefer it.

Cipher families

Option

IKEv2 with AEAD

Authenticated encryption that combines scrambling and integrity checking in one step, using AES-GCM at several key sizes. This is the most modern choice.

Option

IKEv2 without AEAD

Classic pairs of an encryption method and a separate integrity method. Still supported for devices that need them.

Option

IKEv1

A legacy option with a small fixed list of ciphers, kept for older devices.

Option

Key Exchange Groups

Mathematical groups used to agree on secrets safely. Larger groups are stronger but cost more processing.

Rules that prevent most problems

Choose One Cipher per Role

Configure both sides to propose and accept a single choice for each role. Offering many options can cause the chosen cipher to change over time, which affects performance and packet size.

Match Lifetimes Exactly

The first-phase key typically lives for ten hours by default and the second-phase key for three hours. Both sides must agree. Mismatched lifetimes are a classic cause of tunnels that drop at odd intervals.

Use the Same Settings on Both Tunnels of a Pair

Identical cipher and lifetime values on redundant tunnels avoid confusing differences in behavior between them.

Cipher Choices Are Fixed After Creation

You cannot edit cipher settings on an existing tunnel. To change them you delete and recreate the tunnel, so plan a maintenance window.

i
Authentication Method

Cloud VPN authenticates with a pre-shared key. Make it long and random, store it in a secret manager and never share it in chat or email.

12MTU, Fragmentation and NAT Traversal

Three small technical details cause a surprising share of real-world VPN headaches.

MTU stands for maximum transmission unit, which is the largest packet size a network link will carry in one piece. When you wrap a packet in IPsec, the wrapping adds extra bytes, so the outer packet becomes bigger than the original. If it grows beyond the allowed size, it must be broken into pieces, which is slow and can fail on some devices.

Simple Analogy

Putting a letter into a padded envelope makes it thicker. If the mail slot has a fixed thickness, a letter that used to fit might now be too thick, and you have to split the pages into two envelopes.

Gateway MTU and payload MTU

Google’s documentation distinguishes two sizes. The gateway MTU applies to the outer encrypted packets that cross the internet. The payload MTU applies to the original packets before wrapping and after unwrapping, and it is smaller, because the wrapping needs room. Applications and operating systems should send packets that fit within the payload size, or fragmentation and slowdowns follow. The exact numbers are listed on Google’s MTU considerations page, so check it for your configuration.

IKE fragmentation

Some key exchange messages are large, especially when certificates or many proposals are involved. Cloud VPN supports IKE fragmentation, and you should enable it on the peer. Without it, large key exchange packets exceeding the gateway size can be dropped, and the tunnel may fail to come up. Some opening messages cannot be fragmented at all, which is another reason to keep proposals short.

NAT traversal

NAT, network address translation, rewrites addresses as traffic passes through a router. If a peer device sits behind such a router, the IPsec packets can be confused by it. NAT traversal solves this by wrapping IPsec packets in UDP on port 4500, which NAT devices handle well. Peers behind NAT must support it. Remember too that the peer needs a static, internet-routable address, so a device with a changing address is not suitable.

!
Symptoms of MTU Trouble

Small requests work but large downloads hang, or a website loads partly and then stalls. When you see this pattern across a VPN, suspect packet size first.

i
Peer Must Prefragment

Google Cloud requires that the peer device supports prefragmentation, which means breaking large packets before encrypting them, not after.

13Connecting VPC Networks and Other Clouds

Cloud VPN is not only for offices; it also joins cloud networks to each other.

VPC to VPC

You can place an HA VPN gateway in each of two VPC networks and join them with tunnels. This is useful when the networks belong to different projects, different organizations or different regions, and you want an encrypted private link without using other peering methods. Because both ends are in Google Cloud, setup is simpler, with no third-party device to configure.

Google Cloud to another cloud

For Amazon Web Services and Microsoft Azure, you create the HA VPN gateway on the Google side and a matching VPN gateway on the other cloud, then build tunnels between them. Each provider has its own redundancy design. For example, a connection to AWS typically uses four tunnels to match how AWS organizes its gateway tunnels. Always follow the current official tutorial for the specific provider.

Shared Services Network

A central network hosts shared tools such as authentication or logging, and application networks connect to it using HA VPN tunnels.

Multi-Cloud Data Sharing

A company keeps analytics in Google Cloud and transactional systems in another cloud, and connects them with redundant tunnels so databases can exchange data privately.

Mergers and Acquisitions

Two companies need quick, secure connectivity between their networks while a longer integration plan is being prepared.

Remote Branch Offices

Each branch connects to a regional gateway so that local staff can reach cloud applications through private addresses.

i
Choose Distinct Address Ranges

Across clouds, it is easy to accidentally reuse the same private ranges. Keep a central register of which ranges belong to which network.

14HA VPN over Interconnect and Network Connectivity Center

VPN can also run on top of dedicated links and act as the glue between many sites.

HA VPN over Cloud Interconnect

Cloud Interconnect provides dedicated physical connections between your network and Google. By default, Interconnect traffic is not encrypted, because it is private but not wrapped in IPsec. HA VPN over Cloud Interconnect places IPsec tunnels over the Interconnect connection, so you get both the reliability of a dedicated link and the encryption of a VPN. The traffic stays off the public internet entirely, which suits strict compliance rules.

Simple Analogy

Interconnect is a private road that only your company uses. Adding VPN on top is like putting your packages in locked boxes even on that private road, in case someone in the building tries to peek.

Network Connectivity Center

Network Connectivity Center is a hub where you connect many sites and networks as spokes. HA VPN tunnels can serve as spokes, so branch offices can talk to each other through Google’s network, using the cloud as a backbone. This replaces a messy web of direct connections between every pair of sites with a tidy hub.

flowchart TD
  H["Network Connectivity Center hub"]
  A["Branch office A over HA VPN"] --> H
  B["Branch office B over HA VPN"] --> H
  C["Data center over HA VPN"] --> H
  H --> V["VPC network"]
        
FIG 4 — Sites connected through a hub using VPN spokes

Other advanced uses

Cloud VPN also supports reaching Google APIs privately from on-premises hosts, and terminating GRE tunnels on virtual machines for software-defined wide area network designs. These are specialized topics, and Google notes that troubleshooting overlay networks built this way is outside its support scope.

i
Start Simple

Most teams should master a basic redundant HA VPN before adding hubs, overlays or Interconnect. Each layer adds power, and also adds ways to make mistakes.

15Planning and Setting Up an HA VPN Connection

A smooth setup is mostly decided before you create the first resource.

Beginners often open the console and start clicking. A better habit is to prepare a short plan first, because several settings cannot be changed later, such as the gateway’s IP stack type and a tunnel’s cipher choices. A few minutes of planning avoid hours of rebuilding.

The decisions to make first

Decision 1

Region

Pick the region closest to your peer network and your main workloads to reduce delay.

Decision 2

IP Stack

Choose IPv4 only, IPv6 only or dual stack. This cannot be changed after the gateway is created.

Decision 3

Topology

Decide how many peer devices and interfaces you have, and how many tunnels you need for the target SLA.

Decision 4

Address Plan

Confirm that private ranges on both sides do not overlap, and choose BGP link-local addresses and ASNs.

Decision 5

Routing Mode

Decide which subnets to advertise and how to set priorities for preferred and backup paths.

Decision 6

Crypto Settings

Choose IKE version, cipher and lifetimes that your peer can match exactly.

The setup workflow

1

Create the Cloud Router

Place it in the same region and VPC, and set the Google-side ASN.

2

Create the HA VPN Gateway

Google allocates two external IP addresses, one per interface. Give these addresses to the team that runs the peer.

3

Describe the Peer

Create an external VPN gateway resource listing the peer device’s public addresses.

4

Create the Tunnels

Build at least one tunnel per interface with a strong pre-shared key and matching crypto settings.

5

Create the BGP Sessions

Add one session per tunnel on the Cloud Router, using agreed addresses and ASNs.

6

Configure the Peer and Firewalls

Set the peer device to match, and allow the required traffic through both Google Cloud firewall rules and on-premises firewalls.

7

Test Before Relying on It

Confirm tunnels are established, BGP sessions are up, routes are learned, and a real test application can talk across the link in both directions.

!
Do Not Forget Firewall Rules

A tunnel can be perfectly healthy while traffic still fails, because a VPC firewall rule or an office firewall blocks it. A working tunnel proves the pipe exists, not that traffic is allowed through it.

i
Use Vendor Templates Carefully

Peer device vendors often offer configuration guides for Google Cloud. They are very helpful, but verify their lifetimes and cipher values against Google’s requirements, since defaults can differ.

16Security Considerations

A VPN is a security tool, but it needs its own care to stay secure.

Security for Cloud VPN has several layers: who can create and change VPN resources, how strong the encryption and secrets are, which traffic is allowed across the tunnel, and how you detect problems. Weakness in any layer can undo the strength of the others.

Layer 1

Access Control

Use Identity and Access Management roles so only network administrators can create or modify gateways, tunnels and routers. Prefer least privilege.

Layer 2

Strong Secrets

Use long, random pre-shared keys, store them in a secret manager and rotate them on a schedule or when staff change.

Layer 3

Strong Encryption

Prefer IKEv2 with modern authenticated ciphers, and retire old devices that only support legacy options.

Layer 4

Traffic Filtering

Use firewall rules on both sides to allow only the ports and networks that are truly needed across the tunnel.

Layer 5

Route Hygiene

Advertise only the networks you intend. Filter what you accept from the peer so a mistake or attack there does not redirect your traffic.

Layer 6

Policy Guardrails

Organization policies can restrict which peer IP addresses are allowed, giving central teams control over where tunnels can point.

Remember the trust boundary

A VPN protects traffic while it travels between gateways. It does not protect data once it arrives inside either network. If a compromised machine sits in your office network, the VPN will faithfully carry its traffic into your cloud. That is why firewall rules, segmentation and application-level security remain essential even with a VPN.

Simple Analogy

A secure armored truck keeps thieves from stealing goods on the road, but it cannot stop an employee at the warehouse from handing goods to the wrong person. Roads and warehouses both need protection.

Audit and change control

Record who changed tunnels, routes and keys. Review changes in a formal process, because a small routing change on a VPN can expose a network or cut off a whole office. Keep clear documentation of which tunnel connects which site and who owns each peer device.

!
Common Mistake

Allowing all traffic from the peer network into the VPC because it is a trusted site. Trust is not permanent. Allow only what each application needs.

17Monitoring, Logging and Metrics

If you cannot see the tunnel, you cannot trust the tunnel.

Google Cloud integrates Cloud VPN with its monitoring and logging tools. You can watch whether tunnels are established, how much data they carry, how many packets are dropped and whether BGP sessions are healthy. You can also read logs that record events such as tunnel negotiation steps and failures, which are very useful when something goes wrong.

Tunnel State
Is the tunnel up and established
BGP Status
Is the routing session healthy
Throughput
Bytes and packets sent and received

What to watch

SignalWhat It Tells YouWhy It Matters
Tunnel establishedWhether encryption is up between the gatewaysA down tunnel means a lost path
BGP session stateWhether routes are being exchangedA tunnel can be up while routing is broken
Sent and received bytesHow much data flows in each directionShows how close you are to capacity
Packet ratePackets per second through the tunnelReveals when you approach the per-tunnel packet limit
Dropped packetsTraffic lost in the tunnelMay point to MTU, rate or configuration problems
Route countsHow many routes are learned and advertisedSudden changes may signal a peer mistake

Alerts that pay off

Create alerts for a tunnel leaving the established state, for a BGP session going down, and for throughput approaching the capacity you planned. Send alerts to the people who can actually act on them, and test the alert path occasionally so you know it works.

Testing the path

Google’s Network Intelligence tools include connectivity tests that analyze whether a path between two endpoints should work, checking routes and firewall rules. They are a quick way to find out whether a problem lies in the VPN or in a rule somewhere else.

Simple Analogy

Monitoring a tunnel is like watching the dashboard of a car. The engine light, the speedometer and the fuel gauge each warn you about different problems, and you want to see them before the car stops on the highway.

i
Baseline First

Record normal traffic levels in the first weeks. Without a baseline you cannot tell whether a number is a problem or just Monday morning.

18Troubleshooting Common Problems

Most VPN problems fall into a handful of families, and a calm checklist solves them faster than guessing.

Work from the bottom up. First ask whether the two gateways can reach each other, then whether the tunnel is established, then whether BGP is up, then whether routes are present, and finally whether firewalls allow the traffic. Each step isolates a different layer.

The Tunnel Will Not Come Up

Check that the peer address and the Google gateway address are correct, that UDP 500 and 4500 and ESP are not blocked, and that the pre-shared key matches exactly. Compare IKE version, ciphers and lifetimes on both sides.

The Tunnel Drops Repeatedly

Often caused by mismatched lifetimes, rekey problems, a peer device restarting or a flaky internet path. Check logs for the reason given at each drop.

The Tunnel Is Up but BGP Is Down

Verify the link-local addresses, the ASN values on both ends, and that the peer is actually running BGP on the tunnel interface.

BGP Is Up but Traffic Fails

Check that routes are learned, that firewall rules allow the traffic on both sides, that return routes exist and that address ranges do not overlap.

Slow Transfers or Hanging Downloads

Suspect packet size or packet-rate limits. Look at MTU settings, test with parallel streams, and see whether the tunnel is near its limit.

Failover Does Not Behave as Expected

Check that priorities are set correctly, that both tunnels advertise the same prefixes, and that the peer uses the same preference logic.

Good troubleshooting habits

Change only one thing at a time and write down what you changed. Keep the logs from the moment of failure, since they may rotate away. When you contact support or the peer’s vendor, share tunnel names, regions, timestamps and exact error text so they can help quickly.

i
Check Both Directions

A one-way problem is common. Traffic may leave your office fine, but the return route in the cloud is missing, or the reverse. Test connections starting from each side.

19Limitations and Things to Know

Every service has edges, and knowing them early prevents bad designs.

Strengths

  • Quick to deploy over an existing internet connection
  • Encrypted by default with IPsec
  • Managed gateway with a strong availability target for HA VPN
  • Dynamic routing through Cloud Router
  • Works with many peer vendors and other clouds
  • Lower cost than dedicated circuits

Limitations

  • Per-tunnel packet-rate limit, so more tunnels are needed for high throughput
  • Performance depends on the public internet path
  • Pre-shared key authentication only
  • No client-to-gateway or SSL VPN
  • Peer needs a static, internet-routable address
  • Cipher settings cannot be edited after tunnel creation

Other details to remember

Detail

Only Specific Traffic Reaches the Gateway

Gateway external addresses accept only ESP and UDP on ports 500 and 4500.

Detail

No AH or Transport Mode

Only ESP in tunnel mode with authentication is supported.

Detail

Replay Protection Is Always On

A fixed window of packets is used and cannot be turned off.

Detail

Dead Peer Detection Timing Is Fixed

The detection interval is not configurable.

Detail

Reserved Peer Addresses Not Allowed

Documentation address ranges cannot be used as peer IPs.

Detail

Stack Type Is Permanent

The gateway’s IPv4, IPv6 or dual-stack choice cannot be changed later.

!
Check the Current Documentation

Limits, supported ciphers and features change over time. Use this guide to understand concepts, and confirm exact values on Google’s official pages before you commit to a design.

20Understanding the Cost

The bill has a few simple parts, and the biggest one is often data leaving Google Cloud.

Cloud VPN pricing has three kinds of charges. First, an hourly charge for each tunnel attached to a gateway, at a rate that depends on the gateway’s location. Second, a monthly charge for IPsec traffic, which is billed as data transfer. Third, an hourly charge for an external IP address that is reserved for a gateway but not used by any tunnel.

Cost ItemHow It Is ChargedNotes
VPN tunnelsPer tunnel, per hourHA VPN tunnels are created in pairs, and both are billed at the same rate
Traffic to another Cloud VPN gatewayLike data transfer between virtual machinesDepends on the destination gateway’s location
Traffic to a gateway outside Google CloudLike internet data transfer outOften the largest part of the bill
Unused external IP addressPer hourApplies only when an address is not used by a tunnel
Incoming traffic from the peerFreeIngress is not charged
Used external IP address and forwarding rulesFreeNo extra charge while in use

For a feel of the numbers, Google’s own pricing example for a US region used a rate of a few cents per tunnel per hour for two tunnels, plus per-gigabyte transfer charges for outgoing data. Rates differ by region and change over time, so always use the pricing page and the calculator for your own location.

Where costs surprise teams

Data Transfer Grows Quietly

A backup or large data sync across the tunnel can move terabytes. Estimate monthly outbound volume before choosing a design.

Idle Resources

Forgotten test tunnels still bill by the hour, and reserved but unused addresses accumulate small charges.

Redundant Tunnels

More tunnels mean more hourly charges, but the cost is usually small compared with an outage. If a tunnel is used only for failover, outgoing data is charged only on the active tunnel.

i
Compare with Interconnect at High Volume

If you move very large volumes of data continuously, compare the total cost of VPN with a dedicated connection. At high volume, data transfer pricing can make a dedicated link cheaper.

21Cloud VPN Compared with Other Connectivity Options

The best choice depends on bandwidth, budget, timeline and security needs.

OptionPathEncrypted by DefaultBest For
Cloud VPN (HA VPN)Public internetYes, with IPsecQuick setup, moderate bandwidth, backups and smaller sites
Dedicated InterconnectDirect physical link to GoogleNoHigh, steady bandwidth for large enterprises
Partner InterconnectLink through a service providerNoDedicated-style connection without being at a Google location
HA VPN over InterconnectPrivate link plus IPsecYesStrict compliance with high bandwidth
VPC Network PeeringGoogle’s internal networkHandled within Google’s networkJoining VPC networks inside Google Cloud

A simple way to decide

1

Need It Fast and Cheap

Choose HA VPN. It uses the internet you already have and can be ready within days.

2

Need Large, Steady Bandwidth

Choose an Interconnect option, and keep VPN as a backup path if budget allows.

3

Need Encryption on a Private Link

Choose HA VPN over Cloud Interconnect.

4

Joining Two Google Cloud Networks

Consider VPC Network Peering for simplicity, and HA VPN when you need encryption, overlapping flexibility or specific routing control.

i
Combine Them

A popular pattern is a dedicated link as the main path and HA VPN as the backup. You get high bandwidth most days and an encrypted fallback when the physical link has trouble.

22Moving from Classic VPN to HA VPN

If you still run Classic VPN, a planned move to HA VPN is the safest long-term direction.

Classic VPN gateways have one interface and use static routes, with a lower availability promise. With BGP for Classic tunnels deprecated, any design that needs dynamic routing, or any rebuild of an existing BGP tunnel, must go to HA VPN. Existing unmodified Classic tunnels continue to pass traffic, but BGP-based ones have no availability SLA, so waiting carries a risk.

A careful migration approach

1

Inventory Current Tunnels

List every Classic gateway, tunnel, route, peer device and the applications that depend on them.

2

Check Peer BGP Support

HA VPN requires BGP, so confirm your on-premises devices support it, or plan to upgrade them.

3

Build HA VPN Alongside

Create the new gateway, Cloud Router and tunnels in parallel with the old ones, and bring up BGP sessions.

4

Test with Preferred Priorities

Verify that routes are learned and that test traffic can use the new path without disturbing production.

5

Shift Traffic in a Maintenance Window

Make the new path preferred, watch carefully, and keep the old tunnels ready for quick rollback.

6

Retire Classic Resources

After a stable period, delete old tunnels, gateways and unneeded routes and update documentation.

flowchart LR
  A["Classic VPN in production"] --> B["Build HA VPN in parallel"]
  B --> C["Test routes and traffic"]
  C --> D["Shift preference to HA VPN"]
  D --> E{"Stable"}
  E -->|"Yes"| F["Remove Classic VPN"]
  E -->|"No"| G["Roll back and investigate"]
  G --> C
        
FIG 5 — A safe, reversible migration path
!
Plan for Billing and Windows

While old and new tunnels run together you pay for both. Schedule a maintenance window for the final shift, and follow Google’s official move guide and checklists for your exact setup.

23Design Patterns and Anti-Patterns

Teams that succeed repeat a few habits, and teams that struggle repeat a few mistakes.

Helpful patterns

Pattern

Two Tunnels, Two Interfaces

Always connect both HA VPN interfaces to the peer to qualify for the highest availability.

Pattern

Redundant Peer Devices

Use two peer devices in different racks or locations so a single device failure does not break the link.

Pattern

Hub and Spoke

Use a central hub for many branches to avoid a mesh of direct connections.

Pattern

Interconnect with VPN Backup

Use a dedicated link as primary and HA VPN as an encrypted fallback.

Anti-patterns to avoid

ANTI-PATTERN-01 Avoid
Problem

An HA VPN gateway is built with only one tunnel because it was enough in testing.

Why It’s Harmful

There is no redundancy and no availability promise. A single tunnel, device or internet hiccup causes an outage.

Correct Approach

Create at least one tunnel from each interface to the matching peer interface, and test failover deliberately.

ANTI-PATTERN-02 Avoid
Problem

Both tunnels are run active-active at ninety percent load each.

Why It’s Harmful

When one tunnel fails, the other receives double the traffic and cannot cope, so users feel a severe slowdown during the exact moment redundancy was supposed to help.

Correct Approach

Size so that either tunnel alone can carry peak load, or add more tunnels and gateways for headroom.

ANTI-PATTERN-03 Avoid
Problem

Overlapping private address ranges are discovered only after the tunnel is built.

Why It’s Harmful

Routers cannot choose a correct destination, forcing risky renumbering or translation workarounds.

Correct Approach

Keep a central address plan and check for overlaps before any connectivity project starts.

ANTI-PATTERN-04 Avoid
Problem

Pre-shared keys are short, reused across tunnels and shared through email or chat.

Why It’s Harmful

Anyone who learns the key might impersonate a gateway, and one leak compromises every tunnel using it.

Correct Approach

Generate long random keys per tunnel, keep them in a secret manager and rotate them regularly.

24Best Practices and Common Mistakes

A short checklist of habits shared by teams that run reliable VPNs.

Best Practices

  • Choose HA VPN for every new design
  • Build tunnels from both interfaces to meet the highest SLA
  • Use BGP with consistent priorities on both sides
  • Prefer IKEv2 with modern authenticated ciphers
  • Match lifetimes and cipher choices exactly on both ends
  • Keep a central plan for private address ranges
  • Store and rotate keys using a secret manager
  • Monitor tunnel state, BGP state and throughput with alerts
  • Test failover on purpose before you need it
  • Document owners, tunnels and peers clearly

Common Mistakes

  • Assuming one tunnel is high availability
  • Forgetting firewall rules on one side
  • Ignoring MTU and packet size
  • Using mismatched IKE lifetimes
  • Testing speed with a single stream and judging the VPN
  • Leaving test tunnels running and billing
  • Accepting all routes from the peer without filtering
  • Never rehearsing a failover

Ownership and communication

VPN projects involve network engineers on both sides, security staff, cloud teams and application owners. Agree who owns each tunnel and who is called when it fails. Share peer device contacts in advance, because a failed tunnel at night is much worse when nobody knows who administers the other end.

Review regularly

Traffic grows, devices age and business needs change. Review capacity, cipher choices and routing every few months. A VPN that was perfect two years ago can be the bottleneck today.

“A tunnel that has never been tested in failure is only a hope, not a design.”

25Real-World Scenarios

These typical situations show how the ideas fit together.

A Retail Chain Linking Stores to the Cloud

Each store runs a small router that connects to a regional HA VPN gateway. Point-of-sale systems reach cloud services over private addresses, with two tunnels per store site for resilience and BGP handling route updates automatically.

A Hospital Group Meeting Compliance Rules

Patient systems stay in a private data center while analytics run in Google Cloud. The team uses HA VPN with modern ciphers, strict firewall rules, central key storage and detailed logs for auditors.

A Software Company Connecting Two Clouds

The main product runs on Google Cloud while a legacy billing system remains elsewhere. Four tunnels to the other cloud provider carry database replication, and alerts warn when any tunnel goes down.

A Manufacturer with Interconnect and VPN Backup

A dedicated Interconnect handles daily data from factory systems, while HA VPN stands ready as an encrypted backup path. When the physical link is under maintenance, traffic moves to the VPN with slightly lower bandwidth.

A Startup Joining Separate Projects

Development and production live in separate VPC networks in different projects. HA VPN tunnels join them with controlled routing, so only selected subnets can talk to each other.

A Company Retiring Classic VPN

An older Classic VPN with static routes is replaced by HA VPN in parallel. After testing, traffic is shifted during a weekend window, and the old gateway is removed a month later.

The common thread is planning. Success depends less on clever settings and more on clear address plans, matching configuration on both sides, tested failover and steady monitoring.

26A Closer Look at Cloud Router and BGP

Because HA VPN depends entirely on BGP, a little extra understanding here pays off for the whole life of the connection.

A BGP session is a conversation between two routers over a tunnel. The Cloud Router on the Google side and the router on the peer side introduce themselves, share which networks they can reach, and then keep checking that the other is still alive. When something changes, such as a new subnet or a failed tunnel, an update is sent immediately, so nobody edits tables by hand.

Simple Analogy

Two shopkeepers on different streets agree to phone each other whenever they stock a new product or run out of an old one. Each keeps a live list of what the other has, so customers are always sent to the right street.

The settings you will meet

Setting

Autonomous System Number

Each side has an ASN. For private connections, teams normally use numbers from the private range and make sure the two sides differ.

Setting

Link-Local BGP Addresses

Every tunnel gets a small private address block from the link-local range, giving each end of the session its own address.

Setting

Advertised Routes

By default the Cloud Router advertises the subnets of its VPC. Custom advertisements let you choose exactly which ranges to announce.

Setting

Route Priority

A number attached to advertised routes that tells the peer which path to prefer when several exist.

Setting

Dynamic Routing Mode

A VPC network can learn routes only in the region of its Cloud Router or across all regions, which changes how far the learned routes reach.

Setting

Fast Failure Detection

Optional features such as Bidirectional Forwarding Detection can help the routers notice a broken path faster than ordinary timers.

Regional or global learning

A common surprise is that learned routes may be visible only to subnets in the same region as the Cloud Router. If your applications run in several regions and all need to reach the office, choose the dynamic routing mode that shares learned routes across regions, or build gateways in each region. This single setting explains many cases where one region works and another does not.

Control what you share

Advertising everything is convenient, but it also tells the peer about every subnet you own. Use custom advertisements when only certain ranges should be reachable from the other side. In the opposite direction, apply filters on the peer so that unexpected routes are ignored. Both habits reduce the harm of a configuration mistake.

!
Keep Priorities Consistent

If one tunnel advertises a better priority than the other on one side but the peer prefers the reverse, traffic can leave by one path and return by another. This asymmetric routing breaks stateful firewalls. Agree on one clear primary and backup on both ends.

i
Read Learned Routes

After setup, look at the routes the Cloud Router has learned and advertised. Comparing them with your address plan is the fastest way to catch a missing or unexpected network.

27Capacity Planning and Testing Your VPN

A VPN that has never been measured is a surprise waiting for the busiest day of the year.

Capacity planning means estimating how much traffic will cross the tunnel and making sure the design can carry it, even when part of it fails. Testing means proving those estimates are right and that failover behaves as expected. Both are easy to skip when everything seems fine, and both are very valuable when it does not.

Estimating the demand

Start by listing what will cross the link: database replication, file transfers, backups, application calls, monitoring data and user traffic. For each, estimate both the average and the peak, since the tunnel must survive the peak. Include growth for the next year, and remember that backups and batch jobs often create short, intense bursts that dwarf normal traffic.

1

Measure Current Traffic

Use existing network statistics from the office or data center to see real averages and peaks.

2

Convert to Packets and Bandwidth

Remember the per-tunnel packet limit, which depends on average packet size, not only on gigabits.

3

Apply the Failure Rule

Make sure peak load still fits after losing one tunnel, one interface or one peer device, whichever failure you plan to survive.

4

Add Headroom

Leave a safety margin so a normal growth spike does not become an incident.

Types of tests

TestPurposeHow
Connectivity testConfirm that routes and firewall rules allow the intended pathsUse network analysis tools and simple connection checks from both sides
Throughput testFind real usable bandwidthRun transfers with several parallel streams in both directions
Latency and loss testUnderstand the quality of the internet pathMeasure round-trip time and loss over several hours and days
Failover drillProve that traffic moves to the surviving tunnelDisable one tunnel in a planned window and watch what happens
Application testMake sure real software behaves wellRun key business flows over the tunnel under load
Simple Analogy

A fire drill does not mean you expect a fire. It proves that everyone knows the exits and that the doors actually open. A failover drill does the same for your tunnels.

Write acceptance criteria

Before the drill, write down what success looks like: how long failover may take, how much traffic loss is tolerable, and what throughput must be reached. With written targets, the result is a clear pass or fail, not an argument.

i
Drill Outside Peak Hours

Run failover tests in a quiet period, announce them in advance and have the peer team ready to restore the tunnel quickly. A practiced drill builds confidence without risk to customers.

28Operating a VPN Day to Day

Building the tunnel is a project, but keeping it healthy is a habit.

After the first success, attention drifts elsewhere. Months later, a key expires, a peer device is upgraded, a new subnet is added and nobody remembers how the tunnel was set up. Good operations prevent these slow surprises through a few simple routines.

Routine

Runbooks

Write short step-by-step guides for common tasks and failures, including who to contact on the peer side.

Routine

Change Control

Review every change to tunnels, routes and firewall rules, and schedule risky changes in agreed windows with a rollback plan.

Routine

Key Rotation

Replace pre-shared keys on a schedule and whenever someone with access leaves, coordinating with the peer team.

Routine

Peer Maintenance Awareness

When the peer device is upgraded or restarted, expect a tunnel to drop, and make sure the second tunnel carries traffic meanwhile.

Routine

Infrastructure as Code

Describe gateways, tunnels and routers in version-controlled templates so setups are repeatable and changes are reviewable.

Routine

Capacity Reviews

Look at traffic trends every few months and add tunnels before the old ones are saturated.

Keep the documentation alive

Maintain one diagram and one table that show each tunnel, its two endpoints, its ASNs, its address blocks, its owner and its purpose. Update them with every change. When an incident happens at night, this single page can save an hour of searching.

Practice incidents

Hold occasional tabletop exercises where the team talks through a scenario: a tunnel drops, BGP flaps or throughput collapses. Walk through who checks what, in which order. These conversations reveal missing contacts, unclear ownership and unclear alerts, all at no risk to production.

Keep an eye on the platform

Google announces changes through release notes and deprecation pages, as it did when BGP for Classic VPN was deprecated. Assign someone to follow them, so you learn about changes from a notice and not from an outage.

!
Do Not Rely on One Expert

If only one person understands the VPN, you have a hidden single point of failure. Share knowledge through documentation, drills and pairing.

29Frequently Asked Questions

Q1Is Cloud VPN the same as a VPN for remote employees?

No. Cloud VPN connects whole networks to each other. It does not provide client-to-gateway or SSL VPN access for individual users on their own devices.

Q2Should I use HA VPN or Classic VPN?

Use HA VPN for any new design. Classic VPN is legacy, supports only static routing and has a lower availability promise, and BGP for Classic tunnels is deprecated.

Q3How many tunnels do I need?

At least two for the highest availability, with one from each HA VPN interface to the matching peer interface. Add more for extra bandwidth, and follow the provider’s tutorial when connecting to another cloud, since some use four.

Q4How fast is a Cloud VPN tunnel?

Each tunnel is limited by packet rate, roughly equal to between one and three gigabits per second depending on packet size. Real speeds also depend on delay, loss and the peer device.

Q5Do I have to use BGP?

For HA VPN, yes. Tunnels on HA VPN gateways must use dynamic routing with BGP through Cloud Router. Static routing applies to Classic VPN only.

Q6What is the difference between active-active and active-passive?

In active-active both tunnels carry traffic at once, giving more capacity but less headroom after a failure. In active-passive one tunnel carries traffic and the other waits as a backup.

Q7Is VPN traffic encrypted between my own VPC networks too?

Yes, traffic through HA VPN tunnels is encrypted with IPsec, even when both ends are Google Cloud networks. Choose it when you specifically need that encryption or routing control.

Q8Why is my tunnel up but my application cannot connect?

Usually a firewall rule, a missing route or overlapping address ranges. An established tunnel proves encryption works, not that traffic is permitted.

Q9Can I change cipher settings on an existing tunnel?

No. Cipher settings cannot be edited after creation. You delete the tunnel and create a new one, so plan a maintenance window.

Q10Does my peer device need a fixed public IP address?

Yes, the peer needs a static, internet-routable IP address. Peers behind NAT must support NAT traversal.

Q11Is data coming into Google Cloud through the VPN charged?

No. Incoming traffic from the peer is free. You pay for tunnel hours and for outgoing data, plus any unused reserved external address.

Q12When should I choose Interconnect instead?

When you need large, steady bandwidth or more predictable performance than the public internet can give. Many teams use Interconnect as the main path and HA VPN as the backup.

Q13Can I put VPN on top of Interconnect?

Yes. HA VPN over Cloud Interconnect adds IPsec encryption to a private dedicated connection, which suits strict compliance needs.

Q14What happens if one tunnel fails?

Routes through the failed tunnel are withdrawn and traffic moves to the remaining tunnel. This can take a little time, and the survivor must have enough capacity for peak load.

Q15How do I know the VPN is healthy?

Watch tunnel state, BGP session state, throughput and dropped packets in monitoring, and set alerts for changes. Test real application traffic regularly as well.

Q16Which values must match on both sides?

The pre-shared key, IKE version, cipher choices, key lifetimes, the tunnel addresses and the ASNs used for BGP. Differences in any of these are the most common reason for failed or unstable tunnels.

Q17What should I do if this guide and the documentation disagree?

Trust the official documentation. Supported ciphers, limits and prices change, and an article is only correct on the day it was written.

Q18Why can only one region reach my office even though the tunnel is healthy?

Learned routes may be limited to the region of the Cloud Router. Check the dynamic routing mode of the VPC network, or build gateways in each region that needs access.

Q19How often should I rotate the pre-shared key?

Follow your organization’s security policy, and rotate immediately when someone who knew the key leaves or the key may have been exposed. Coordinate the change with the peer team, since both ends must update, and plan for a brief tunnel restart.

Q20Can one HA VPN gateway connect to several sites?

Yes, a gateway can hold several tunnels to different peers, using separate peer resources and BGP sessions. For many sites, consider a hub design with Network Connectivity Center to keep management tidy.

Q21Does a VPN protect me from attacks inside my networks?

No. It protects traffic while it crosses the internet between gateways. Firewalls, segmentation, patching and application security are still needed on both sides.

Q22What is the best first project for learning Cloud VPN?

Connect two test VPC networks with HA VPN. You avoid third-party devices, can practice BGP, tunnels and routes, can test a failover by disabling one tunnel, and can delete everything afterward to avoid ongoing charges.

Q23Why does my transfer speed look low in a single download test?

A single stream is limited by round-trip time, packet loss and the way traffic is spread across tunnels. Test with several parallel streams, and compare results in both directions before drawing conclusions.

Q24Is it safe to use the same ASN on both sides?

Usually the two sides use different ASNs, because the routers treat the connection as one between separate networks. Follow the guidance for your peer vendor and Google’s documentation, and agree on the values before building.

Q25What should I include in a handover document for the operations team?

A diagram of gateways, tunnels and peers, the address and ASN plan, key storage location, contact details on the peer side, alert descriptions, the failover test results and a short runbook for common failures.

30Summary and Key Takeaways

Cloud VPN gives you a quick, encrypted and well-understood way to connect your networks to Google Cloud, to other clouds and to each other. HA VPN is the gateway to build with today, combining two interfaces, BGP routing through Cloud Router and a strong availability target when built with redundant tunnels. The technology is only half the story. Careful address planning, matching settings on both sides, sensible capacity, strong secrets and regular failover testing are what turn a working tunnel into a dependable connection your business can trust.

Key Takeaways

  • Cloud VPN joins networks, not people — it creates encrypted IPsec site-to-site tunnels over the internet between your peer network and a VPC, or between two VPCs.
  • Choose HA VPN for new designs — it has two interfaces, uses BGP through Cloud Router and offers the highest availability target, while Classic VPN is legacy and its BGP support is deprecated.
  • Redundancy must be built, not assumed — create tunnels from both interfaces to the matching peer interfaces, and make the peer side redundant too.
  • Capacity is per tunnel — each tunnel is limited by packet rate, so add tunnels or gateways for more throughput and size for the failure case.
  • Matching settings prevent most outages — pre-shared key, IKE version, ciphers, lifetimes and BGP details must agree exactly on both ends.
  • Watch packet size, firewalls and routes — MTU, firewall rules and overlapping addresses cause many of the confusing failures.
  • Monitor, rehearse and review — alert on tunnel and BGP state, test failover on purpose and revisit capacity and ciphers regularly.