root/etc/rc.update_bogons.sh @ cd8f5ccd
1 | 14f9c43f | Scott Ullrich | #!/bin/sh
|
---|---|---|---|
2 | |||
3 | # Update bogons file
|
||
4 | # Part of the pfSense project
|
||
5 | # www.pfsense.com
|
||
6 | |||
7 | /etc/rc.conf_mount_rw |
||
8 | dc7371c4 | Scott Ullrich | /usr/bin/fetch -q -o /tmp/bogons "http://www.cymru.com/Documents/bogon-bn-nonagg.txt" |
9 | egrep -v "192.168.0.0/16|172.16.0.0/12|10.0.0.0/8" /tmp/bogons > /etc/bogons |
||
10 | 14f9c43f | Scott Ullrich | /etc/rc.conf_mount_ro |
11 | /sbin/pfctl -t bogons -T replace -f /etc/bogons |