aboutsummaryrefslogtreecommitdiff
path: root/ndpid.conf.example
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-10-01 11:52:44 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-10-16 13:03:41 +0200
commit752a7e3b80e24e49b260b7e9a7988c0a6348db5b (patch)
tree2b4f865d9872d02cc7af399dd4304d910446e79d /ndpid.conf.example
parent49c11fee1ecb6135d22a70b9bc3badcc5e0cd340 (diff)
Added support for setting tuning options via config file.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ndpid.conf.example')
-rw-r--r--ndpid.conf.example38
1 files changed, 35 insertions, 3 deletions
diff --git a/ndpid.conf.example b/ndpid.conf.example
index 024153dd3..033e07a25 100644
--- a/ndpid.conf.example
+++ b/ndpid.conf.example
@@ -1,9 +1,41 @@
[general]
-netif = eth0
-bpf = udp or tcp
+#netif = eth0
+#bpf = udp or tcp
+pidfile = /tmp/ndpid.pid
+user = nobody
+#group = nogroup
+#protocols = /path/to/libnDPI/example/protos.txt
+#categories = /path/to/libnDPI/example/categories.txt
+#ja3 = /path/to/libnDPI/example/ja3_fingerprints.csv
+#sha1 = /path/to/libnDPI/example/sha1_fingerprints.csv
+collector = /tmp/ndpid-collector.sock
+#alias = myhostname
[tuning]
-max-flows-per-thread = 1024
+max-flows-per-thread = 2048
+max-idle-flows-per-thread = 64
+max-reader-threads = 10
+daemon-status-interval = 600000000
+#memory-profiling-log-interval = 5
+compression-scan-interval = 20000000
+compression-flow-inactivity = 30000000
+flow-scan-interval = 10000000
+generic-max-idle-time = 600000000
+icmp-max-idle-time = 120000000
+tcp-max-idle-time = 180000000
+udp-max-idle-time = 7440000000
+tcp-max-post-end-flow-time = 120000000
+max-packets-per-flow-to-send = 15
+max-packets-per-flow-to-process = 32
+max-packets-per-flow-to-analyse = 32
+error-event-threshold-n = 16
+error-event-threshold-time = 10000000
+
+# Please note that the following options are libnDPI related and can only be set via config file,
+# not as commnand line parameter.
[ndpi]
key = value
+
+[protos]
+key = value