在Google计算引擎VM上,是否可以有直接的公共IP而不是在NAT后面? [英] On a google compute engine VM, is it possible to have a direct public ip instead of being behind a NAT?

查看:89
本文介绍了在Google计算引擎VM上,是否可以有直接的公共IP而不是在NAT后面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以有一个具有直接访问权限的公共IP,而不是位于Google计算引擎虚拟机中的NAT中?

Is it possible to have a public ip with direct access instead of being in NAT in a google compute engine virtual machine?

谢谢.

推荐答案

您可以具有外部IP,但默认情况下,实例将具有NAT策略.如果您需要非NAT流量,那么您正在寻找的是目标实例,因为如文档中所述:

You can have an external IP but by default the instance will have a NAT policy. If you need non-NAT'ed traffic, what you are looking for is a target instance because as stated in the documentation:

目标实例没有应用NAT策略.

Target instances do not have a NAT policy applied to them.

之后,您可以创建转发规则来发送流量到您的实例.

After that, you can create forwarding rules to send traffic to your instance.

希望对您有帮助.

这篇关于在Google计算引擎VM上,是否可以有直接的公共IP而不是在NAT后面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆