From 3f04af7c7fb504ab1a38af671cf74b69078590bc Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 8 Mar 2024 11:50:14 +0100 Subject: [PATCH] doc: add thresholding by_flow --- .../configuration/global-thresholds.rst | 3 ++- doc/userguide/rules/thresholding.rst | 23 ++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) 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 ----------------