From be756e02c4ee62f2140ba1e0c635e9de2173be73 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Tue, 29 Jan 2013 21:24:52 -0500 Subject: Add additional config parameters in GUI for pfPortscan preprocessor. --- config/snort/snort_preprocessors.php | 98 ++++++++++++++++++++++++++++++++---- 1 file changed, 88 insertions(+), 10 deletions(-) diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php index 916fd413..89f1136c 100755 --- a/config/snort/snort_preprocessors.php +++ b/config/snort/snort_preprocessors.php @@ -81,6 +81,9 @@ if ($_POST) { $natent = array(); $natent = $pconfig; + if ($_POST['pscan_ignore_scanners'] && !is_alias($_POST['pscan_ignore_scanners'])) + $input_errors[] = "Only aliases are allowed"; + /* if no errors write to conf */ if (!$input_errors) { /* post new options */ @@ -89,6 +92,12 @@ if ($_POST) { if ($_POST['max_queued_bytes'] != "") { $natent['max_queued_bytes'] = $_POST['max_queued_bytes']; }else{ $natent['max_queued_bytes'] = ""; } if ($_POST['max_queued_segs'] != "") { $natent['max_queued_segs'] = $_POST['max_queued_segs']; }else{ $natent['max_queued_segs'] = ""; } if ($_POST['stream5_mem_cap'] != "") { $natent['stream5_mem_cap'] = $_POST['stream5_mem_cap']; }else{ $natent['stream5_mem_cap'] = ""; } + if ($_POST['pscan_sense_level'] != "") { $natent['pscan_sense_level'] = $_POST['pscan_sense_level']; }else{ $natent['pscan_sense_level'] = "medium"; } + + if ($_POST['pscan_ignore_scanners']) + $natent['pscan_ignore_scanners'] = $_POST['pscan_ignore_scanners']; + else + unset($natent['pscan_ignore_scanners']); $natent['perform_stat'] = $_POST['perform_stat'] ? 'on' : 'off'; $natent['http_inspect'] = $_POST['http_inspect'] ? 'on' : 'off'; @@ -155,6 +164,10 @@ include_once("head.inc"); ?> + +
@@ -177,7 +190,7 @@ include_once("head.inc"); @@ -298,6 +311,46 @@ include_once("head.inc"); "in RAM. Default value is 8388608 (8 MB)"); ?>
+ + + + + + + + + + + + + + @@ -346,15 +399,6 @@ include_once("head.inc"); onClick="enable_change(false)">
- - - - @@ -438,6 +482,40 @@ include_once("head.inc");
  >
-
+

+
+ onClick="enable_change(false)">
+
+
+ +
+ +
+ +
+
+

+ +

-
- onClick="enable_change(false)">
-

+ -- cgit v1.2.3