Introduction
An encrypted connection between a device and a network via the Internet is known as a virtual private network, or VPN. Secure transmission of sensitive data is aided by the encrypted connection. It makes it impossible for unauthorised parties to eavesdrop on the traffic and enables remote work for the user. The use of VPN technology is common in business settings.
Through an IPsec VPN connection, Cloud VPN safely joins your peer network to your Virtual Private Cloud (VPC) network. One VPN gateway encrypts traffic between the two networks, and the second VPN gateway decrypts it. Your data is protected as it moves across the internet thanks to this step. Additionally, you can link up two Cloud VPN instances.

In this blog we are going to learn about cloud VPN supported by Google cloud in particular.
Advantages of Cloud VPN
Direct Cloud Access: Over time, businesses have relied more and more on cloud-based services for data storage and application development. Traditional VPNs increase network latency for cloud-based resources because they route all traffic through the corporate network. Direct, secure remote access to the company's cloud deployment is made possible through a cloud VPN.
Global Accessibility: Since corporate networks are the only places where hardware VPNs can be installed, this limits their applicability internationally and raises network latency for a distributed workforce. Cloud-hosted VPNs offer better network performance and access because they are accessible from anywhere in the world.
Flexibility: Because traditional VPNs can be challenging to set up and configure, they frequently make only gradual adjustments to shifting network architectures and needs. A cloud-based VPN offers more usability and flexibility and is managed by the cloud service provider.
Scalability: The maximum number of connections or bandwidth that traditional hardware VPNs can support restricts their capacity to scale to meet rising demand. Like any cloud-based solution, cloud-based VPNs scale more easily, allowing a company to adjust VPN user numbers and bandwidth as necessary.
Mobile Support: Since mobile devices are becoming more and more popular among remote workers, corporate VPN software is frequently challenging to use on them. For these remote professionals, cloud VPN solutions frequently incorporate explicit mobile support.
Types of Cloud VPN

HA VPN
By using an IPsec VPN connection in a single region, the high-availability (HA) Cloud VPN solution known as HA VPN enables you to safely link your on-premises network to your VPC network. An SLA of 99.99 percent service availability is offered by HA VPN.
Google Cloud automatically selects two external IPv4 addresses when you construct a HA VPN gateway, one for each of its predetermined number of two interfaces. To support high availability, each IPv4 address is automatically selected from a different address pool. Multiple tunnels are supported by each interface of the HA VPN gateway. Additionally, you can design numerous HA VPN gateways. The IP addresses are made available for reuse by Google Cloud when the HA VPN gateway is deleted. One active interface and one external IP address are sufficient to build a HA VPN gateway; however, this configuration does not offer a 99.99 percent service availability SLA.
Classical VPN
All Cloud VPN gateways built prior to the launch of HA VPN are referred to as Classic VPN gateways.
Unlike HA VPN, Classic VPN gateways offer tunnels that employ static routing and have a single interface and external IP address (policy-based or route-based). For tunnels connecting to third-party VPN gateway software running on Google Cloud VM instances, you can additionally configure dynamic routing (BGP) for Classic VPN
The SLA for traditional VPN gateways is 99.9% service availability.
Traditional VPN entry points do not support IPv6.
Comparison between Classical and HA VPN
Features |
HA VPN |
Classical VPN |
SLA | When configured with two interfaces and two external IP addresses, it offers a SLA of 99.99 percent. | provides a SLA of 99.9%. |
Creation of external IP addresses and forwarding rules | External IP addresses are generated from a pool without the need for forwarding rules | It is necessary to create external IP addresses and forwarding rules. |
Supported routing options | Routing only using dynamic (BGP). | Fixed routing (policy-based, route-based). Only tunnels that link to third-party VPN gateway programmes running on Google Cloud VM instances are supported for dynamic routing. |
Two tunnels from one Cloud VPN gateway to the same peer gateway | Supported | Not supported |
API resources | referred to as the vpn-gateway source | The resource is called the target-vpn-gateway. |
IPv6 traffic | Supported | Not supported |