简体   繁体   English

通过 VPN 将 Google Cloud SQL 实例连接到外部副本

[英]Connect Google Cloud SQL instance to external replica via VPN

We have a (route based) VPN between our data center and Google Cloud.我们的数据中心和谷歌云之间有一个(基于路由的)VPN。 I'm trying to set up a replica of one of our on-prem databases in Google Cloud.我正在尝试在 Google Cloud 中设置我们的一个本地数据库的副本。

With current setup, Google Cloud SQL instance is unable to communicate with our on-prem instance via local IP through VPN tunnel because (my understanding is) no routes exist from the sub-network on which Cloud SQL instance is placed by Google.在当前设置下,Google Cloud SQL 实例无法通过 VPN 隧道通过本地 IP 与我们的本地实例通信,因为(我的理解是)没有来自 Google 放置 Cloud Z9778840A0100CB30C92ZB287 实例的子网络的路由。

Will this work with Cloud Router?这适用于 Cloud Router 吗?

Is the only option is exposing our on-prem DB to the internet to get this working?唯一的选择是将我们的本地数据库暴露在互联网上以使其正常工作吗?

Based from this link Cloud router is needed to connect to external source.基于此链接,需要云路由器连接到外部源。 This is to advertise all subnet that are visible to the cloud router.这是为了通告对云路由器可见的所有子网。 You can check the link for more information.您可以查看链接以获取更多信息。

Regarding exposing your DB to the internet, not necessarily and that is not the only option if you like to connect your on-prem DB to the Google cloud network your idea of cloud VPN will also do since VPN tunnel is a secure connection between on-prem network and Google cloud network.关于将您的数据库暴露在互联网上,不一定,如果您想将您的本地数据库连接到谷歌云网络,那么这不是唯一的选择,您的云 VPN 的想法也可以,因为 VPN 隧道是 on- 之间的安全连接prem 网络和谷歌云网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用外部源 mysql 在谷歌云 sql 中设置副本时出现定义器错误 - Definer error while setting up a replica in google cloud sql with an external source mysql 如何通过外部 python 程序连接云 SQL 服务器? - How to connect Cloud SQL Server via external python program? 如何通过 CLI 获取 Google Cloud SQL 实例的 IP - How to get IP of Google Cloud SQL instance via CLI Cloud SQL 实例未通过 Cloud Run 连接 - Cloud SQL instance not connecting via Cloud Run 在其他项目上创建 Google 云 SQL MySQL 只读副本 - Create Google cloud SQL MySQL read replica on a different project 如何从 IPV6 地址连接到 GCP(谷歌云平台)云 SQL 实例? - How to connect to a GCP (Google Cloud Platform) Cloud SQL instance from an IPV6 address? 如何从我的电脑连接到谷歌云平台中私有 ip 的 sql 实例 - How to connect from my pc to sql instance with private ip in google cloud platform 从元数据库云连接到谷歌云 Sql - Connect To Google Cloud Sql From Metabase cloud 云 SQL (postgres) 到副本实例的外部数据包装器连接超时 - Cloud SQL (postgres) foreign data wrapper connection time out to replica instance 无法通过 SSH 连接到 Google Cloud VM - Unable to connect to Google Cloud VM via SSH
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM