move a firewall rule from a script on a HotSpot

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…! :frowning:

Can anobody helpme ?

Thanks !!! :smiley:

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

it works ! thank you!