summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2013-04-14 14:55:30 -0700
committerChris Buechler <cmb@pfsense.org>2013-04-14 14:55:30 -0700
commit4ba494580313167b37ca55e0c6eba613766c6d4b (patch)
tree7071c47ca35d40293b634084a94b8a033a5b0388
parentb4505103f41fb8386b92d63086cc6912ed66dd75 (diff)
parent9b0adf13b750309a0457925c3ddb234bcaef71f3 (diff)
downloadpfsense-4ba494580313167b37ca55e0c6eba613766c6d4b.zip
pfsense-4ba494580313167b37ca55e0c6eba613766c6d4b.tar.gz
Merge pull request #562 from N0YB/Bogonsv6_Private_Case
Make fc00::/7 private address space exclusion case insensitive
-rwxr-xr-xetc/rc.update_bogons.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 64b9075..ae85b0b 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -119,7 +119,7 @@ if [ "$BOGON_V4_CKSUM" = "$ON_DISK_V4_CKSUM" ] || [ "$BOGON_V6_CKSUM" = "$ON_DIS
if [ $BOGONS_V6_TABLE_COUNT -gt 0 ]; then
ENTRIES_V6=`pfctl -vvsTables | awk '/-\tbogonsv6$/ {getline; print $2}'`
if [ $ENTRIES_MAX -gt $((2*ENTRIES_TOT-${ENTRIES_V6:-0}+LINES_V6)) ]; then
- egrep -v "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6
+ egrep -iv "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6
RESULT=`/sbin/pfctl -t bogonsv6 -T replace -f /etc/bogonsv6 2>&1`
echo "$RESULT" | awk '{ print "Bogons V6 file downloaded: " $0 }' | logger
else
@@ -127,7 +127,7 @@ if [ "$BOGON_V4_CKSUM" = "$ON_DISK_V4_CKSUM" ] || [ "$BOGON_V6_CKSUM" = "$ON_DIS
fi
else
if [ $ENTRIES_MAX -gt $((2*ENTRIES_TOT+LINES_V6)) ]; then
- egrep -v "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6
+ egrep -iv "^fc00::/7" /tmp/bogonsv6 > /etc/bogonsv6
echo "Bogons V6 file downloaded but not updating IPv6 bogons table because IPv6 Allow is off" | logger
else
echo "Not saving IPv6 bogons table (IPv6 Allow is off and table-entries limit is potentially too low)" | logger
OpenPOWER on IntegriCloud