summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-11-11 21:11:41 +0000
committerChris Buechler <cmb@pfsense.org>2008-11-11 21:11:41 +0000
commit10f7933fc0e27464ad2909b05e2f2919075a1b12 (patch)
tree2fb32151fa2086e6eaa4923c6a8d32de511c802b /usr
parentc4bf9453099b3b6e2c00d8febd23ef4da5046a42 (diff)
downloadpfsense-10f7933fc0e27464ad2909b05e2f2919075a1b12.zip
pfsense-10f7933fc0e27464ad2909b05e2f2919075a1b12.tar.gz
don't allow gateway (route-to) to be selected with time based rules (ipfw)
it doesn't do anything, this just doesn't allow a configuration that people would expect to work.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 385d48c..ccf9d2e 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -235,6 +235,9 @@ if ($_POST) {
if(($_POST['statetype'] == "synproxy state") && ($_POST['gateway'] != ""))
$input_errors[] = "{$_POST['statetype']} is only valid if the gateway is set to 'default'.";
}
+
+ if($_POST['sched'] && $_POST['gateway'])
+ $input_errors[] = "You cannot specify a gateway with time based rules.";
if (!(is_specialnet($_POST['srctype']) || ($_POST['srctype'] == "single"))) {
$reqdfields[] = "srcmask";
OpenPOWER on IntegriCloud