diff options
author | robiscool <robrob2626@yahoo.com> | 2010-09-05 21:28:42 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-09-05 21:29:17 -0700 |
commit | 56a779987a0f6c19c6e4276efbe9f0717eadfc2f (patch) | |
tree | a01b6f3711fc282ab626107c51b517079bb0b34e /config/snort/snort.inc | |
parent | c4dd209b52b822a2d61d1bd6acc24db9e046d7fe (diff) | |
download | pfsense-packages-56a779987a0f6c19c6e4276efbe9f0717eadfc2f.tar.gz pfsense-packages-56a779987a0f6c19c6e4276efbe9f0717eadfc2f.tar.bz2 pfsense-packages-56a779987a0f6c19c6e4276efbe9f0717eadfc2f.zip |
snort, fix so rules on 64 bit pfsense
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 0094cff3..409d1230 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -37,7 +37,7 @@ require_once("functions.inc"); require_once("filter.inc"); /* package version */ -$snort_package_version = 'Snort 2.8.6.1 pkg v. 1.33'; +$snort_package_version = 'Snort 2.8.6.1 pkg v. 1.34'; /* find out if were in 1.2.3-RELEASE */ $pfsense_ver_chk = exec('/bin/cat /etc/version'); @@ -546,6 +546,7 @@ if($snort_arch_ck[0] == 'i386') { { exec('/bin/rm /usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example*'); } + /* add snort user and group note: 920 keep the numbers < 2000, above this is reserved in pfSense 2.0 */ exec('/usr/sbin/pw groupadd snort -g 920'); @@ -577,6 +578,11 @@ if($snort_arch_ck[0] == 'i386') { { exec('/bin/mkdir -p /var/log/snort/barnyard2/'); } + + if(!file_exists('/usr/local/lib/snort/dynamicrules/')) + { + exec('/bin/mkdir -p /usr/local/lib/snort/dynamicrules/'); + } if(!file_exists('/var/db/whitelist')) { |