Google App Engine - urlFetch address not in _netblocks.google.com

爷,独闯天下 提交于 2019-12-13 15:59:53

问题


For software I am developing, I need to have a list of external IP addresses that Google App Engine uses for urlFetch requests. Getting a complete list is proving difficult.

The accepted wisdom as detailed on SO is to use the output from...

dig -t txt _netblocks.google.com

...but unfortunately this list is incomplete. For example, my urlFetch requests currently emerge from unlisted addresses:

  • US based App: 8.35.201.x
  • EU based App: 8.35.200.x

Is there any way to get an actively updated list of external IP addresses used by urlFetch?


回答1:


The official advice is https://developers.google.com/appengine/kb/general#static-ip. Note that relying on Static IP addresses is bad, for all the reasons listed on that page.




回答2:


So, the answer is:

dig txt _cloud-netblocks.googleusercontent.com +short
"v=spf1 include:_cloud-netblocks1.googleusercontent.com include:_cloud-netblocks2.googleusercontent.com include:_cloud-netblocks3.googleusercontent.com ?all"


来源:https://stackoverflow.com/questions/16420068/google-app-engine-urlfetch-address-not-in-netblocks-google-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!