aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-09-29 04:46:49 -0400
committerTom Schaefer <tom@tomschaefer.org>2010-09-29 04:46:49 -0400
commit22635d49284b18f41ba5924dd3a0a7c6e760c48a (patch)
treeb6aa881e3885e7a80bb1fb26734778cdca5ec895 /config/countryblock
parent8c5b659410a252f726eeafcda366015193db0943 (diff)
downloadpfsense-packages-22635d49284b18f41ba5924dd3a0a7c6e760c48a.tar.gz
pfsense-packages-22635d49284b18f41ba5924dd3a0a7c6e760c48a.tar.bz2
pfsense-packages-22635d49284b18f41ba5924dd3a0a7c6e760c48a.zip
ver 1.5
Diffstat (limited to 'config/countryblock')
-rwxr-xr-x[-rw-r--r--]config/countryblock/execute.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/countryblock/execute.sh b/config/countryblock/execute.sh
index bc3d6d21..b70894e6 100644..100755
--- 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 <countryblock> persist file '/usr/local/www/packages/countryblock/lists/countries.txt'" >> /tmp/rules.debug.tmp
echo "table <countryblockW> persist file '/usr/local/www/packages/countryblock/countries-white.txt'" >> /tmp/rules.debug.tmp
- echo "pass quick from <countryblockW> to any label 'countryblock'" >> /tmp/rules.debug.tmp
- echo "pass quick from any to <countryblockW> label 'countryblock'" >> /tmp/rules.debug.tmp
+ echo "pass quick from <countryblockW> to $i label 'countryblock'" >> /tmp/rules.debug.tmp
+ echo "pass quick from $i to <countryblockW> label 'countryblock'" >> /tmp/rules.debug.tmp
if [ -f logging ]; then
- echo "block log quick from <countryblock> to any label 'countryblock'" >> /tmp/rules.debug.tmp
+ echo "block log quick from <countryblock> to $i label 'countryblock'" >> /tmp/rules.debug.tmp
else
- echo "block quick from <countryblock> to any label 'countryblock'" >> /tmp/rules.debug.tmp
+ echo "block quick from <countryblock> to $i label 'countryblock'" >> /tmp/rules.debug.tmp
fi
if [ -f OUTBOUND ]; then
- echo "block quick from any to <countryblock> label 'countryblock'" >> /tmp/rules.debug.tmp
+ echo "block quick from $i to <countryblock> label 'countryblock'" >> /tmp/rules.debug.tmp
fi
+ done
fi
echo $line >> /tmp/rules.debug.tmp
done < "/tmp/rules.debug"