uiblog_it

abusedb per Mikrotik

Dec 24th, 2021 (edited)
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. # Script che scaricherà la abusedb come file di testo
  2. /system script add name="Download_abusedb" source={/tool fetch url="https://mikrotik_bl.uiblog-it.workers.dev/blocklist/abusedb.rsc" mode=https;
  3. :log info "Ho scaricato il file abusedb.rsc da uiblog.it";
  4. }
  5.  
  6. # Script che rimuoverà la vecchia lista di abusedb e ne aggiungerà una nuova
  7. /system script add name="Replace_abusedb" source={/ip firewall address-list remove [find where comment="abusedb"]
  8. /import file-name=abusedb.rsc;
  9. :log info "Rimossi i vecchi record della lista abusedb e importato il nuovo elenco";
  10. }
  11.  
  12. # Programma il download e l'applicazione della abusedb
  13. /system scheduler add comment="Scarico la abusedb list" interval=3d \
  14. name="Download_abusedb" on-event=Download_abusedb \
  15. start-date=jan/01/1970 start-time=04:29:26
  16. /system scheduler add comment="Inserisco la lista abusedb" interval=3d \
  17. name="Install_abusedb" on-event=Replace_abusedb \
  18. start-date=jan/01/1970 start-time=04:54:26
  19.  
Advertisement
Add Comment
Please, Sign In to add comment