diff options
author | robiscool <robrob2626@yahoo.com> | 2010-04-07 23:40:40 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-04-07 23:41:15 -0700 |
commit | e8fa9505ad3c402bf4a5b5143842c0028382a658 (patch) | |
tree | 802cf09aad71d143bf4fed56817ed93a72d40154 /config/snort/snort.inc | |
parent | 107e44d435f9805003de709a1b9d36f0a3cbb05a (diff) | |
download | pfsense-packages-e8fa9505ad3c402bf4a5b5143842c0028382a658.tar.gz pfsense-packages-e8fa9505ad3c402bf4a5b5143842c0028382a658.tar.bz2 pfsense-packages-e8fa9505ad3c402bf4a5b5143842c0028382a658.zip |
snort, add passthrough option
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index cd2f9946..104c1a5a 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1055,6 +1055,8 @@ function generate_barnyard2_conf($id, $if_real, $snort_uuid) { $snortbarnyardlog_database_info_chk = $config['installedpackages']['snortglobal']['rule'][$id]['barnyard_mysql']; $snortbarnyardlog_hostname_info_chk = exec("/bin/hostname"); +/* user add arguments */ +$snortbarnyardlog_config_pass_thru = str_replace("\r", "", base64_decode($config['installedpackages']['snortglobal']['rule'][$id]['barnconfigpassthru'])); $barnyard2_conf_text = <<<EOD @@ -1094,6 +1096,12 @@ config sid_file: /usr/local/etc/snort/snort_{$snort_uuid}_{$if_real}/sid config hostname: $snortbarnyardlog_hostname_info_chk config interface: {$snort_uuid}_{$if_real} +## START user pass through ## + +{$snortbarnyardlog_config_pass_thru} + +## END user pass through ## + # Step 2: setup the input plugins input unified2 @@ -1259,6 +1267,9 @@ function generate_snort_conf($id, $if_real, $snort_uuid) /* XXX: make multi wan friendly */ $snort_ext_int = $config['installedpackages']['snortglobal']['rule'][$id]['interface']; + /* user added arguments */ + $snort_config_pass_thru = str_replace("\r", "", base64_decode($config['installedpackages']['snortglobal']['rule'][$id]['configpassthru'])); + /* create basic files */ if(!file_exists("/usr/local/etc/snort/snort/snort_{$snort_uuid}_{$if_real}")) { |