Skip to content

Instantly share code, notes, and snippets.

@mskf3000
Created March 23, 2020 17:33
Show Gist options
  • Save mskf3000/a23a3fb3f0c41db4f3389f86caaf6a49 to your computer and use it in GitHub Desktop.
Save mskf3000/a23a3fb3f0c41db4f3389f86caaf6a49 to your computer and use it in GitHub Desktop.
Onde posso encontrar os intervalos de IP do Compute Engine?
seq 10 | xargs -l -I{} dig +short -t TXT @ns1.google.com _cloud-netblocks{}.googleusercontent.com | tr ' ' '\n' | grep -F ip4 | cut -d ':' -f 2 | sort -V > cloud-netblocks.cidr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment