diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-02 18:47:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-02 18:47:54 +0000 |
commit | b5158c608b19b8a5e534a73a533224ba913dff0f (patch) | |
tree | 1b2e9684bc5835b5a87e1f802c5ce7ad7c37cdb1 /etc/rc.update_bogons.sh | |
parent | 3a329688834541dc0cf436972984dbdc84d108a7 (diff) | |
download | pfsense-b5158c608b19b8a5e534a73a533224ba913dff0f.zip pfsense-b5158c608b19b8a5e534a73a533224ba913dff0f.tar.gz |
* Increase random window *4
* Relaunch the update bogons script again if it fails
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 |