Created
July 11, 2020 13:32
-
-
Save egeneralov/58fbf198b8dc74e7b11ebcaddd129b74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /system script | |
| add dont-require-permissions=no name=allyouneed owner=root policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":do {\ | |
| \n :do {\ | |
| \n /file remove \"/allyouneed.rsc\";\ | |
| \n } on-error={}\ | |
| \n \ | |
| \n :put \"Downloading allyouneed.rsc...\";\ | |
| \n :do {\ | |
| \n /tool fetch url=\"https://antifilter.download/list/allyouneed.rsc\" dst-path=\"/allyouneed.rsc\"\ | |
| \n } on-error={\ | |
| \n :put \"Error. Download failed\";\ | |
| \n }\ | |
| \n\ | |
| \n /ip firewall address-list remove [/ip firewall address-list find list=rkn] \ | |
| \n\ | |
| \n :put \"Importing allyouneed.rsc...\";\ | |
| \n :do {\ | |
| \n /import \"/allyouneed.rsc\";\ | |
| \n } on-error={\ | |
| \n :put \"import failed. unknown error.\";\ | |
| \n }\ | |
| \n :put \"Update Complete.\";\ | |
| \n}" | |
| /system scheduler add interval=24h name=allyouneed on-event="/system script run allyouneed" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=jul/01/2020 start-time=00:00:00 | |
| /ip firewall mangle add action=mark-routing chain=prerouting dst-address-list=rkn new-routing-mark=rkn passthrough=yes src-address=192.168.88.0/24 | |
| /ip route add distance=1 gateway=fra routing-mark=rkn comment="rkn" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment