aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort.inc5
-rw-r--r--packages/snort/snort_advanced.xml8
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();