aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-04-17 17:19:16 -0400
committerErmal <eri@pfsense.org>2014-04-28 08:03:39 +0000
commit20249fe233afa9b42193a9249ecf4cac21ead9f4 (patch)
treed7d9e55e7275cc8caaad962bd7be5a576d4ae525 /config/snort/snort.inc
parentf514922afc4281dc71515e7d81b175cb88a6abed (diff)
downloadpfsense-packages-20249fe233afa9b42193a9249ecf4cac21ead9f4.tar.gz
pfsense-packages-20249fe233afa9b42193a9249ecf4cac21ead9f4.tar.bz2
pfsense-packages-20249fe233afa9b42193a9249ecf4cac21ead9f4.zip
Add param to disable sig_reference table updates and fix root login bug.
Diffstat (limited to 'config/snort/snort.inc')
-rwxr-xr-xconfig/snort/snort.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index e82a6a1c..210f42f8 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -1987,7 +1987,9 @@ function snort_generate_barnyard2_conf($snortcfg, $if_real) {
$by2_dbpwd = base64_decode($snortcfg['barnyard_dbpwd']);
$snortbarnyardlog_output_plugins .= "# database: log to a MySQL DB\noutput database: log, mysql, ";
if (isset($snortcfg['barnyard_sensor_name']) && strlen($snortcfg['barnyard_sensor_name']) > 0)
- $snortbarnyardlog_output_plugins .= "sensor_name={$snortcfg['barnyard_sensor_name']}, ";
+ $snortbarnyardlog_output_plugins .= "sensor_name={$snortcfg['barnyard_sensor_name']} ";
+ if ($snortcfg['barnyard_disable_sig_ref_tbl'] == 'on')
+ $snortbarnyardlog_output_plugins .= "disable_signature_reference_table ";
$snortbarnyardlog_output_plugins .= "user={$snortcfg['barnyard_dbuser']} password={$by2_dbpwd} ";
$snortbarnyardlog_output_plugins .= "dbname={$snortcfg['barnyard_dbname']} host={$snortcfg['barnyard_dbhost']}\n\n";
}