aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_post_install.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-01 16:27:09 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-01 16:27:09 -0400
commit56f7c116d00eea10ef796ac41c477330a4d1daac (patch)
tree0203b1da8e5d8947002e2ad3a39e9e8cccad9754 /config/suricata/suricata_post_install.php
parent93b31c59eaa2dbde1720fa85ee42c53b46db2cab (diff)
downloadpfsense-packages-56f7c116d00eea10ef796ac41c477330a4d1daac.tar.gz
pfsense-packages-56f7c116d00eea10ef796ac41c477330a4d1daac.tar.bz2
pfsense-packages-56f7c116d00eea10ef796ac41c477330a4d1daac.zip
Include new 'dns-events.rules' file for Suricata 2.0.3
Diffstat (limited to 'config/suricata/suricata_post_install.php')
-rw-r--r--config/suricata/suricata_post_install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/suricata/suricata_post_install.php b/config/suricata/suricata_post_install.php
index 955751ad..47dd3ad7 100644
--- a/config/suricata/suricata_post_install.php
+++ b/config/suricata/suricata_post_install.php
@@ -112,6 +112,11 @@ safe_mkdir(SURICATALOGDIR);
safe_mkdir(SID_MODS_PATH);
safe_mkdir(IPREP_PATH);
+// Copy the new dns-events.rules file to the
+// Suricata directory if not already present.
+if (!file_exists(SURICATADIR . "rules/dns-events.rules"))
+ @copy("/usr/local/pkg/suricata/dns-events.rules", SURICATADIR . "rules/dns-events.rules");
+
// remake saved settings
if ($config['installedpackages']['suricata']['config'][0]['forcekeepsettings'] == 'on') {
log_error(gettext("[Suricata] Saved settings detected... rebuilding installation with saved settings..."));