Vivi
Vivi

Reputation: 145

How to access a network though peering in GCP-AWS vpn?

I have the following topology:

I want to make a VPN between GCP and AWS, so that from C I can access A and B. But When I created the VPN tunnel between C and A, C could only access A. How C could access B through VPN in this case?

Upvotes: 2

Views: 3397

Answers (2)

Avinoam Meir
Avinoam Meir

Reputation: 507

You can reach B through the VPN by using custom routes exchange. See here

Upvotes: 0

Marcin
Marcin

Reputation: 238199

VPC peerings are not transitive. From GCP docs:

Only directly peered networks can communicate. Transitive peering is not supported.

Same goes for VPN connection in AWS:

VPN will only route traffic to the VPC it is connected to and VPC peer connections are not ‘transitive’.

So if you have VPN between C and A, only these can communicate. There is no transitive connection from C to B. Would need to have second VPN from C to B.

Upvotes: 4

Related Questions