diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-28 19:30:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-28 19:30:21 +0000 |
commit | 0c184d3eb972ce257b9b8c8ac4783f4dd88282e6 (patch) | |
tree | 84dda830dd9768be8484077cb7307f5e52052827 /packages | |
parent | 8b4396fa289fb77c0312545795180807a740907b (diff) | |
download | pfsense-packages-0c184d3eb972ce257b9b8c8ac4783f4dd88282e6.tar.gz pfsense-packages-0c184d3eb972ce257b9b8c8ac4783f4dd88282e6.tar.bz2 pfsense-packages-0c184d3eb972ce257b9b8c8ac4783f4dd88282e6.zip |
Add snort advanced pass thrrough configuration
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.inc | 5 | ||||
-rw-r--r-- | packages/snort/snort_advanced.xml | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index 3d5581bc..602484f3 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -176,6 +176,8 @@ function generate_snort_conf() { /* XXX: make multi wan friendly */ $snort_ext_int = $config['installedpackages']['snort']['config'][0]['iface_array'][0]; + $snort_config_pass_thru = $config['installedpackages']['snort']['config'][0]['configpassthru']; + /* add auto update scripts to /etc/crontab */ $text_ww = "*/60\t* \t 1\t *\t *\t root\t /usr/bin/nice -n20 /usr/local/pkg/snort_check_for_rule_updates.php"; $filenamea = "/etc/crontab"; @@ -389,6 +391,9 @@ preprocessor flow-portscan: \ include classification.config include reference.config +# Snort user pass through configuration +{$snort_config_pass_thru} + #Rulesets, all optional {$selected_rules_sections} diff --git a/packages/snort/snort_advanced.xml b/packages/snort/snort_advanced.xml index cf29f93d..8884073c 100644 --- a/packages/snort/snort_advanced.xml +++ b/packages/snort/snort_advanced.xml @@ -57,6 +57,14 @@ <description>Changing this option adjusts the system maximum BPF insert size. Leave blank if you do not know what this does. Default is 512.</description> <type>input</type> </field> + <field> + <fielddescr>Advanced configuration pass through</fielddescr> + <fieldname>configpassthru</fieldname> + <description>Add items to here will be automatically inserted into the running snort configuration</description> + <type>textarea</type> + <rows>5</rows> + <cols>40</cols> + </field> </fields> <custom_php_deinstall_command> snort_advanced(); |