detect/firewall: drop in fw mode does not include alert

In TD mode the drop action also includes alert.

In firewall mode it should not to stay in line with accept.

Ticket: #8601.
(cherry picked from commit 57b16c964e)
pull/15572/head
Victor Julien 4 months ago
parent 816e70029e
commit 8c94f108bc

@ -1586,6 +1586,12 @@ static int SigParseActionDo(const char *action_in, const int idx, const bool fw_
return -1;
if (fw_rule) {
/* in firewall mode, drop is just drop. Whereas in IDS/IPS mode, drop is drop+alert.
* Same for reject which includes ACTION_DROP. */
if (flags & ACTION_DROP) {
flags &= ~ACTION_ALERT;
}
if (idx == 0 &&
!(flags & (ACTION_ACCEPT | ACTION_DROP | ACTION_REJECT_ANY | ACTION_CONFIG))) {
SCLogError("only accept, config, drop and reject actions allowed as primary action "

Loading…
Cancel
Save