aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-14 22:20:38 +0000
committerErmal <eri@pfsense.org>2012-07-14 22:20:38 +0000
commitecbb8b086cc2defd17d1ecbae844b9d293e16e28 (patch)
treea211907e9ec6b217d7eb245f6e3a4ab6f68b4184 /config/snort
parentf0f787a2e55183330f4e6a2655db51e833406158 (diff)
downloadpfsense-packages-ecbb8b086cc2defd17d1ecbae844b9d293e16e28.tar.gz
pfsense-packages-ecbb8b086cc2defd17d1ecbae844b9d293e16e28.tar.bz2
pfsense-packages-ecbb8b086cc2defd17d1ecbae844b9d293e16e28.zip
Correct some code
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc12
1 files changed, 3 insertions, 9 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 9355c79a..54be4225 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -368,13 +368,6 @@ function snort_postinstall() {
$snortdir = SNORTDIR;
- /* snort -> advanced features */
- if (is_array($config['installedpackages']['snortglobal'])) {
- $bpfbufsize = $config['installedpackages']['snortglobal']['bpfbufsize'];
- $bpfmaxbufsize = $config['installedpackages']['snortglobal']['bpfmaxbufsize'];
- $bpfmaxinsns = $config['installedpackages']['snortglobal']['bpfmaxinsns'];
- }
-
/* cleanup default files */
@rename("{$snortdir}/snort.conf-sample", "{$snortdir}/snort.conf");
@rename("{$snortdir}/threshold.conf-sample", "{$snortdir}/threshold.conf");
@@ -390,15 +383,17 @@ function snort_postinstall() {
/* remove example files */
if (file_exists('/usr/local/lib/snort/dynamicrules/lib_sfdynamic_example_rule.so.0'))
- exec('/bin/rm /usr/local/lib/snort/dynamicrules/lib_sfdynamic_example*');
+ exec('rm /usr/local/lib/snort/dynamicrules/lib_sfdynamic_example*');
if (file_exists('/usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example.so'))
exec('/bin/rm /usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example*');
+ /*
mwexec("/usr/sbin/chown -R snort:snort /var/log/snort", true);
mwexec("/usr/sbin/chown -R snort:snort {$snortdir}", true);
mwexec('/usr/sbin/chown -R snort:snort /usr/local/lib/snort', true);
mwexec('/usr/sbin/chown snort:snort /tmp/snort*', true);
+ */
/* remake saved settings */
if ($config['installedpackages']['snortglobal']['forcekeepsettings'] == 'on') {
@@ -917,7 +912,6 @@ function snort_deinstall() {
$snortdir = SNORTDIR;
/* decrease bpf buffers back to 4096, from 20480 */
- exec('/sbin/sysctl net.bpf.bufsize=4096');
mwexec('/usr/bin/killall snort', true);
sleep(2);
mwexec('/usr/bin/killall -9 snort', true);