From 0946cc52048c95dbf8a2c17578578be30d270c58 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 22 May 2010 22:43:59 -0400 Subject: Adding IP-Blocklist package: This package uses the pf (pfctl) to block IP addresses. For each IP range or list added a pf table is made and applied to the firewall to prevent traffic from being sent to and traffic from being received from the target. You can either enter an IP range manually (experimental) or add a list from sites like iblocklist.com. Tested on 1.2.2 and 1.2.3 with FF and IE. --- config/ipblocklist/purgeip.tmp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 config/ipblocklist/purgeip.tmp (limited to 'config/ipblocklist/purgeip.tmp') diff --git a/config/ipblocklist/purgeip.tmp b/config/ipblocklist/purgeip.tmp new file mode 100755 index 00000000..3622797a --- /dev/null +++ b/config/ipblocklist/purgeip.tmp @@ -0,0 +1,26 @@ + temp_ips.ipfw"); +if ($line == 0) { + exec("rm ips.ipfw"); + } else { + exec("sed $line'd' ips.ipfw > temp_ips.ipfw"); + } +exec("more temp_ips.ipfw > ips.ipfw"); +exec("rm temp_ips.ipfw"); + + +?> + + + + + + + \ No newline at end of file -- cgit v1.2.3