Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## update-nice
- :log error "Proses Update Nice IP..."
- /sys log disable [find name=info];
- :if ([:len [/file find name=nice.rsc]] > 0) do={/file remove nice.rsc }; /tool fetch url=http://ixp.mikrotik.co.id/download/nice.rsc; /ip firewall address-list remove [find list=nice];
- :delay 10s
- /import nice.rsc;
- :delay 5s
- /system note set show-at-login=no;
- /system script run nice-extra;
- /system script run remove-from-nice;
- /sys log enable [find name=info];
- :log e
- ## nice-extra
- /ip firewall address-list;
- add address=192.168.7.0/24 disabled=no list=nice comment=LOKAL;
- add address=192.168.8.0/21 disabled=no list=nice comment=LOKAL;
- add address=10.20.30.0/23 disabled=no list=nice comment=LOKAL;
- add address=10.31.32.0/20 disabled=no list=nice comment=LOKAL;
- add address=10.10.10.0/24 disabled=no list=nice comment=LOKAL;
- ## remove-from-nice
- # detik.com
- /ip firewall address-list remove [/ip firewall address-list find address=103.49.220.0/22];
- /ip firewall address-list remove [/ip firewall address-list find address=203.190.240.0/21];
- # ggc telkom
- /ip firewall address-list remove [/ip firewall address-list find address=118.98.0.0/17];
- /ip firewall address-list remove [/ip firewall address-list find address=118.96.0.0/16];
- ### run script shcedule jam 3 pagi ###
- /system scheduler
- add interval=1d name=update-nice on-event=update-nice policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=dec/13/2020 start-time=03:00:00
Add Comment
Please, Sign In to add comment