summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-02-22 16:47:27 +0000
committerBill Marquette <billm@pfsense.org>2005-02-22 16:47:27 +0000
commitc22767b120e6d696a1475a9ec4ffcb89fc9d40c6 (patch)
tree2bf2ded8c10589b1a1132bf7f58b0555a33c4844 /usr/local/www/firewall_rules_edit.php
parent0cf0ddc9506eb30607c273720032e85bbe811189 (diff)
downloadpfsense-c22767b120e6d696a1475a9ec4ffcb89fc9d40c6.zip
pfsense-c22767b120e6d696a1475a9ec4ffcb89fc9d40c6.tar.gz
Only allow tcp rules to use alternate keep state methods
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php4
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"))) {
OpenPOWER on IntegriCloud