detect/bypass: ban bypass keyword for firewall mode

Related to
Ticket #8551
pull/15486/head
Juliana Fajardini 4 months ago committed by Victor Julien
parent edaa912ed9
commit a783007408

@ -11,6 +11,11 @@ The ``bypass`` keyword is useful in cases where there is a large flow expected
The ``bypass`` keyword is considered a post-match keyword.
.. note::
``bypass`` cannot be used in firewall mode, not even with Threat Detection
rules, as this could lead to bypassing the firewall altogether.
bypass
------

@ -64,7 +64,7 @@ void DetectBypassRegister(void)
sigmatch_table[DETECT_BYPASS].Match = DetectBypassMatch;
sigmatch_table[DETECT_BYPASS].Setup = DetectBypassSetup;
sigmatch_table[DETECT_BYPASS].Free = NULL;
sigmatch_table[DETECT_BYPASS].flags = SIGMATCH_NOOPT;
sigmatch_table[DETECT_BYPASS].flags = SIGMATCH_NOOPT | SIGMATCH_BAN_FIREWALL_MODE;
}
static int DetectBypassSetup(DetectEngineCtx *de_ctx, Signature *s, const char *str)

Loading…
Cancel
Save