summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-07 20:48:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-07 20:48:17 +0000
commit28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518 (patch)
tree056270857e11e73a573055d67e4e1cdf5dca5d5a /usr
parent59769c23ddbd9c548b4d3ab2f4c13f1cf30a17a1 (diff)
downloadpfsense-28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518.zip
pfsense-28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518.tar.gz
Notify user that reject style rules only work with the TCP protocol.
Ticket #1118
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php3
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;
OpenPOWER on IntegriCloud