2

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?

Community
  • 1
  • 1
tsal
  • 33
  • 8

2 Answers2

4

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.

Nik
  • 2,380
  • 2
  • 16
  • 15
  • Thanks for the link to new documentation, which was lacking at the time of the original post...and yes, IP filtering is highly sub-optimal; but if you have to integrate with a 3rd party system that implements it (unfortunately many still do), then you're forced down this route. This new doc definitely helps explain what you need to do to achieve this. – tsal Aug 14 '14 at 10:37
1

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"
Attila O.
  • 15,659
  • 11
  • 54
  • 84
tsal
  • 33
  • 8