From cb04733b4420ba7d590a2ab3aee1317f8e98cca9 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Thu, 19 Aug 2010 23:31:07 -0400 Subject: ipblocklist add logging option, stats, and added dependancy modified: config/ipblocklist/convert-execute.sh modified: config/ipblocklist/ipblocklist.inc modified: config/ipblocklist/ipblocklist.tmp modified: config/ipblocklist/ipblocklist.xml new file: config/ipblocklist/p5-Net-CIDR-0.13.tbz new file: config/ipblocklist/perl-5.8.9_2.tbz modified: pkg_config.7.xml modified: pkg_config.8.xml modified: pkg_config.8.xml.amd64 --- config/ipblocklist/ipblocklist.tmp | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) (limited to 'config/ipblocklist/ipblocklist.tmp') diff --git a/config/ipblocklist/ipblocklist.tmp b/config/ipblocklist/ipblocklist.tmp index baa0ff09..3c07817b 100755 --- a/config/ipblocklist/ipblocklist.tmp +++ b/config/ipblocklist/ipblocklist.tmp @@ -1,5 +1,5 @@ \n"; } ?> - + Enable IP-Blocklist

@@ -98,8 +113,17 @@ else { + "; + } else { + echo ""; + } +?> + Enable Logging
-

@@ -130,6 +154,14 @@ else { echo "
"; echo $results; echo ""; + + //Get IP Count + echo "
You are blocking "; + ob_start(); + $results = exec("pfctl -T show -t ipblocklist |grep -v -c Z"); + ob_end_clean(); + echo $results; + echo " IPs"; ?> -- cgit v1.2.3