Search code examples
google-cloud-platformvpcgoogle-cloud-networking

Connecting to Peered VPC with a VPN connection


I have setup two VPC's (VPCA 10.102.0.0/16 and VPCB 10.103.0.0/16) on google compute cloud and VPCA is peered with VPCB.

I have setup a VPN connection from my office (10.101.0.0/16) where I work to VPCA.

I want to access the instances on VPCB from my office.

I have already setup a static route from the office network to VPCB.

How do I go about doing this...Thanks in advance.


Solution

  • There are some restrictions in the VPC network peering. One of them is VPNs are not reachable across the peered VPC networks. You can see this document to find more information about the restrictions of VPC network peering.

    If you want to access VPCB from your office, you have to create another VPN tunnel between them.