Created
April 6, 2023 02:54
-
-
Save kyouheicf/430c5f6ef8aa3648da9469e5ffe3b757 to your computer and use it in GitHub Desktop.
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
| curl -s https://assets.zoom.us/docs/ipranges/ZoomMeetings.txt | \ | |
| jq -Rs '[ split("\n")[] | select(length > 0) | split(",") | {address: .[0]} ] | . + [{"address":"100.64.0.0/10"},{"address":"169.254.0.0/16"},{"address":"172.16.0.0/12"},{"address":"192.0.0.0/24"},{"address":"192.168.0.0/16"},{"address":"224.0.0.0/24"},{"address":"240.0.0.0/4"},{"address":"255.255.255.255/32"},{"address":"fe80::/10"},{"address":"fd00::/8"},{"address":"ff01::/16"},{"address":"ff02::/16"},{"address":"ff03::/16"},{"address":"ff04::/16"},{"address":"ff05::/16"}]' | \ | |
| curl -X PUT https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/devices/policy/exclude \ | |
| -H "X-Auth-Email: $EMAIL" \ | |
| -H "X-Auth-Key: $APIKEY" \ | |
| -H "Content-Type: application/json" \ | |
| --data @- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment