From: Michael Tremer Date: Mon, 24 Jun 2013 09:46:23 +0000 (+0200) Subject: Consider 100.64.0.0/10 as private address space. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=057dbeebb2bb6eeea485c210f20051c4a6bc52b1 Consider 100.64.0.0/10 as private address space. http://tools.ietf.org/html/rfc6598 http://forum.ipfire.org/index.php?topic=7504.0 --- diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index b1b47abcb..90eacbdb0 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -920,9 +920,11 @@ sub GetDyndnsRedIP { close(IP); chomp $ip; + # 100.64.0.0/10 is reserved for dual-stack lite (http://tools.ietf.org/html/rfc6598). if (&General::IpInSubnet ($ip,'10.0.0.0','255.0.0.0') || &General::IpInSubnet ($ip,'172.16.0.0.','255.240.0.0') || - &General::IpInSubnet ($ip,'192.168.0.0','255.255.0.0')) + &General::IpInSubnet ($ip,'192.168.0.0','255.255.0.0') || + &General::IpInSubnet ($ip,'100.64.0.0', '255.192.0.0')) { if ($settings{'BEHINDROUTER'} eq 'FETCH_IP') { my $RealIP = &General::FetchPublicIp;