diff options
author | Bill Marquette <billm@pfsense.org> | 2005-02-22 16:47:27 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-02-22 16:47:27 +0000 |
commit | c22767b120e6d696a1475a9ec4ffcb89fc9d40c6 (patch) | |
tree | 2bf2ded8c10589b1a1132bf7f58b0555a33c4844 /usr/local/www | |
parent | 0cf0ddc9506eb30607c273720032e85bbe811189 (diff) | |
download | pfsense-c22767b120e6d696a1475a9ec4ffcb89fc9d40c6.zip pfsense-c22767b120e6d696a1475a9ec4ffcb89fc9d40c6.tar.gz |
Only allow tcp rules to use alternate keep state methods
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index a4671f8..f9fd13d 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -228,8 +228,8 @@ if ($_POST) { if($_POST['statetype'] == "modulate state" or $_POST['statetype'] == "synproxy state") - if( $_POST['proto'] == "udp" or $_POST['proto'] == "tcp/udp" or $_POST['proto'] == "icmp") - $input_errors[] = "You cannot select udp or icmp when using modulate state or synproxy state."; + if( $_POST['proto'] != "tcp" ) + $input_errors[] = "{$_POST['statetype']} is only valid with protocol tcp."; if (!(is_specialnet($_POST['srctype']) || ($_POST['srctype'] == "single"))) { |