From 7e50413caa592eb4b9b8cd7e2c930af5c85ac1a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Wed, 24 Dec 2008 21:03:05 +0000 Subject: [PATCH] Frontend part for the layer7 with little cleaning up by me. Submitted-by: Helder Pereira --- usr/local/www/firewall_rules_edit.php | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index e6f445bdca..37af21de55 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -136,6 +136,7 @@ if (isset($id) && $a_filter[$id]) { $pconfig['ackqueue'] = $a_filter[$id]['ackqueue']; $pconfig['dnpipe'] = $a_filter[$id]['dnpipe']; $pconfig['pdnpipe'] = $a_filter[$id]['pdnpipe']; + $pconfig['l7container'] = $a_filter[$id]['l7container']; //schedule support $pconfig['sched'] = $a_filter[$id]['sched']; @@ -328,6 +329,10 @@ if ($_POST) { else if ($dnpipe[0] == "?" && $pdnpipe[0] <> "?") $input_errors[] = "You cannot select one queue and one virtual interface for IN and Out. both must be from the same type."; } + if($_POST['l7container'] && $_POST['l7container'] != "none") { + if(!($_POST['proto'] == "tcp" || $_POST['proto'] == "udp" || $_POST['proto'] == "tcp/udp")) + $input_errors[] = "You can only select a layer7 container for tcp and/or udp protocols"; + } if (!$input_errors) { $filterent = array(); @@ -419,6 +424,10 @@ if ($_POST) { $filterent['pdnpipe'] = $_POST['pdnpipe']; } + if (isset($_POST['l7container']) && $_POST['l7container'] != "none") { + $filterent['l7container'] = $_POST['l7container']; + } + if ($_POST['sched'] != "") { $filterent['sched'] = $_POST['sched']; } @@ -1103,6 +1112,31 @@ include("head.inc"); Choose the Acknowledge Queue only if you have selected Queue. + + Layer7 + + +
+ Choose a Layer7 container to apply application protocol inspection rules. + This rule are valid for tcp and udp protocols for now. + + Description