I'm trying to figure out what the IP ranges for google compute engine are.
I have a library that is locked for use on certain IP ranges. Crazy I know, it's a bit special.
I hunted around the google document ion but couldn't find a list.
Is there a way of looking this up or querying for it somehow?
Best Answer
As the other answer says, Google describes how to get the list here: https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges
I found a good script here for following spf records:
https://aplawrence.com/Kerio/recursive_spf.html
create the file lookup.perl as:
then run: ./lookup.perl _cloud-netblocks.googleusercontent.com | grep ip4