-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option log '0'
doesn't seem to work
#47
Comments
It is same hard to understand precedence that makes little sense. Zone log is one world rule log is another. I dont know how it should be... |
Intuitively I would say that setting And it seems it's already very close to working given the |
I wish it was "log what fell through other rules" |
Hrm. Given the examples in my original posting, I think it can be. If rules that are using |
That is what i do, i really dont understand why defaults are not your/my way that per-rule setting would override zone setting. |
If I want to have a rule that simply suppresses the logging for some noisy (i.e. broadcast) traffic when logging is enabled for the zone, it seems that creating such a rule with
option log '0'
doesn't actually suppress the logging on it. I.e.:This results in the nft rule:
and with logging enabled for the
lan
zone:which is the cause of the logging.
But what is really interesting is that if I disable logging on the
lan
zone, thedrop_from_lan
chain becomes:to disable the logging for the zone, but also, the rule added to the
input_lan
chain is changed to:What is so interesting about this is that when zone logging is disabled, in addition to removing the logging from the
drop_from_lan
, the disposition of the rule changes from ajump drop_from_lan
to a more simpledrop
.I'm not sure what is triggering the change from
jump drop_from_lan
to a more simpledrop
, but that is actually what we want to happen for a rule that hasoption log '0'
even when logging is enabled for the zone. That would achieve the expected results ofoption log '0'
.The text was updated successfully, but these errors were encountered: