summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-12-09 03:41:51 -0600
committerChris Buechler <cmb@pfsense.org>2012-12-09 03:41:51 -0600
commitc2483e319682d86dd3992b5bf79b88aafaf682c2 (patch)
tree8dd888bd1f40f1b39164dda6250f3cc81194bcb4
parent5b6689946363e0a0cb0dee9851d36e1d014f7674 (diff)
downloadpfsense-c2483e319682d86dd3992b5bf79b88aafaf682c2.zip
pfsense-c2483e319682d86dd3992b5bf79b88aafaf682c2.tar.gz
switch to using the fullbogons-ipv4.txt from Cymru, and standardize paths to /lists/
-rwxr-xr-xetc/rc.update_bogons.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index a721096..f34964b 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -17,14 +17,14 @@ fi
echo "rc.update_bogons.sh is beginning the update cycle." | logger
-/usr/bin/fetch -q -o /tmp/bogons "http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt"
-/usr/bin/fetch -q -o /tmp/bogonsv6 "http://files.pfsense.org/mirrors/fullbogons-ipv6.txt"
+/usr/bin/fetch -q -o /tmp/bogons "http://files.pfsense.org/lists/fullbogons-ipv4.txt"
+/usr/bin/fetch -q -o /tmp/bogonsv6 "http://files.pfsense.org/lists/fullbogons-ipv6.txt"
if [ ! -f /tmp/bogons ]; then
- echo "Could not download http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt" | logger
+ echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv4.txt" | logger
dl_error="true"
fi
if [ ! -f /tmp/bogonsv6 ]; then
- echo "Could not download http://files.pfsense.org/mirrors/fullbogons-ipv6.txt" | logger
+ echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv6.txt" | logger
dl_error="true"
fi
@@ -34,9 +34,9 @@ if [ "$dl_error" != "" ];then
exit
fi
-BOGON_V4_MD5=`/usr/bin/fetch -q -o - "http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt.md5" | awk '{ print $4 }'`
+BOGON_V4_MD5=`/usr/bin/fetch -q -o - "http://files.pfsense.org/lists/fullbogons-ipv4.txt.md5" | awk '{ print $4 }'`
ON_DISK_V4_MD5=`md5 /tmp/bogons | awk '{ print $4 }'`
-BOGON_V6_MD5=`/usr/bin/fetch -q -o - "http://files.pfsense.org/mirrors/fullbogons-ipv6.txt.md5" | awk '{ print $4 }'`
+BOGON_V6_MD5=`/usr/bin/fetch -q -o - "http://files.pfsense.org/lists/fullbogons-ipv6.txt.md5" | awk '{ print $4 }'`
ON_DISK_V6_MD5=`md5 /tmp/bogonsv6 | awk '{ print $4 }'`
if [ "$BOGON_V4_MD5" = "$ON_DISK_V4_MD5" ] || [ "$BOGON_V6_MD5" = "$ON_DISK_V6_MD5" ]; then
@@ -50,7 +50,7 @@ if [ "$BOGON_V4_MD5" = "$ON_DISK_V4_MD5" ]; then
rm /tmp/bogons
echo "Bogons V4 file downloaded: $RESULT" | logger
else
- echo "Could not download http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt.md5 (md5 mismatch)" | logger
+ echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv4.txt.md5 (md5 mismatch)" | logger
md5_error="true"
fi
@@ -60,7 +60,7 @@ if [ "$BOGON_V6_MD5" = "$ON_DISK_V6_MD5" ]; then
rm /tmp/bogonsv6
echo "Bogons V6 file downloaded: $RESULT" | logger
else
- echo "Could not download http://files.pfsense.org/mirrors/fullbogons-ipv6.txt.md5 (md5 mismatch)" | logger
+ echo "Could not download http://files.pfsense.org/lists/fullbogons-ipv6.txt.md5 (md5 mismatch)" | logger
md5_error="true"
fi
OpenPOWER on IntegriCloud