From efed6f196ecab333b76b83a5d256c9e4e6b75867 Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 16 Oct 2024 14:13:55 +0200 Subject: Read and parse configuration files. Fixes #41. (#42) Read and parse configuration files. Fixes #41. * supports nDPId / nDPIsrvd via command line parameter `-f` * nDPId: read general/tuning and libnDPI settings * support for settings risk domains libnDPI option via config file or via `-R` (Fixes #45, thanks to @UnveilTech) * added some documentation in the config file * adjusted Systemd and Debian packaging to make use of config files Signed-off-by: Toni Uhlig --- ndpisrvd.conf.example | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ndpisrvd.conf.example (limited to 'ndpisrvd.conf.example') diff --git a/ndpisrvd.conf.example b/ndpisrvd.conf.example new file mode 100644 index 000000000..67ea60f4f --- /dev/null +++ b/ndpisrvd.conf.example @@ -0,0 +1,31 @@ +[general] +#pidfile = /tmp/ndpisrvd.pid +#user = nobody +#group = nogroup + +# Collector listener as UNIX socket +#collector = /run/nDPIsrvd/collector + +# Distributor listener as UNIX socket +#distributor-unix = /run/nDPIsrvd/distributor + +# Distributor listener as IP socket +#distributor-in = 127.0.0.1:7000 + +# Change group of the collector socket +#collector-group = daemon + +# Change group of the distirbutor socket +#distirbutor-group = staff + +# Max (distributor) clients allowed to connect to nDPIsrvd +max-remote-descriptors = 128 + +# Additional output buffers useful if a distributor sink speed unstable +max-write-buffers = 1024 + +# Fallback to blocking I/O if output buffers full +blocking-io-fallback = true + +# Force poll() on systems that support epoll() as well +#poll = false -- cgit v1.2.3