because it does not function?

because it does not function?

script

/ip firewall nat enable 0



help

you can’t write numbers like enable 0, you have to add a comment to that rule, and then enable by comment, not number.

you can pass me as would be?

/ip firewall nat enable [find <parameter>=<value>]

See the scripting manual for details.

I am not obtaining, can give an example to me more I practise?

http://www.mikrotik.com/docs/ros/2.9/system/scripting

What it costs to help a little! Ja I tried of everything and I did not obtain, ja I read this entire manual…

O que custa ajudar um pouco!!! Ja tentei de tudo e não consegui, ja li esse manual inteiro…

It’s like you having the following rule:

/ip firewall nat add chain=srcnat out-interface=Public action=masquerade comment="enable_me"

and you want to enable it from script:

/ip firewall nat enable [find comment="enable_me"]

It’s easy, just assume that scripts do not know anything about item numbers. So you need to ‘find’ the exact rule each time you want to use it.

Thank´s :smiley: