Created
September 29, 2023 19:25
-
-
Save drmaas/53c0e8e19b05e8e397b0bbad415c9ada to your computer and use it in GitHub Desktop.
One liner to get all zscaler IPV4 cidr ranges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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