diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-11-27 10:26:18 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-11-27 10:26:18 -0500 |
commit | 542ef4507ec5b4d4cae413e15a5fbb64beb985dd (patch) | |
tree | 2dcf3d0fe1da65528889829fcb1fe45778572f65 /config/snort | |
parent | d4117f9f5f77e5a45fb736141f1b51376ecded87 (diff) | |
download | pfsense-packages-542ef4507ec5b4d4cae413e15a5fbb64beb985dd.tar.gz pfsense-packages-542ef4507ec5b4d4cae413e15a5fbb64beb985dd.tar.bz2 pfsense-packages-542ef4507ec5b4d4cae413e15a5fbb64beb985dd.zip |
Make sure map files get copied when using only ET rules.
Diffstat (limited to 'config/snort')
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 2afae663..5f687636 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -105,6 +105,7 @@ if ($etpro == "on") { $emergingthreats_url = ETPRO_BASE_DNLD_URL; $emergingthreats_url .= "{$etproid}/snort-" . ET_VERSION . "/"; $emergingthreats = "on"; + $et_enabled= "on"; $et_name = "Emerging Threats Pro"; $et_md5_remove = ET_DNLD_FILENAME . ".md5"; @unlink("{$snortdir}/{$et_md5_remove}"); @@ -665,6 +666,11 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules = $cfgs = glob("{$snortdir}/tmp/*classification.config"); $cfgs[] = "{$snortdir}/classification.config"; snort_merge_classification_configs($cfgs, "{$snortdir}/classification.config"); + /* Use the unicode.map and gen-msg.map files from ET rules. */ + if (file_exists("{$snortdir}/tmp/ET_unicode.map")) + @copy("{$snortdir}/tmp/ET_unicode.map", "{$snortdir}/unicode.map"); + if (file_exists("{$snortdir}/tmp/ET_gen-msg.map")) + @copy("{$snortdir}/tmp/ET_gen-msg.map", "{$snortdir}/gen-msg.map"); } elseif (($vrt_enabled == 'on') && ($et_enabled == 'off')) { foreach (array("classification.config", "reference.config", "gen-msg.map", "unicode.map") as $file) { |