diff options
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-x | etc/rc.update_bogons.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 0e3c4b0..b787187 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -5,7 +5,7 @@ # www.pfsense.com # Grab a random value -value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*2000)}'` +value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*8000)}'` # Sleep for that time. sleep $value @@ -14,6 +14,8 @@ sleep $value /usr/bin/fetch -q -o /tmp/bogons "http://files.pfsense.org/bogon-bn-nonagg.txt" if [ ! -f /tmp/bogons ]; then echo "Could not download http://files.pfsense.org/bogon-bn-nonagg.txt" | logger + # Relaunch and sleep + sh /etc/rc.update_bogons.sh & exit fi egrep -v "^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8" /tmp/bogons > /etc/bogons |