]> git.ipfire.org Git - ipfire-2.x.git/commit - langs/en/cgi-bin/en.pl
firewall: Make logging of conntrack INVALIDs configureable
authorPeter Müller <peter.mueller@ipfire.org>
Fri, 18 Feb 2022 22:40:55 +0000 (22:40 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Fri, 18 Feb 2022 22:40:55 +0000 (22:40 +0000)
commit8269c8319ccb9e78c8c48a4218396621d5a156e3
tree478659afc115450c591d4c5fd4be1212abe45ec9
parent5ca74566b3404539b46c904aaec0ac7e4033657f
firewall: Make logging of conntrack INVALIDs configureable

In theory, logging of dropped packets classified by conntrack as being
INVALID should never be disabled, since one wants to have a paper trail
of what his/her firewall is doing.

However, conntrack seems to drop a lot of (at the first glance
legitimate) packets, hence bloating the logs, making spotting the
important firewall hits more difficult.

This patch therefore adds the option to disable logging of packets being
dropped by conntrack due to INVALID state.

Please note:
- This patch does not add this category to the firewall hits graph.
- The variables in this patch ("LOGDROPCTINVALID") should make it clear
  that it is about toggling _logging_, not the actual _dropping_. Other
  variables are still in need of being renamed to clarify this, which
  will be done in a dedicated patch.
- Also, the changes made to update.sh need to take place in
  config/rootfiles/core/164/update.sh for "master", since this patch has
  been developed against "next". Kindly cherry-pick the necessary
  changes.

Partially fixes: #12778

Reported-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/oldcore/164/update.sh
html/cgi-bin/optionsfw.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl
lfs/configroot
src/initscripts/system/firewall