Google Cloud VPC 互联网网关

Bra*_*ull 2 google-cloud-platform

我们正在测试谷歌云,我们有 1 个 VPC 网络和 2 个服务器,只有私有 ip + ssh 堡垒。

大问题:这些服务器需要访问互联网,但似乎在 GCE 中你没有像 AWS(互联网网关)那样的这种服务。

我错了吗 ?我真的不想为互联网网关实例化虚拟机。

我看到一条路线“default-internet-gateway”,但我认为它不起作用

tal*_*dor 5

目前,正确的方法是使用Cloud NAT,文档可以在这里找到:

云NAT

Cloud NAT(网络地址转换)允许没有外部 IP 地址的 Google Cloud Platform (GCP) 虚拟机 (VM) 实例和私有 Google Kubernetes Engine (GKE) 集群连接到互联网。

以下是如何设置的说明:

使用云NAT

简介
本页面向您介绍如何配置 Cloud NAT。在设置 Cloud NAT 之前,请阅读 Cloud NAT 概述。

注意:Cloud NAT 仅使用 Cloud Router 对 NAT 配置信息(控制层面)进行分组。Cloud NAT 不会指示 Cloud Router 使用 BGP 或添加路由。NAT 流量不经过 Cloud Router(数据平面)。