diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-25 04:03:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-25 04:03:45 +0000 |
commit | 9b4406981115cfe58a2d6537a5b5791fec99e789 (patch) | |
tree | 4b33a85365cf97571813ada007e5cb8b1db38e52 /packages | |
parent | 09e08e73db624cd24e072dba970a88b8b07c0dab (diff) | |
download | pfsense-packages-9b4406981115cfe58a2d6537a5b5791fec99e789.tar.gz pfsense-packages-9b4406981115cfe58a2d6537a5b5791fec99e789.tar.bz2 pfsense-packages-9b4406981115cfe58a2d6537a5b5791fec99e789.zip |
* Use /usr/local/etc/snort.conf
* Copy snort.conf sample into place during installation
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index a2283b55..1debde6a 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -23,7 +23,7 @@ function sync_package_snort() { $first = 1; } } - $start = "snort -c /usr/local/etc/snort/rules/snort.conf -l /var/log/snort " . $ifaces_final . " -D"; + $start = "snort -c /usr/local/etc/snort/snort.conf -l /var/log/snort " . $ifaces_final . " -D"; $start .= ";snort2c -s -w /var/db/whitelist -a /var/log/snort/alert"; write_rcfile(array( "file" => "snort.sh", @@ -31,6 +31,7 @@ function sync_package_snort() { "stop" => "/usr/bin/killall snort; killall snort2c" ) ); + exec("cp /usr/local/etc/snort/snort.conf-sample /usr/local/etc/snort.conf"); start_service("snort"); } |