Skip to content

Instantly share code, notes, and snippets.

@nonkronk
Forked from tophrr/ZoomHosts.rsc
Last active April 13, 2023 05:41
Show Gist options
  • Save nonkronk/d528097fb0e3281b70a074bc8874995e to your computer and use it in GitHub Desktop.
Save nonkronk/d528097fb0e3281b70a074bc8874995e to your computer and use it in GitHub Desktop.
MikroTik Zoom Hosts address list
## Made by ChrisG661, 2021
## github.com/ChrisG661
# Address list name
:local listname "zoom"
# Zoom IP range URLs
:local sourceUrl {"https://assets.zoom.us/docs/ipranges/Zoom.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomMeetings.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomCRC.txt"; \
"https://assets.zoom.us/docs/ipranges/ZoomPhone.txt"}
# Import update script
:local updateList [:parse [/system script get UpdateAddressList source]]
# Remove existing addresses from the current Address list
/ip firewall address-list remove [/ip firewall address-list find list=$listname]
# Download each IP range files
:foreach url in=$sourceUrl do={
/tool fetch mode=https url=$url
:delay 1
}
# Load IP range files to address list
:local filenames {"Zoom.txt"; "ZoomMeetings.txt"; "ZoomCRC.txt"; "ZoomPhone.txt"}
:foreach file in=$filenames do={
$updateList listname="zoom" filename=$file
:delay 1
}
:log info "Zoom address list updated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment