2020-03-16 01:37:33 +01:00
|
|
|
{
|
2020-10-26 23:16:27 +01:00
|
|
|
"Server":
|
|
|
|
{
|
|
|
|
"Address":"unix:///tmp/osui.sock",
|
2024-05-16 00:51:30 +02:00
|
|
|
"Authentication": {
|
|
|
|
"Type": "simple"
|
|
|
|
},
|
2020-10-26 23:16:27 +01:00
|
|
|
"LogFile":"/var/log/opensnitchd.log"
|
|
|
|
},
|
2020-03-16 01:37:33 +01:00
|
|
|
"DefaultAction": "allow",
|
|
|
|
"DefaultDuration": "once",
|
|
|
|
"InterceptUnknown": false,
|
2021-08-17 13:54:46 +02:00
|
|
|
"ProcMonitorMethod": "ebpf",
|
2021-08-09 00:21:43 +02:00
|
|
|
"LogLevel": 2,
|
2023-06-05 20:46:42 -06:00
|
|
|
"LogUTC": true,
|
|
|
|
"LogMicro": false,
|
2022-05-03 22:05:12 +02:00
|
|
|
"Firewall": "nftables",
|
2024-05-16 00:51:30 +02:00
|
|
|
"FwOptions": {
|
|
|
|
"ConfigPath": "/etc/opensnitchd/system-fw.json",
|
|
|
|
"MonitorInterval": "15s"
|
|
|
|
},
|
2023-09-22 00:36:26 +02:00
|
|
|
"Rules": {
|
2024-05-16 00:51:30 +02:00
|
|
|
"Path": "/etc/opensnitchd/rules/",
|
2023-09-22 00:36:26 +02:00
|
|
|
"EnableChecksums": false
|
|
|
|
},
|
2024-05-16 00:51:30 +02:00
|
|
|
"Ebpf": {
|
|
|
|
"EventsWorkers": 8,
|
|
|
|
"QueueEventsSize": 0
|
|
|
|
},
|
statistics: fixed missed connections
Previous behaviour:
1) Before version 1.0.0b the daemon kept a list of processes that had
established connections. The list was displayed on the GUI as is, so
the maximum number of connections displayed were 100 (hardcoded).
2) When the intercepted connections reached 100, the last entry of the
list was removed, and a new one was inserted on the top.
After v1.0.0 we started saving connections to a DB on the GUI side, to
get rid of the hardcoded connections limit. However, the point 2) was
still present that caused some problems:
- When the backlog was full we kept inserting and deleting connections
from it continuously, one by one.
- If there was a connections burst we could end up missing some
connections.
New behaviour:
- The statisics are deleted from the daemon everytime we send them to
the GUI, because we don't need them on the daemon anymore.
- If the GUI is not connected, the connections will be added to the
backlog as in the point 2).
- When the backlog reaches the limit, it'll keep deleting the last
one in order to insert a new one.
- The number of connections to keep on the backlog is configurable.
- If the statistics configuration is missing, default values will be
150 (maxEvents) and 25 (maxStats).
Notes:
If the GUI is saving the data to memory (default), there won't be
any noticeable side effect.
If the GUI is configured to save the connections to a DB on disk, and
the daemon sends all the backlog at once, the GUI may experience a
delay and a high CPU spike. This can occur on connecting to the daemon
(because the backlog will be full), or when an app sends too many
connections per second (like nmap).
2021-08-13 12:18:10 +02:00
|
|
|
"Stats": {
|
2024-05-16 00:51:30 +02:00
|
|
|
"MaxEvents": 250,
|
2022-05-17 16:15:40 +02:00
|
|
|
"MaxStats": 25,
|
|
|
|
"Workers": 6
|
2024-05-16 00:51:30 +02:00
|
|
|
},
|
|
|
|
"Internal": {
|
|
|
|
"GCPercent": 100,
|
|
|
|
"FlushConnsOnStart": true
|
statistics: fixed missed connections
Previous behaviour:
1) Before version 1.0.0b the daemon kept a list of processes that had
established connections. The list was displayed on the GUI as is, so
the maximum number of connections displayed were 100 (hardcoded).
2) When the intercepted connections reached 100, the last entry of the
list was removed, and a new one was inserted on the top.
After v1.0.0 we started saving connections to a DB on the GUI side, to
get rid of the hardcoded connections limit. However, the point 2) was
still present that caused some problems:
- When the backlog was full we kept inserting and deleting connections
from it continuously, one by one.
- If there was a connections burst we could end up missing some
connections.
New behaviour:
- The statisics are deleted from the daemon everytime we send them to
the GUI, because we don't need them on the daemon anymore.
- If the GUI is not connected, the connections will be added to the
backlog as in the point 2).
- When the backlog reaches the limit, it'll keep deleting the last
one in order to insert a new one.
- The number of connections to keep on the backlog is configurable.
- If the statistics configuration is missing, default values will be
150 (maxEvents) and 25 (maxStats).
Notes:
If the GUI is saving the data to memory (default), there won't be
any noticeable side effect.
If the GUI is configured to save the connections to a DB on disk, and
the daemon sends all the backlog at once, the GUI may experience a
delay and a high CPU spike. This can occur on connecting to the daemon
(because the backlog will be full), or when an app sends too many
connections per second (like nmap).
2021-08-13 12:18:10 +02:00
|
|
|
}
|
2020-03-16 01:37:33 +01:00
|
|
|
}
|