From 22635d49284b18f41ba5924dd3a0a7c6e760c48a Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Wed, 29 Sep 2010 04:46:49 -0400 Subject: ver 1.5 --- config/countryblock/execute.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 config/countryblock/execute.sh (limited to 'config/countryblock') diff --git a/config/countryblock/execute.sh b/config/countryblock/execute.sh old mode 100644 new mode 100755 index bc3d6d21..b70894e6 --- a/config/countryblock/execute.sh +++ b/config/countryblock/execute.sh @@ -42,20 +42,22 @@ while read line do a=$(($a+1)); echo $a; if [ "$a" = "$i" ]; then + for i in $(cat interfaces.txt); do 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 "pass quick from to $i label 'countryblock'" >> /tmp/rules.debug.tmp + echo "pass quick from $i to label 'countryblock'" >> /tmp/rules.debug.tmp if [ -f logging ]; then - echo "block log quick from to any label 'countryblock'" >> /tmp/rules.debug.tmp + echo "block log quick from to $i label 'countryblock'" >> /tmp/rules.debug.tmp else - echo "block quick from to any label 'countryblock'" >> /tmp/rules.debug.tmp + echo "block quick from to $i label 'countryblock'" >> /tmp/rules.debug.tmp fi if [ -f OUTBOUND ]; then - echo "block quick from any to label 'countryblock'" >> /tmp/rules.debug.tmp + echo "block quick from $i to label 'countryblock'" >> /tmp/rules.debug.tmp fi + done fi echo $line >> /tmp/rules.debug.tmp done < "/tmp/rules.debug" -- cgit v1.2.3