diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-11-11 21:11:41 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-11-11 21:11:41 +0000 |
commit | 10f7933fc0e27464ad2909b05e2f2919075a1b12 (patch) | |
tree | 2fb32151fa2086e6eaa4923c6a8d32de511c802b /usr/local/www/firewall_rules_edit.php | |
parent | c4bf9453099b3b6e2c00d8febd23ef4da5046a42 (diff) | |
download | pfsense-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/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 3 |
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"; |