Community discussions

MikroTik App
 
User avatar
floeff
newbie
Topic Author
Posts: 42
Joined: Sat Jan 28, 2017 6:39 pm
Location: Germany
Contact:

unset log and log-prefix in firewall

Tue May 01, 2018 12:33 am

Hello,

sorry for a maybe stupid question - but is it possible to completely unset log and log-prefix in a firewall rule?
/ip firewall filter unset 6 log
doesn't work, it always ends up with a
input does not match any value of value-name
Of course I can set the values to no and "" respectively, but that still clutters the listing. Is there a way to completely remove these two parameters? Seems they are excluded from unset...

Thanks,
Florian
 
evergreen
just joined
Posts: 13
Joined: Tue Mar 07, 2023 9:41 pm

Re: unset log and log-prefix in firewall

Thu Nov 30, 2023 5:05 am

I'm also wondering this, unset seems to be an intended option but doesn't work.
set 1 !log
is also suggested in the scripting manual and this also is a syntax error `syntax error (line 1 column 7)`
 
error404
just joined
Posts: 10
Joined: Sat Oct 21, 2023 1:58 pm

Re: unset log and log-prefix in firewall

Thu Nov 30, 2023 12:15 pm

Works on 7.12.1:

ip firewall filter set [find comment="drop invalid"] log=no
ip firewall filter set [find comment="drop invalid"] log-prefix=""
Edit: Didn't read post carefully. "unset" doesn't list log or log-prefix, alas.
Image

Who is online

Users browsing this forum: robertoocabal and 9 guests