diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 21:10:46 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2015-07-22 21:10:46 -0400 |
commit | 2024edc81c2ca27f1db214070e36b03346cb6a5a (patch) | |
tree | 46e2a72af64b7f9d48baa62c07ee39d20b2a2046 /config/suricata/suricata_define_vars.php | |
parent | bfc2bbc091587f5b9ed0f0c8476c63ff6640bda6 (diff) | |
download | pfsense-packages-2024edc81c2ca27f1db214070e36b03346cb6a5a.tar.gz pfsense-packages-2024edc81c2ca27f1db214070e36b03346cb6a5a.tar.bz2 pfsense-packages-2024edc81c2ca27f1db214070e36b03346cb6a5a.zip |
Show validation error for FQDN aliases since we do not support them.
Diffstat (limited to 'config/suricata/suricata_define_vars.php')
-rw-r--r-- | config/suricata/suricata_define_vars.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/suricata/suricata_define_vars.php b/config/suricata/suricata_define_vars.php index 1aff122c..eac0c2a8 100644 --- a/config/suricata/suricata_define_vars.php +++ b/config/suricata/suricata_define_vars.php @@ -101,10 +101,14 @@ if ($_POST) { foreach ($suricata_servers as $key => $server) { if ($_POST["def_{$key}"] && !is_alias($_POST["def_{$key}"])) $input_errors[] = "Only aliases are allowed"; + if ($_POST["def_{$key}"] && is_alias($_POST["def_{$key}"]) && trim(filter_expand_alias($_POST["def_{$key}"])) == "") + $input_errors[] = "FQDN aliases are not allowed for IP variables in Suricata."; } foreach ($suricata_ports as $key => $server) { if ($_POST["def_{$key}"] && !is_alias($_POST["def_{$key}"])) $input_errors[] = "Only aliases are allowed"; + if ($_POST["def_{$key}"] && is_alias($_POST["def_{$key}"]) && trim(filter_expand_alias($_POST["def_{$key}"])) == "") + $input_errors[] = "FQDN aliases are not allowed for port variables in Suricata."; } /* if no errors write to suricata.yaml */ if (!$input_errors) { |