opensnitch/daemon/firewall/nftables
Gustavo Iñiguez Goia dd39fe3060
make connections flushing configurable
By default when adding the interception rules, we were killing all
existing connections, to force them go to the netfilter queue.

However in some environments this is not acceptable, so now it's configurable.

Besides, we were doing this only for nftables, so now it also works for
iptables.

This option will only take effect if FlushConnsOnStart is true, and the
user has (re)configured the ProcMonitorMethod option (typically on
start, or when changing it manually).

cherry picked from commits:
  8e9c1d2178
  8935bfe6b0

related commits:
  661e3da48f
  1e6d2d464b
2025-04-25 23:48:11 +02:00
..
exprs sys fw: allow to use wildcards to match interfaces 2023-07-24 16:11:12 +02:00
nftest tests: better sys-fw log,meta and ip tests 2023-07-12 12:53:13 +02:00
testdata tests: added nftables/system tests 2023-07-01 22:41:04 +02:00
chains.go tests: added new sys fw tests 2023-07-07 00:46:09 +02:00
chains_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
monitor.go force to reestablish non-local connections on start 2023-07-25 01:42:54 +02:00
monitor_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
nftables.go structs fields reorganized 2024-01-13 22:15:23 +01:00
parser.go sys,fw: export some internal utils. 2023-07-06 13:36:57 +02:00
rule_helpers.go sys,fw: check for errors when adding ports rules 2023-07-06 17:58:17 +02:00
rules.go make connections flushing configurable 2025-04-25 23:48:11 +02:00
rules_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
system.go sys fw: report errors to the GUI after reloading 2023-07-15 20:32:42 +02:00
system_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
tables.go tests: added new sys fw tests 2023-07-07 00:46:09 +02:00
tables_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00
utils.go sys,fw: export some internal utils. 2023-07-06 13:36:57 +02:00
utils_test.go tests: updated sys fw tests 2023-07-06 14:27:54 +02:00