Community discussions

MikroTik App
 
User avatar
mac86
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Sat Nov 25, 2006 12:52 am
Location: bahia blanca - argentina
Contact:

move a firewall rule from a script on a HotSpot

Fri Jul 13, 2007 1:33 am

Hi,

I'm running a HotSpot and I need to put move some firewall rules
each time Mikrotik reboot.

If I put on command line:
/ip firewall filter move [/ip firewall filter find comment="prueba"] 0
... then it works perfectly.

BUT, if I make a script with this, in order to execute above code each
time Mikrotik reboot, seems like Miktotik doesn't run script:
/system script add name=prueba
source={/ip firewall filter move \[/ip firewall filter find comment="prueba"\] 0 }
and next, I test script with:
/system script run prueba
But nothing happens...! :(

Can anobody helpme ?

Thanks !!! :D
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Re: move a firewall rule from a script on a HotSpot

Fri Jul 20, 2007 4:55 pm

instead of /ip firewall filter move [/ip firewall filter find comment="prueba"] 0 try something like /ip firewall filter move [/ip firewall filter find comment="prueba"] [/ip firewall filter find comment="comment_0_rule"]

Edgars
 
User avatar
mac86
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Sat Nov 25, 2006 12:52 am
Location: bahia blanca - argentina
Contact:

Re: move a firewall rule from a script on a HotSpot

Sat Jul 21, 2007 3:03 am

it works ! thank you!

Who is online

Users browsing this forum: No registered users and 33 guests