suricata: Do not always convert rules to be bi-directional

This creates some overhead that we do not need and rules need to
be adjusted to match any direction they are supposed to match.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-04-21 01:32:07 +01:00
parent e967871e8f
commit 2dd5e64592
2 changed files with 1 additions and 3 deletions

View File

@@ -742,9 +742,6 @@ sub write_modify_sids_file($) {
# Write file header.
print FILE "#Autogenerated file. Any custom changes will be overwritten!\n";
# Tune rules to monitor in both directions.
print FILE "modifysid \* \"\-\>\" \| \"\<\>\"\n";
# Check if the traffic only should be monitored.
unless($ruleaction eq "alert") {
# Tell oinkmaster to switch all rules from alert to drop.