Community discussions

MikroTik App
 
GustavoWoltmann
just joined
Topic Author
Posts: 2
Joined: Wed Mar 09, 2016 10:22 pm

script to delete mangle rules at 12.00 each day!

Mon Mar 14, 2016 10:48 pm

create script named, for example 'delete':

add name=delete source={/ip firewall mangle remove [/ip firewall angle find]}

create system scheduler task that will run this script each day at 12 o'clock:

system scheduler add name run_del diasabled=no on-event=delete interval=24h start-time=12:00:00
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: script to delete mangle rules at 12.00 each day!

Mon Mar 14, 2016 11:09 pm

Why not just make rules with a time-of-day criteria, or if possible, (don't know what the mangle rules are doing), make rules that match based on an address-list and you could put timeout on the address-list entries, which would clear themselves automatically whenever the time expires....

Who is online

Users browsing this forum: iotopia and 28 guests