summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-12-28 14:08:41 -0800
committerChris Buechler <cmb@pfsense.org>2012-12-28 14:08:41 -0800
commit894f18ef3125ef0e1402dfc1fcb40b7d3023e699 (patch)
tree4901bf3fd692f94bddc042f274588cc0ae2012a7 /etc
parentfd58d121568f9a0436811201b783f0ea17aee6c4 (diff)
parent274930095b899e2750b51a121a35efa8ea7ce1e7 (diff)
downloadpfsense-894f18ef3125ef0e1402dfc1fcb40b7d3023e699.zip
pfsense-894f18ef3125ef0e1402dfc1fcb40b7d3023e699.tar.gz
Merge pull request #286 from N0YB/bogonsv6_comments
pfctl is comment aware (#)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.update_bogons.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index f34964b..69870eb 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -48,17 +48,17 @@ if [ "$BOGON_V4_MD5" = "$ON_DISK_V4_MD5" ]; then
egrep -v "^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8" /tmp/bogons > /etc/bogons
RESULT=`/sbin/pfctl -t bogons -T replace -f /etc/bogons 2>&1`
rm /tmp/bogons
- echo "Bogons V4 file downloaded: $RESULT" | logger
+ echo "$RESULT" |awk '{ print "Bogons V4 file downloaded: " $0 }' | logger
else
echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv4.txt.md5 (md5 mismatch)" | logger
md5_error="true"
fi
if [ "$BOGON_V6_MD5" = "$ON_DISK_V6_MD5" ]; then
- egrep -v "^#" /tmp/bogonsv6 > /etc/bogonsv6
+ egrep -v "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6
RESULT=`/sbin/pfctl -t bogonsv6 -T replace -f /etc/bogonsv6 2>&1`
rm /tmp/bogonsv6
- echo "Bogons V6 file downloaded: $RESULT" | logger
+ echo "$RESULT" |awk '{ print "Bogons V6 file downloaded: " $0 }' | logger
else
echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv6.txt.md5 (md5 mismatch)" | logger
md5_error="true"
OpenPOWER on IntegriCloud