diff options
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort_define_servers.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/snort/snort_define_servers.php b/config/snort/snort_define_servers.php index ef06039d..50342e0a 100644 --- a/config/snort/snort_define_servers.php +++ b/config/snort/snort_define_servers.php @@ -96,6 +96,14 @@ if ($_POST) { $natent = array(); $natent = $pconfig; + foreach ($snort_servers as $key => $server) { + if ($_POST["def_{$key}"] && !is_alias($_POST["def_{$key}"])) + $input_errors[] = "Only aliases are allowed"; + } + foreach ($snort_ports as $key => $server) { + if ($_POST["def_{$key}"] && !is_alias($_POST["def_{$key}"])) + $input_errors[] = "Only aliases are allowed"; + } /* if no errors write to conf */ if (!$input_errors) { /* post new options */ |