From 0c184d3eb972ce257b9b8c8ac4783f4dd88282e6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 28 Jan 2007 19:30:21 +0000 Subject: Add snort advanced pass thrrough configuration --- packages/snort/snort.inc | 5 +++++ packages/snort/snort_advanced.xml | 8 ++++++++ 2 files changed, 13 insertions(+) (limited to 'packages') 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 @@ Changing this option adjusts the system maximum BPF insert size. Leave blank if you do not know what this does. Default is 512. input + + Advanced configuration pass through + configpassthru + Add items to here will be automatically inserted into the running snort configuration + textarea + 5 + 40 + snort_advanced(); -- cgit v1.2.3