Community discussions

MikroTik App
 
User avatar
sjafka
Member Candidate
Member Candidate
Topic Author
Posts: 105
Joined: Wed Jan 03, 2018 5:45 pm

ROS 7 script help needed

Wed May 08, 2024 5:34 pm

Hello!

https://github.com/pwlgrzs/Mikrotik-Blacklist

I used this on ros6, but on ros7 the intsall script wont work.
/ip firewall address-list remove [find where list="pwlgrzs-blacklist"]; /import file-name=blacklist.rsc; /file remove blacklist.rsc

Can someone help me convert this to ros7 compatible version? Thx!
 
abbio90
Member Candidate
Member Candidate
Posts: 283
Joined: Fri Aug 27, 2021 9:16 pm
Contact:

Re: ROS 7 script help needed

Sun May 12, 2024 10:05 am

copy it into system script and save. then type in the terminal:
/system script edit namescript source
where the text no longer has the usual mikrotik colors there is an error that needs to be adapted. another solution is to put a { before the script and a } after the script and paste it into the terminal. This way you can see where there is a syntax error

Who is online

Users browsing this forum: allperfectguide, Bing [Bot], GoogleOther [Bot], wawryl and 47 guests