Page 1 of 1

Newbie simple script does apparently nothing

Posted: Sun Sep 04, 2016 9:04 pm
by pierref
Hello

I am a newbie writing a very simple script to enable/disable the rules redirecting outgoing http traffic to the proxy listening on port 8081. I coded
/ip firewall nat disable [/ip firewall nat find to-ports=8081]
but this does apparently nothing.

I probably have overseen something, but I can't figure out what. Any help would be very appreciated.

Thanks in advance.

Pierre

Re: Newbie simple script does apparently nothing

Posted: Sun Sep 04, 2016 10:47 pm
by 2frogs
/ip firewall nat disable [/ip firewall nat find to-ports="8081"]

Re: Newbie simple script does apparently nothing

Posted: Mon Sep 05, 2016 10:15 am
by pierref
Thank you, 2frogs, this works!

Re: Newbie simple script does apparently nothing

Posted: Tue Sep 06, 2016 4:51 pm
by Eduardo
It's really strange that there is no error generated when a script contains a syntax error...