From: Victor Julien Date: Fri, 8 Mar 2024 10:50:14 +0000 (+0100) Subject: doc: add thresholding by_flow X-Git-Tag: suricata-8.0.0-beta1~1098 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f04af7c7fb504ab1a38af671cf74b69078590bc;p=thirdparty%2Fsuricata.git doc: add thresholding by_flow --- diff --git a/doc/userguide/configuration/global-thresholds.rst b/doc/userguide/configuration/global-thresholds.rst index d268dd7c3e..a5b3bd6d86 100644 --- a/doc/userguide/configuration/global-thresholds.rst +++ b/doc/userguide/configuration/global-thresholds.rst @@ -20,7 +20,7 @@ Syntax: :: threshold gen_id , sig_id , type , \ - track , count , seconds + track , count , seconds rate_filter ~~~~~~~~~~~ @@ -55,6 +55,7 @@ done per IP-address. The Host table is used for storage. When using by_rule it's done globally for the rule. Option by_both used to track per IP pair of source and destination. Packets going to opposite directions between same addresses tracked as the same pair. +The by_flow option tracks the rule matches in the flow. count ^^^^^ diff --git a/doc/userguide/rules/thresholding.rst b/doc/userguide/rules/thresholding.rst index 401f573696..e3e5830f7f 100644 --- a/doc/userguide/rules/thresholding.rst +++ b/doc/userguide/rules/thresholding.rst @@ -16,7 +16,7 @@ frequency. It has 3 modes: threshold, limit and both. Syntax:: - threshold: type , track , count , seconds + threshold: type , track , count , seconds type "threshold" ~~~~~~~~~~~~~~~~ @@ -85,6 +85,27 @@ performed for each of the matches. *Rule actions drop (IPS mode) and reject are applied to each packet.* + +track +~~~~~ + +.. table:: + + +------------------+--------------------------+ + |Option |Tracks By | + +==================+==========================+ + |by_src |source IP | + +------------------+--------------------------+ + |by_dst |destination IP | + +------------------+--------------------------+ + |by_both |pair of src IP and dst IP | + +------------------+--------------------------+ + |by_rule |signature id | + +------------------+--------------------------+ + |by_flow |flow | + +------------------+--------------------------+ + + detection_filter ----------------