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:8e9c1d21788935bfe6b0related commits:661e3da48f1e6d2d464b
27 lines
575 B
JSON
27 lines
575 B
JSON
{
|
|
"Server":
|
|
{
|
|
"Address":"unix:///tmp/osui.sock",
|
|
"LogFile":"/var/log/opensnitchd.log"
|
|
},
|
|
"DefaultAction": "allow",
|
|
"DefaultDuration": "once",
|
|
"InterceptUnknown": false,
|
|
"ProcMonitorMethod": "ebpf",
|
|
"LogLevel": 2,
|
|
"LogUTC": true,
|
|
"LogMicro": false,
|
|
"Firewall": "nftables",
|
|
"Rules": {
|
|
"Path": "/etc/opensnitchd/rules/"
|
|
},
|
|
"Stats": {
|
|
"MaxEvents": 150,
|
|
"MaxStats": 25,
|
|
"Workers": 6
|
|
},
|
|
"Internal": {
|
|
"GCPercent": 100,
|
|
"FlushConnsOnStart": true
|
|
}
|
|
}
|