diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-07 20:48:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-07 20:48:17 +0000 |
commit | 28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518 (patch) | |
tree | 056270857e11e73a573055d67e4e1cdf5dca5d5a /usr/local/www | |
parent | 59769c23ddbd9c548b4d3ab2f4c13f1cf30a17a1 (diff) | |
download | pfsense-28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518.zip pfsense-28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518.tar.gz |
Notify user that reject style rules only work with the TCP protocol.
Ticket #1118
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 9b9915c..1935fb4 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -115,6 +115,9 @@ if (isset($_GET['dup'])) if ($_POST) { + if ($_POST['type'] == "reject" && $_POST['proto'] <> "tcp") + $input_errors[] = "Reject type rules only works when the protocol is set to TCP."; + if (($_POST['proto'] != "tcp") && ($_POST['proto'] != "udp") && ($_POST['proto'] != "tcp/udp")) { $_POST['srcbeginport'] = 0; $_POST['srcendport'] = 0; |