summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-18 00:59:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-18 00:59:58 +0000
commitdc7371c438bc4c0fd2aa36b6b269939a6dccdb5d (patch)
tree143f2c93ddd1385ef3305cbac050ef4d36d733d7 /etc/rc.update_bogons.sh
parent922156101e88bbbd16933e11288fd1136b7c7bf3 (diff)
downloadpfsense-dc7371c438bc4c0fd2aa36b6b269939a6dccdb5d.zip
pfsense-dc7371c438bc4c0fd2aa36b6b269939a6dccdb5d.tar.gz
MFC 9473
Update bogons to latest from cymru Strip out RFC1918 since we have a seperate filter for that (and we tell people that we don't block them in this filter, doh)
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 36e625b..0db6b0c 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -5,6 +5,7 @@
# www.pfsense.com
/etc/rc.conf_mount_rw
-/usr/bin/fetch -q -o /etc/bogons "http://www.cymru.com/Documents/bogon-bn-nonagg.txt"
+/usr/bin/fetch -q -o /tmp/bogons "http://www.cymru.com/Documents/bogon-bn-nonagg.txt"
+egrep -v "192.168.0.0/16|172.16.0.0/12|10.0.0.0/8" /tmp/bogons > /etc/bogons
/etc/rc.conf_mount_ro
/sbin/pfctl -t bogons -T replace -f /etc/bogons
OpenPOWER on IntegriCloud