Appengine 服务器的 IP 地址块? [英] IP Address Block of Appengine Servers?

查看:35
本文介绍了Appengine 服务器的 IP 地址块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与第三方网络服务合作,该服务要求对其服务的所有调用都来自列入白名单的 IP 地址.也就是说,我必须向他们提供 IP 地址,以便我调用他们的服务.

I'm working with a third party webservice who requires that all calls to their service are made from whitelisted IP addresses. That is, I must give them IP addresses from which I will be making calls to their service.

问题是我正在使用 Google Appengine.从 Appengine 发出传出 http 请求时,有没有办法获取静态 IP 地址?如果失败 - 是否存在所有请求都来自的 IP 地址块?我可以将整个集团列入白名单.如果存在,它改变的可能性有多大?

Problem is I'm using Google Appengine. Is there any way to get a static IP address when making outgoing http requests from Appengine? Failing that - is there a block of IP addresses that all requests will come from? I could get the entire bloc whitelisted. If this exists, how likely is it to change?

我知道我可以设置一个简单的 Amazon EC2 实例来用作代理(会问另一个关于如何具体执行此操作的问题)但只是想确保没有其他方法.

I know I could setup a simple Amazon EC2 instance to use as a proxy (will ask another question for how to do this specifically) but just wanted to make sure there was no other way.

推荐答案

几周前我遇到了同样的问题,我通过 Urlfetch 从 Google App Engine 连接到 Stack Exchange API(该团队已及时修复了将所有 GAE IP 列入白名单的问题).

I had the same problem a couple of weeks ago connecting via Urlfetch from Google App Engine to the Stack Exchange API (The team has promptly fixed the problem whitelisting all the GAE IPs).

urlfetch 连接可能来自的 IP 地址范围,可以通过执行以下 DNS 查找来找到:

The range of IP addresses that urlfetch connections may come from, can be found by performing the following DNS lookup:

dig -t TXT _netblocks.google.com @ns1.google.com 

这篇关于Appengine 服务器的 IP 地址块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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