diff options
Diffstat (limited to 'config/countryblock')
-rwxr-xr-x[-rw-r--r--] | config/countryblock/execute.sh | 12 |
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" |