Skip to content

Instantly share code, notes, and snippets.

@drmaas
Created September 29, 2023 19:25
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 drmaas/53c0e8e19b05e8e397b0bbad415c9ada to your computer and use it in GitHub Desktop.
Save drmaas/53c0e8e19b05e8e397b0bbad415c9ada to your computer and use it in GitHub Desktop.
One liner to get all zscaler IPV4 cidr ranges
url -s https://config.zscaler.com/api/zscalertwo.net/cenr/json | jq '."zscalertwo.net" | to_entries[] | select(.key) | .value[][] | select(.range|test("^[0-9]{3}\\.")) | .range' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment