diff options
author | Renato Botelho <renato@netgate.com> | 2015-07-15 13:42:22 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-07-15 13:42:22 -0300 |
commit | 2a323a0e26f769ad71ca75763fe88812d24c1acf (patch) | |
tree | f1f76faf0d824439bb88642b0d9e81ddbb2460a0 /config/snort/snort_migrate_config.php | |
parent | d80e45e5c937c8b7c2571da35c5beab17b667f6d (diff) | |
parent | 4106c494cdc49668e23a4bae378edc69521468bb (diff) | |
download | pfsense-packages-2a323a0e26f769ad71ca75763fe88812d24c1acf.tar.gz pfsense-packages-2a323a0e26f769ad71ca75763fe88812d24c1acf.tar.bz2 pfsense-packages-2a323a0e26f769ad71ca75763fe88812d24c1acf.zip |
Merge pull request #900 from bmeeks8/snort-3.2.6
Diffstat (limited to 'config/snort/snort_migrate_config.php')
-rw-r--r-- | config/snort/snort_migrate_config.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/snort/snort_migrate_config.php b/config/snort/snort_migrate_config.php index dcc5aa76..ae1daf6a 100644 --- a/config/snort/snort_migrate_config.php +++ b/config/snort/snort_migrate_config.php @@ -117,6 +117,14 @@ if (empty($config['installedpackages']['snortglobal']['openappid_detectors'])) { } /**********************************************************/ +/* Create new HIDE_DEPRECATED_RULES setting if not set */ +/**********************************************************/ +if (empty($config['installedpackages']['snortglobal']['hide_deprecated_rules'])) { + $config['installedpackages']['snortglobal']['hide_deprecated_rules'] = "off"; + $updated_cfg = true; +} + +/**********************************************************/ /* Migrate per interface settings if required. */ /**********************************************************/ foreach ($rule as &$r) { @@ -533,7 +541,7 @@ unset($r); // Log a message if we changed anything if ($updated_cfg) { - $config['installedpackages']['snortglobal']['snort_config_ver'] = "3.2.5"; + $config['installedpackages']['snortglobal']['snort_config_ver'] = "3.2.6"; log_error("[Snort] Settings successfully migrated to new configuration format..."); } else |