aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_migrate_config.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2015-07-22 20:31:30 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2015-07-22 20:31:30 -0400
commitafba4e722681c35163ec48b7cacffa8b8cb88e5f (patch)
treeb0f50f4c1357081ac692f0197492320ea6ea5f76 /config/suricata/suricata_migrate_config.php
parente4e3ad354f0175ec6ed8e39c40ff2a5666856a8b (diff)
downloadpfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.tar.gz
pfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.tar.bz2
pfsense-packages-afba4e722681c35163ec48b7cacffa8b8cb88e5f.zip
Add new feature to hide deprecated rules categories in GUI.
Diffstat (limited to 'config/suricata/suricata_migrate_config.php')
-rw-r--r--config/suricata/suricata_migrate_config.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/suricata/suricata_migrate_config.php b/config/suricata/suricata_migrate_config.php
index 384033b3..2fd5f96e 100644
--- a/config/suricata/suricata_migrate_config.php
+++ b/config/suricata/suricata_migrate_config.php
@@ -95,6 +95,14 @@ if (empty($config['installedpackages']['suricata']['config'][0]['et_iqrisk_enabl
}
/**********************************************************/
+/* Create new HIDE_DEPRECATED_RULES setting if not set */
+/**********************************************************/
+if (empty($config['installedpackages']['suricata']['config'][0]['hide_deprecated_rules'])) {
+ $config['installedpackages']['suricata']['config'][0]['hide_deprecated_rules'] = "off";
+ $updated_cfg = true;
+}
+
+/**********************************************************/
/* Set default log size and retention limits if not set */
/**********************************************************/
if (!isset($config['installedpackages']['suricata']['config'][0]['alert_log_retention']) && $config['installedpackages']['suricata']['config'][0]['alert_log_retention'] != '0') {