From 34525fefe1936d1bc12ffd1afd0a2428e5e80f7b Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 29 Jul 2010 21:02:05 +0000 Subject: Show all tables present in the tables ruleset on the diag overload tables. --- usr/local/www/diag_overload_tables.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'usr/local/www/diag_overload_tables.php') diff --git a/usr/local/www/diag_overload_tables.php b/usr/local/www/diag_overload_tables.php index 03205a1..e4bba75 100644 --- a/usr/local/www/diag_overload_tables.php +++ b/usr/local/www/diag_overload_tables.php @@ -48,12 +48,9 @@ require_once("guiconfig.inc"); // Set default table $tablename = "sshlockout"; -if($_REQUEST['type'] == "sshlockout") - $tablename = "sshlockout"; +if($_REQUEST['type']) + $tablename = $_REQUEST['type']; -if($_REQUEST['type'] == "virusprot") - $tablename = "virusprot"; - if($_REQUEST['delete']) { if(is_ipaddr($_REQUEST['delete'])) { exec("/sbin/pfctl -t " . escapeshellarg($_REQUEST['type']) . " -T delete " . escapeshellarg($_REQUEST['delete']), $delete); @@ -73,6 +70,7 @@ if($_REQUEST['deleteall']) { } exec("/sbin/pfctl -t $tablename -T show", $entries); +exec("/sbin/pfctl -sT", $tables); include("head.inc"); include("fbegin.inc"); @@ -98,8 +96,13 @@ include("fbegin.inc"); :

-- cgit v1.1