return 0;
}
- SCConfNode *default_fw_rule_path = SCConfGetNode("firewall-rule-path");
+ SCConfNode *default_fw_rule_path = SCConfGetNode("firewall.rule-path");
if (default_fw_rule_path == NULL) {
- SCLogNotice("fw: firewall-rule-path not defined, skip loading firewall rules");
+ SCLogNotice("fw: firewall.rule-path not defined, skip loading firewall rules");
return 0;
}
- SCConfNode *rule_files = SCConfGetNode("firewall-rule-files");
+ SCConfNode *rule_files = SCConfGetNode("firewall.rule-files");
if (rule_files == NULL) {
- SCLogNotice("fw: firewall-rule-files not defined, skip loading firewall rules");
+ SCLogNotice("fw: firewall.rule-files not defined, skip loading firewall rules");
return 0;
}
int32_t bad_sigs = 0;
int32_t skipped_sigs = 0;
- char *sfile = DetectLoadCompleteSigPathWithKey(de_ctx, "firewall-rule-path", file->val);
+ char *sfile = DetectLoadCompleteSigPathWithKey(de_ctx, "firewall.rule-path", file->val);
SCLogNotice("fw: rule file full path \"%s\"", sfile);
int ret = DetectLoadSigFile(de_ctx, sfile, &good_sigs, &bad_sigs, &skipped_sigs, true);
rule-files:
- suricata.rules
-##
-## Suricata as a Firewall options (experimental)
-##
-
-# Firewall rule file are in their own path and are not managed
-# by Suricata-Update.
-#firewall-rule-path: /etc/suricata/firewall/
-
-# List of files with firewall rules. Order matters, files are loaded
-# in order and rules are applied in that order (per state, see docs)
-#firewall-rule-files:
-# - firewall.rules
-
-
##
## Auxiliary configuration files.
##
reference-config-file: @e_sysconfdir@reference.config
# threshold-file: @e_sysconfdir@threshold.config
+##
+## Suricata as a Firewall options (experimental)
+##
+firewall:
+ # Firewall rule file are in their own path and are not managed
+ # by Suricata-Update.
+ #rule-path: /etc/suricata/firewall/
+
+ # List of files with firewall rules. Order matters, files are loaded
+ # in order and rules are applied in that order (per state, see docs)
+ #rule-files:
+ # - firewall.rules
+
+
##
## Include other configs
##