aboutsummaryrefslogtreecommitdiffstats
path: root/config/ipblocklist/convert-execute.sh
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-08-19 23:31:07 -0400
committerTom Schaefer <tom@tomschaefer.org>2010-08-19 23:31:07 -0400
commitcb04733b4420ba7d590a2ab3aee1317f8e98cca9 (patch)
tree53d531de4656226bcb1bcb8661f260c90506020e /config/ipblocklist/convert-execute.sh
parentf7e327b49312454703f19f9ea587f033a0df4f1b (diff)
downloadpfsense-packages-cb04733b4420ba7d590a2ab3aee1317f8e98cca9.tar.gz
pfsense-packages-cb04733b4420ba7d590a2ab3aee1317f8e98cca9.tar.bz2
pfsense-packages-cb04733b4420ba7d590a2ab3aee1317f8e98cca9.zip
ipblocklist add logging option, stats, and added dependancy
modified: config/ipblocklist/convert-execute.sh modified: config/ipblocklist/ipblocklist.inc modified: config/ipblocklist/ipblocklist.tmp modified: config/ipblocklist/ipblocklist.xml new file: config/ipblocklist/p5-Net-CIDR-0.13.tbz new file: config/ipblocklist/perl-5.8.9_2.tbz modified: pkg_config.7.xml modified: pkg_config.8.xml modified: pkg_config.8.xml.amd64
Diffstat (limited to 'config/ipblocklist/convert-execute.sh')
-rwxr-xr-xconfig/ipblocklist/convert-execute.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/config/ipblocklist/convert-execute.sh b/config/ipblocklist/convert-execute.sh
index d4e4a687..916cd1b5 100755
--- a/config/ipblocklist/convert-execute.sh
+++ b/config/ipblocklist/convert-execute.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-#Version 2.1
+#Version 2.2 logging
#kill tables to elminate dups
pfctl -t ipblocklist -T kill
@@ -86,8 +86,13 @@ while read line
echo "table <ipblocklistW> persist file '/usr/local/www/packages/ipblocklist/Wlists/whitelist'" >> /tmp/rules.debug.tmp
echo "pass quick from <ipblocklistW> to any label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
echo "pass quick from any to <ipblocklistW> label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
- echo "block quick from <ipblocklist> to any label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
- echo "block quick from any to <ipblocklist> label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
+ if [ -f logging ]; then
+ echo "block log quick from <ipblocklist> to any label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
+ echo "block log quick from any to <ipblocklist> label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
+ else
+ echo "block quick from <ipblocklist> to any label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
+ echo "block quick from any to <ipblocklist> label 'IP-Blocklist'" >> /tmp/rules.debug.tmp
+ fi
fi
echo $line >> /tmp/rules.debug.tmp
done < "/tmp/rules.debug"