root/etc/rc.update_bogons.sh @ 83305ae3
1 |
#!/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 |
/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 |
/etc/rc.conf_mount_ro |
11 |
/sbin/pfctl -t bogons -T replace -f /etc/bogons |