diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-27 22:20:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-27 22:20:09 +0000 |
commit | bae6a6730fc99994a72979f49ac6499e43c39c0f (patch) | |
tree | 7d622d909bcb66dea3597ece70edd8dac4537966 /etc/rc.update_bogons.sh | |
parent | 3fb63eb461b3058edcba4d0df0eeb96fd8fcf836 (diff) | |
download | pfsense-bae6a6730fc99994a72979f49ac6499e43c39c0f.zip pfsense-bae6a6730fc99994a72979f49ac6499e43c39c0f.tar.gz |
Report how many changes where made in bogons file.
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-x | etc/rc.update_bogons.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index 7a733ef..8d949ab 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -18,6 +18,7 @@ if [ ! -f /tmp/bogons ]; then fi 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 +RESULT=`/sbin/pfctl -t bogons -T replace -f /etc/bogons 2>&1` rm /tmp/bogons +echo "Bogons file downloaded: $RESULT" | logger |