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

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

问题描述

我正在与第三方网络服务人员合作,他们要求所有对其服务的呼叫都来自列入白名单的IP地址。也就是说,我必须给他们IP地址,我将从中调用他们的服务。



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



我知道我可以设置一个简单的Amazon EC2实例作为代理使用(会问另一个问题,这是特别的),但只是想确保没有其他方式。

解决方案

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

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

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


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.

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?

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.

解决方案

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).

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天全站免登陆