Skip to content

Instantly share code, notes, and snippets.

@lucywoodman
Created January 9, 2025 10:20
Show Gist options
  • Save lucywoodman/ae19c722ba3b5e0abe7a463b70056720 to your computer and use it in GitHub Desktop.
Save lucywoodman/ae19c722ba3b5e0abe7a463b70056720 to your computer and use it in GitHub Desktop.
Google Cloud IP ranges
#!/bin/bash
# https://support.google.com/a/answer/10026322?hl=en
curl -s https://www.gstatic.com/ipranges/cloud.json | jq '.prefixes[] | [.ipv4Prefix, .ipv6Prefix][] | select(. != null)' -r | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment