From 378d3c8891283326fff27989ab375321ab523a04 Mon Sep 17 00:00:00 2001 From: N0YB Date: Tue, 18 Dec 2012 04:04:40 -0800 Subject: pfctrl is comment aware (#). Leave comments in place so last update info can be retrieved by diagnostics tables. Instead ensure private space is not included. --- etc/rc.update_bogons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index f34964b..ee369ad 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -55,7 +55,7 @@ else fi if [ "$BOGON_V6_MD5" = "$ON_DISK_V6_MD5" ]; then - egrep -v "^#" /tmp/bogonsv6 > /etc/bogonsv6 + egrep -v "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6 RESULT=`/sbin/pfctl -t bogonsv6 -T replace -f /etc/bogonsv6 2>&1` rm /tmp/bogonsv6 echo "Bogons V6 file downloaded: $RESULT" | logger -- cgit v1.1