在欧洲地区创建了 GCE,但 IP 地址在美国显示 [英] Created GCE in europe region but IP address shows its in US

查看:13
本文介绍了在欧洲地区创建了 GCE,但 IP 地址在美国显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在伦敦地区创建了一个实例

I have created an instance based in London region

由于来自客户的严格指导,我们必须确保没有任何迹象表明应用托管在欧盟以外.

Due to strict guidelines from client we have to make sure there should be no trace where it shows that the app is hosted outside EU.

即使在这里也不行:

我们长期使用 google 服务,如果我们没有找到解决方案,那么我们将别无选择,只能迁移到 AWS.

We are using google services from a long if we dont get a solution then we will have no other choice left except to move to AWS.

因为在 AWS 中,我们有一个位于伦敦地区的 RDS 实例,当我们进行 IP 地址查找时,它显示了预期的结果.

Because in AWS we have a RDS instance which is based in London region and when we are doing the ip address lookup its showing the expected result.

> 有什么办法可以让它只指向欧洲地区而不是任何其他地区,包括美国.

我们已经将我们的应用程序部署到 GAE 实例中,但因为它不提供对 IP 地址的任何更改.我试图在 GCE 中寻找解决方案,但这也不能解决我们的问题.

We already have our application deployed into GAE instance but since it does not offer any changes into the ip address. I tried to look for a solution into the GCE but this also does not solve our issue.

谢谢.

更新 OP

只是为了记录.我们在支持门户上发布了一个问题,并且甚至购买了黄金支持包来解决它.但是转了出它无法实现.他们无法帮助获取跟踪路由以显示实际区域对于相应实例所在的静态 ip.我们最终 > 从 GCP 迁移到 Azure 平台.

Just for the records. We posted an issue on the support portal and even bought gold support package to get it resolved. But it turned out that it cant be achieved. They cant help out in getting the trace-route to show the actual region for static ip where the respective instance is located. And we ended up > migrating to Azure platform from GCP.

我会保持开放,也许 GCP 将来会针对此问题提出解决方案.

I will keep it open, may be GCP will come up with a solution in future for this issue.

推荐答案

Google 提供给 GCP 用户的所有 IP 地址都在 ARIN 位于加利福尼亚州山景城的 Google 总部下(换句话说,SWIP是加利福尼亚州山景城).因此,即使实际服务器位于其他地方,IP 地址的所有地理位置查找都将解析为美国.除此之外,在 GCP 中,将 IP 块从一个位置重新映射到另一个位置的情况并不少见,特别是考虑到 GCP 的 IP 地址的弹性以及它们被回收或重用的方式.

All the IP addresses Google provides to GCP user are registered with ARIN under the Google HQ in Mountain View, California (in other words SWIP to be Mountain View, CA). So, all geolocations lookup of the IP addresses will resolve to the United States even though the actual server is located somewhere else. In addition to that, in GCP, it's not uncommon to remap a block of IPs from one location to another, especially given the elasticity of IP addresses for the GCP and they way they are recycled or reused.

但是,根据您用于获取地理位置信息的工具或网站,信息可能会有所不同,因为他们可能使用不同的数据库,该数据库可能未更新或没有正确的信息关于 IP 的地理位置.

However, depending on which tool or website you are are using to get geolocation information the information may vary just because of the fact that they might be using a different database, which may not be updated or doesn’t have the right information regarding the geolocation of the IP.

您可以通过 ARIN (SEARCH WhoisRWS) 的这个网站/工具获得更准确的答案,因为美国互联网号码注册机构 (ARIN) 是加拿大、美国和许多国家的区域互联网注册机构 (RIR)加勒比海和北大西洋岛屿.哪个更多将提供更可靠的信息.

You could you this website/ tool from ARIN (SEARCH WhoisRWS) to get a more accurate answer as, the American Registry for Internet Numbers (ARIN) is the Regional Internet Registry (RIR) for Canada, the United States, and many Caribbean and North Atlantic islands. Which is more will provide more reliable information.

可能的解决方法,您可以在具有欧盟地理本地 IP 地址的机器上设置反向代理,并将请求从那里转发到您的 Google 云平台 (GCP) 虚拟机实例.例如,在 CloudSigma 中启动 nginx 并将 DNS 指向该处.

Possible workarounds, you could set up a reverse proxy on a machine that has a Geo local IP address for EU and forwards requests from there to your Google Cloud Platform (GCP) VM instance. For example, spin up nginx in CloudSigma and point the DNS at that.

这篇关于在欧洲地区创建了 GCE,但 IP 地址在美国显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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