- Create 2 files in your router under folder
script-data
cf-account-id
- contains your CloudFlare account IDcf-token
- contains a CloudFlare user API token with permissionMagic Network Monitoring:Admin
- Upload
update-magic-network-monitoring-router-address.rsc
toFiles
in your router (say under directoryscripts
) - Create a scheduled job with the following command
/system scheduler add \
interval=1h \
name=update-cf-magic-network-ip \
on-event=":import scripts/update-magic-network-monitoring-router-address.rsc" \
policy=read,write \
start-date=2025-03-09 \
start-time=00:00:00
This project is licensed under MIT License.