使用gcp vpn,可以使用内部IP地址访问资源吗?
使用 GCP VPN 将我的本地网络与 GCP VPC 连接。我可以从本地网络使用资源的内部 IP 地址访问 GCP VPC 中的资源。
如果答案是肯定的,这是否适用于所有 VPN。
我已在此页面搜索“内部”,但没有找到任何线索 - Cloud VPN概述
On connecting my on-prem network with GCP VPC using GCP VPN. From the on-prem network can i access the resources in GCP VPC using the internal ip address of resources.
If the answer is yes, does this apply to all VPN's in general.
I have searched this page for "internal" but found no clue - Cloud VPN overview
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,这就是 VPN 的原理:通过公共互联网桥接 2 个网络,但使用加密通信来保持流量秘密。
当然,存在限制和约束:IP范围重叠、路由、网络公告(如果支持BGE协议)、防火墙……
Yes, it's the principle of a VPN: bridge 2 networks, through the public internet, but with encrypted communication to keep the traffic secret.
Of course, there are limits and constraints: IP range overlap, routing, network announcement (BGE protocol if supported), firewalls,...
是的,您可以从本地网络使用内部 IP 地址访问 GCP 资源。
有 4 种类型的私人访问选项。这些私有访问选项可用于允许具有内部 IP 地址的 VM 实例与某些 API 和服务进行通信。要选择支持您需要访问的 API 和服务的选项,请参阅文档 私人访问选项。您可以配置其中一个或所有选项。它们彼此独立运作。
私有访问选项有 4 种类型:
本地主机的私有 google 访问:
私有 google对与本地主机一起使用的本地主机的访问权限。本地主机的专用 Google Access 是通过 Cloud VPN 隧道或 Cloud Interconnect 连接 (VLAN) 路由流量来通过互联网连接 Google API 和服务的替代方案。此类本地主机可能会也可能不会配置外部 IP 地址。当您想要通过 VPC 网络连接到 Google API 和服务时,可以使用此选项。当对本地主机使用私有 google 访问时,您的本地主机不需要为其分配外部 IP 地址。
有关详细信息,请参阅文档本地主机的私有 Google 访问权限< /a>.
Yes you can access the GCP resources with internal IP addresses from on-premises network.
There are 4 types of private access options. These private access options can be used to allow VM instances with internal IP addresses to communicate with certain API’s and services. To choose an option that supports the APIs and services that you need to access refer to the documentation private-access-options. You can configure one or all of these options. They operate independently of each other.
4 types of private access options are:
Private google access for on-prem hosts:
Private google access for on-prem hosts used with on-prem hosts. Private Google Access for on-premises hosts is an alternative to connecting to Google APIs and services over the internet by routing traffic through a Cloud VPN tunnel or a Cloud Interconnect attachment (VLAN). Such on-prem hosts may or may not be configured with external IP addresses.You can use this option when you want to connect to Google API’s and services through VPC network. When using private google access for on-prem hosts your on-prem hosts do not need to have external IP addresses assigned to them.
For more information refer to the documentation private google access for on-premises hosts.