diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-11-11 21:08:20 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-11-11 21:08:20 +0000 |
commit | 75e9d40f4d500ddd3c59f2926e286ab2f3bda01c (patch) | |
tree | 8911fc7b72dc5e0997859c84e0485af29119f9eb /usr/local/www | |
parent | 9da76e9327fa3a95bd3b67d71760371c4d8e6a6b (diff) | |
download | pfsense-75e9d40f4d500ddd3c59f2926e286ab2f3bda01c.zip pfsense-75e9d40f4d500ddd3c59f2926e286ab2f3bda01c.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')
-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 19698dc..f81ef93 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -226,6 +226,9 @@ if ($_POST) { if(is_alias($_POST['src'])) $input_errors[] = "You must specify single host or alias for alias entries."; } + if($_POST['sched'] && $_POST['gateway']) + $input_errors[] = "You cannot specify a gateway with time based rules."; + if($_POST['dsttype'] == "network") { if(is_alias($_POST['dst'])) $input_errors[] = "You must specify single host or alias for alias entries."; |