From 8525e3f3e3b0b2543574c70f436e12e3508625d3 Mon Sep 17 00:00:00 2001 From: robiscool Date: Thu, 10 Sep 2009 13:57:12 -0700 Subject: snort-dev, add ac-bnfa to sysnc --- config/snort-dev/snort.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'config') 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 */ -- cgit v1.2.3