From 28f9e493b9ebd28db31cb8c6a21d0ed5adbe5518 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 Oct 2006 20:48:17 +0000 Subject: Notify user that reject style rules only work with the TCP protocol. Ticket #1118 --- usr/local/www/firewall_rules_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/firewall_rules_edit.php') 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; -- cgit v1.1