From 8a00fd158c9be05e852cb6d9b95b2a2bdd3a85f4 Mon Sep 17 00:00:00 2001 From: robiscool Date: Tue, 8 Sep 2009 22:36:24 -0700 Subject: Update msg-mappings, add create-sidmap.pl to download_rules.php, update snort.xml for create-sidmap.pl --- config/snort/snort.xml | 5 +++++ config/snort/snort_download_rules.php | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'config/snort') diff --git a/config/snort/snort.xml b/config/snort/snort.xml index a6064a04..c3263982 100644 --- a/config/snort/snort.xml +++ b/config/snort/snort.xml @@ -113,6 +113,11 @@ 077 http://www.pfsense.com/packages/config/snort/bin/snort2c + + /usr/local/bin/ + 077 + http://www.pfsense.com/packages/config/snort/bin/oinkmaster_contrib/create-sidmap.pl + /usr/local/bin/ 077 diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php index d653f424..904f8057 100644 --- a/config/snort/snort_download_rules.php +++ b/config/snort/snort_download_rules.php @@ -631,6 +631,11 @@ sleep(5); apc_clear_cache(); exec("/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync"); + +update_status(gettext("Updating Alert Messages...")); +update_output_window(gettext("Please Wait...")); +exec("/usr/local/bin/create-sidmap.pl /usr/local/etc/snort/rules > /usr/local/etc/snort/gen-msg.map"); + /* php code finish */ update_status(gettext("The Rules update finished...")); update_output_window(gettext("You may start snort now...")); -- cgit v1.2.3