From 7bcc2b400314dff7235bb635a9968d04d2e7df76 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Sun, 25 Jul 2010 15:08:58 -0400 Subject: Updated countryblock to 1.3 --- config/countryblock/execute.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/countryblock/execute.sh') diff --git a/config/countryblock/execute.sh b/config/countryblock/execute.sh index f109f896..350cd170 100644 --- a/config/countryblock/execute.sh +++ b/config/countryblock/execute.sh @@ -1,3 +1,4 @@ +#!/bin/sh pfctl -t countryblock -T kill sed -i -e '/countryblock/d' /tmp/rules.debug @@ -5,7 +6,7 @@ sed -i -e '/countryblock/d' /tmp/rules.debug #find my line for table export i=`grep -n 'block quick from any to ' /tmp/rules.debug | grep -o '[0-9]\{2,4\}'` -export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]'` +export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]\{1,2\}'` i=$(($i+'1')) t=$(($t+'1')) @@ -44,6 +45,9 @@ while read line echo "" >> /tmp/rules.debug.tmp echo "#countryblock" >> /tmp/rules.debug.tmp echo "table persist file '/usr/local/www/packages/countryblock/lists/countries.txt'" >> /tmp/rules.debug.tmp + echo "table persist file '/usr/local/www/packages/countryblock/countries-white.txt'" >> /tmp/rules.debug.tmp + echo "pass quick from to any label 'countryblock'" >> /tmp/rules.debug.tmp + echo "pass quick from any to label 'countryblock'" >> /tmp/rules.debug.tmp echo "block quick from to any label 'countryblock'" >> /tmp/rules.debug.tmp if [ -f OUTBOUND ]; then echo "block quick from any to label 'countryblock'" >> /tmp/rules.debug.tmp -- cgit v1.2.3