aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-09-10 13:57:12 -0700
committerrobiscool <robrob2626@yahoo.com>2009-09-10 13:57:12 -0700
commit8525e3f3e3b0b2543574c70f436e12e3508625d3 (patch)
tree17aa35f05d6f362086b0e2ba5b8d4a1505cab55c /config/snort-dev
parentce34b4022ce5297b30b7b717328d614e6edd6755 (diff)
downloadpfsense-packages-8525e3f3e3b0b2543574c70f436e12e3508625d3.tar.gz
pfsense-packages-8525e3f3e3b0b2543574c70f436e12e3508625d3.tar.bz2
pfsense-packages-8525e3f3e3b0b2543574c70f436e12e3508625d3.zip
snort-dev, add ac-bnfa to sysnc
Diffstat (limited to 'config/snort-dev')
-rw-r--r--config/snort-dev/snort.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc
index 7a7282bb..12dc77a2 100644
--- a/config/snort-dev/snort.inc
+++ b/config/snort-dev/snort.inc
@@ -68,11 +68,11 @@ function sync_package_snort()
$bpfmaxbufsize = $config['installedpackages']['snortadvanced']['config'][0]['bpfmaxbufsize'];
$bpfmaxinsns = $config['installedpackages']['snortadvanced']['config'][0]['bpfmaxinsns'];
-// /* set the snort performance model */
-// if($config['installedpackages']['snort']['config'][0]['performance'])
-// $snort_performance = $config['installedpackages']['snort']['config'][0]['performance'];
-// else
-// $snort_performance = "ac-bnfa";
+ /* set the snort performance model */
+ if($config['installedpackages']['snort']['config'][0]['performance'])
+ $snort_performance = $config['installedpackages']['snort']['config'][0]['performance'];
+ else
+ $snort_performance = "ac-bnfa";
conf_mount_rw();
/* create a few directories and ensure the sample files are in place */
@@ -88,7 +88,9 @@ function sync_package_snort()
exec("/bin/cp /usr/local/etc/snort/sid-sample /usr/local/etc/snort/sid");
exec("/bin/cp /usr/local/etc/snort/threshold.conf-sample /usr/local/etc/snort/threshold.conf");
exec("/bin/cp /usr/local/etc/snort/unicode.map-sample /usr/local/etc/snort/unicode.map");
+ exec("/usr/bin/touch /usr/local/etc/snort/rules/local.rules");
exec("/bin/rm -f /usr/local/etc/rc.d/snort");
+
$first = 0;
$snortInterfaces = array(); /* -gtm */