]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1223 in SNORT/snort3 from fw_reject to master
authorHui Cao (huica) <huica@cisco.com>
Fri, 11 May 2018 15:24:04 +0000 (11:24 -0400)
committerHui Cao (huica) <huica@cisco.com>
Fri, 11 May 2018 15:24:04 +0000 (11:24 -0400)
Squashed commit of the following:

commit 96349ffb3568aafada99c26e8d2362f1eae26ae2
Author: huica <huica@cisco.com>
Date:   Thu May 10 12:14:32 2018 -0400

    snort2lua: enable reject action when firewall is enabled

tools/snort2lua/preprocessor_states/pps_firewall.cc

index 011775b41ced44365bb7efffb6025a963274b1e0..ccdf8a4b55acf5f2dbcccc3c01d4f523b2f7c2cc 100644 (file)
@@ -176,6 +176,11 @@ namespace preprocessors
             }
         }
 
+        // Auto enable for firewall
+        table_api.open_top_level_table("reject");
+        table_api.add_option("reset", "both");
+        table_api.close_table();
+
         return retval;
     }