From: Victor Julien Date: Wed, 15 Nov 2023 09:13:14 +0000 (+0100) Subject: doc/userguide: document host table yaml settings X-Git-Tag: suricata-8.0.0-beta1~2075 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a02a14df1be3821042b1c60e3722b114d26fa14;p=thirdparty%2Fsuricata.git doc/userguide: document host table yaml settings --- diff --git a/doc/userguide/configuration/suricata-yaml.rst b/doc/userguide/configuration/suricata-yaml.rst index c19ed48b3d..0b39705d89 100644 --- a/doc/userguide/configuration/suricata-yaml.rst +++ b/doc/userguide/configuration/suricata-yaml.rst @@ -1256,6 +1256,37 @@ network inspection. .. image:: suricata-yaml/IDS_chunk_size.png + +Host Tracking +------------- + +.. _suricata-yaml-host-settings: + + +The Host table is used for tracking per IP address. This is used for tracking +per IP thresholding, per IP tagging, storing `iprep` data and storing `hostbit`. + +Settings +~~~~~~~~ + +The configuration allows specifying the following settings: `hash-size`, `prealloc` and `memcap`. + +.. code-block:: yaml + + host: + hash-size: 4096 + prealloc: 1000 + memcap: 32mb + +* `hash-size`: size of the hash table in number of rows +* `prealloc`: number of `Host` objects preallocated for efficiency +* `memcap`: max memory use for hosts, including the hash table size + +Hosts are evicted from the hash table by the Flow Manager thread when all +data in the host is expired (tag, threshold, etc). Hosts with iprep will +not expire. + + Application Layer Parsers -------------------------