Skip to content

Instantly share code, notes, and snippets.

@emanuelet
Created December 6, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emanuelet/f173f09bf301944406573e76d9529d63 to your computer and use it in GitHub Desktop.
Save emanuelet/f173f09bf301944406573e76d9529d63 to your computer and use it in GitHub Desktop.
Fetch all the Google App Engine IP Ranges
dig +short -t TXT _cloud-netblocks1.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
dig +short -t TXT _cloud-netblocks2.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
dig +short -t TXT _cloud-netblocks3.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
dig +short -t TXT _cloud-netblocks4.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
dig +short -t TXT _cloud-netblocks5.googleusercontent.com | grep -Po 'ip4:\K\S+' >> ips.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment