Community discussions

MikroTik App
 
pierref
just joined
Topic Author
Posts: 9
Joined: Mon Jan 25, 2016 1:31 pm

Newbie simple script does apparently nothing

Sun Sep 04, 2016 9:04 pm

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
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: Newbie simple script does apparently nothing

Sun Sep 04, 2016 10:47 pm

/ip firewall nat disable [/ip firewall nat find to-ports="8081"]
 
pierref
just joined
Topic Author
Posts: 9
Joined: Mon Jan 25, 2016 1:31 pm

Re: Newbie simple script does apparently nothing

Mon Sep 05, 2016 10:15 am

Thank you, 2frogs, this works!
 
Eduardo
newbie
Posts: 45
Joined: Thu Aug 18, 2016 12:20 pm

Re: Newbie simple script does apparently nothing

Tue Sep 06, 2016 4:51 pm

It's really strange that there is no error generated when a script contains a syntax error...

Who is online

Users browsing this forum: CzechDaniel and 26 guests