opensnitch/daemon/netlink
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
..
ifaces.go removed debugging logs, fixed build 2023-07-25 02:11:35 +02:00
socket.go make connections flushing configurable 2025-04-25 23:48:11 +02:00
socket_linux.go force to reestablish non-local connections on start 2023-07-25 01:42:54 +02:00
socket_test.go tests: disable netlink sockets tests by default 2023-02-21 00:23:16 +01:00