简体   繁体   English

谷歌云计算实例,IPv6

[英]Google Cloud Compute Instance, IPv6

I currently have a google cloud compute instance set up to be the back-end for a multiplayer game.我目前有一个谷歌云计算实例设置为多人游戏的后端。 Certain publishers and app stores that I'm trying to publish the game on require that the server can be reached via a client using an IPv6 address, which makes perfect sense.我尝试在其上发布游戏的某些发行商和应用商店要求可以通过使用 IPv6 地址的客户端访问服务器,这非常有意义。 So the question is, how do I go about making it that the compute instance can be connected to via IPv6?所以问题是,我如何才能使计算实例可以通过 IPv6 连接?

It's worth noting that the connection between the client and server is done via UDP, so using load balancing doesn't appear to work (since load balancers in google cloud can only be done over TCP, from what I can tell).值得注意的是,客户端和服务器之间的连接是通过 UDP 完成的,因此使用负载平衡似乎不起作用(据我所知,谷歌云中的负载平衡器只能通过 TCP 完成)。

Has anyone else had this issue, and if so how did you solve it?有没有其他人遇到过这个问题,如果有,您是如何解决的?

Many thanks in advance.提前谢谢了。

IPv6 Termination for HTTP(S), SSL Proxy, and TCP Proxy Load Balancing is currently in Beta.用于 HTTP(S)、SSL 代理和 TCP 代理负载平衡的 IPv6 终止当前处于测试阶段。

https://cloud.google.com/compute/docs/load-balancing/ipv6 https://cloud.google.com/compute/docs/load-balancing/ipv6

Configuring IPv6 termination for your load balancers lets your backend instances appear as IPv6 applications to your IPv6 clients.为负载均衡器配置 IPv6 终止可让您的后端实例在 IPv6 客户端显示为 IPv6 应用程序。

Note: The documentation says this feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.注意:文档说此功能不包含在任何 SLA 或弃用政策中,并且可能会受到向后不兼容的更改。

The definition of Beta from their documentation: Beta is the point at which we are ready to open a release for any customer to use.他们的文档中对 Beta 的定义:Beta 是我们准备为任何客户开放一个版本以供使用的点。 There are no SLA or technical support obligations in a Beta release, and charges may be waived in some cases. Beta 版本中没有 SLA 或技术支持义务,在某些情况下可以免除费用。 Products will be complete from a feature perspective, but may have some open outstanding issues.从功能的角度来看,产品将是完整的,但可能存在一些未解决的未决问题。 Beta releases are suitable for limited production use cases. Beta 版本适用于有限的生产用例。

https://cloud.google.com/terms/launch-stages https://cloud.google.com/terms/launch-stages

IPv6 Termination for HTTP(S), SSL Proxy, and TCP Proxy Load Balancing became GA on September 20, 2017.用于 HTTP(S)、SSL 代理和 TCP 代理负载平衡的 IPv6 终止于 2017 年 9 月 20 日成为 GA。

Source: https://cloudplatform.googleblog.com/2017/09/announcing-ipv6-global-load-balancing-ga.html .来源: https ://cloudplatform.googleblog.com/2017/09/announcing-ipv6-global-load-balancing-ga.html。

See the documentation at https://cloud.google.com/compute/docs/load-balancing/ipv6请参阅https://cloud.google.com/compute/docs/load-balancing/ipv6上的文档

Keep in mind that inside the GCP network, all is still on IPv4, https://issuetracker.google.com/issues/35904387请记住,在 GCP 网络内部,一切仍在 IPv4 上, https://issuetracker.google.com/issues/35904387

Google cloud now supports external ipv6 on VM instances.谷歌云现在支持虚拟机实例上的外部 ipv6。 Each instance can get a /96 external ip range and it can be used to access internet (without NAT) or be used for VM to VM traffic.每个实例都可以获得 /96 的外部 IP 范围,它可以用于访问 Internet(无需 NAT)或用于 VM 到 VM 的流量。

At this moment (July 2021) it's only supported limited regions:目前(2021 年 7 月)它仅支持有限的区域:

  • asia-east1亚洲-东1
  • asia-south1亚南1
  • europe-west2欧洲西部2
  • us-west2美国西部2

See more detailed in详见

https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address https://cloud.google.com/vpc/docs/vpc#ipv6-addresses https://cloud.google.com/compute/docs/ip-addresses/configure-ipv6-address https://cloud.google.com/vpc/docs/vpc#ipv6-addresses

If your instance happened to be one of the 4 regions above then you should be able to use the VM instance IPv6 feature.如果您的实例恰好是上述 4 个区域之一,那么您应该能够使用 VM 实例 IPv6 功能。

May 2022 update. 2022 年 5 月更新。

Per https://cloud.google.com/vpc/docs/subnets#limitations根据https://cloud.google.com/vpc/docs/subnets#limitations

Internal and external IPv6 subnets are available in all but asia-southeast2 and asia-northeast3 regions.内部和外部 IPv6 子网在除 asia-southeast2 和 asia-northeast3 区域外的所有区域都可用。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM