summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-07-09 15:44:54 +0000
committerErmal Luçi <eri@pfsense.org>2009-07-09 15:44:54 +0000
commit3b184ca5501b7b8fc2467bb450984dcdf84f17fb (patch)
tree785aa76131e6f3ede2b37dbaa94c514371053436 /usr
parent07b73e3df17ee562545c66bf238e2712568a6d44 (diff)
downloadpfsense-3b184ca5501b7b8fc2467bb450984dcdf84f17fb.zip
pfsense-3b184ca5501b7b8fc2467bb450984dcdf84f17fb.tar.gz
Prevent users to misconfigure layer7 rules for now.(Ther are supported only on pass rules)
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 2a7e12d..d7e1c39 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -339,6 +339,8 @@ if ($_POST) {
if($_POST['l7container'] && $_POST['l7container'] != "none") {
if(!($_POST['proto'] == "tcp" || $_POST['proto'] == "udp" || $_POST['proto'] == "tcp/udp"))
$input_errors[] = "You can only select a layer7 container for tcp and/or udp protocols";
+ if ($_POST['type'] <> "pass")
+ $input_errors[] = "You can only select a layer7 container for Pass type rules.";
}
if (!$input_errors) {
OpenPOWER on IntegriCloud