diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-03 15:58:03 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-03 15:58:03 -0400 |
commit | 129844406855b3406d9d220df776a3e12ffc55da (patch) | |
tree | 41247486f248e8fbda963e277802a2feb751b49b /config/snort/snort_preprocessors.php | |
parent | 4fd76cd7429085db1a43346adf5f0b309e48721e (diff) | |
download | pfsense-packages-129844406855b3406d9d220df776a3e12ffc55da.tar.gz pfsense-packages-129844406855b3406d9d220df776a3e12ffc55da.tar.bz2 pfsense-packages-129844406855b3406d9d220df776a3e12ffc55da.zip |
Show validation error for FQDN alias since we do not support them in pkgs.
Diffstat (limited to 'config/snort/snort_preprocessors.php')
-rwxr-xr-x | config/snort/snort_preprocessors.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php index de680886..d5eadfd9 100755 --- a/config/snort/snort_preprocessors.php +++ b/config/snort/snort_preprocessors.php @@ -451,6 +451,12 @@ if ($_POST['save']) { $input_errors[] = gettext("The value for Application ID Stats Period must be between 60 and 3600."); } + // Validate Portscan Ignore_Scanners parameter + if ($_POST['sf_portscan'] == 'on' && is_alias($_POST['pscan_ignore_scanners'])) { + if (trim(filter_expand_alias($_POST["def_{$key}"])) == "") + $input_errors[] = gettext("FQDN aliases are not supported in Snort for the PORTSCAN IGNORE_SCANNERS parameter."); + } + /* if no errors write to conf */ if (!$input_errors) { /* post new options */ |