aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/execute.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/countryblock/execute.sh')
-rw-r--r--config/countryblock/execute.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/countryblock/execute.sh b/config/countryblock/execute.sh
index 350cd170..bc3d6d21 100644
--- a/config/countryblock/execute.sh
+++ b/config/countryblock/execute.sh
@@ -48,7 +48,11 @@ while read line
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 "block quick from <countryblock> to any label 'countryblock'" >> /tmp/rules.debug.tmp
+ if [ -f logging ]; then
+ echo "block log quick from <countryblock> to any label 'countryblock'" >> /tmp/rules.debug.tmp
+ else
+ echo "block quick from <countryblock> to any label 'countryblock'" >> /tmp/rules.debug.tmp
+ fi
if [ -f OUTBOUND ]; then
echo "block quick from any to <countryblock> label 'countryblock'" >> /tmp/rules.debug.tmp
fi