Skip to content

Instantly share code, notes, and snippets.

@rogueresistor
rogueresistor / gcpips.sh
Created March 5, 2020 23:57
List all of the GCP IP ranges
#!/bin/sh
# This is modified from the script posted at
# https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges,
# this will also show the IPv6 ranges that are returned
set -- $(dig -t txt +short _cloud-netblocks.googleusercontent.com)
included="" ip4=""
while [ $# -gt 0 ]; do

Keybase proof

I hereby claim:

  • I am rogueresistor on github.
  • I am rogueresistor (https://keybase.io/rogueresistor) on keybase.
  • I have a public key ASC2gnfWRj13B-iSP7mj94YJBFZgOr7w1igETESVK4Uefwo

To claim this, I am signing this object: