Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Script che scaricherà la abusedb come file di testo
- /system script add name="Download_abusedb" source={/tool fetch url="https://mikrotik_bl.uiblog-it.workers.dev/blocklist/abusedb.rsc" mode=https;
- :log info "Ho scaricato il file abusedb.rsc da uiblog.it";
- }
- # Script che rimuoverà la vecchia lista di abusedb e ne aggiungerà una nuova
- /system script add name="Replace_abusedb" source={/ip firewall address-list remove [find where comment="abusedb"]
- /import file-name=abusedb.rsc;
- :log info "Rimossi i vecchi record della lista abusedb e importato il nuovo elenco";
- }
- # Programma il download e l'applicazione della abusedb
- /system scheduler add comment="Scarico la abusedb list" interval=3d \
- name="Download_abusedb" on-event=Download_abusedb \
- start-date=jan/01/1970 start-time=04:29:26
- /system scheduler add comment="Inserisco la lista abusedb" interval=3d \
- name="Install_abusedb" on-event=Replace_abusedb \
- start-date=jan/01/1970 start-time=04:54:26
Advertisement
Add Comment
Please, Sign In to add comment