From owner-freebsd-current@FreeBSD.ORG Sun Oct 16 19:30:20 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4A4D1065674 for ; Sun, 16 Oct 2011 19:30:20 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7B88FC13 for ; Sun, 16 Oct 2011 19:30:19 +0000 (UTC) Received: from alph.allbsd.org ([IPv6:2001:2f0:104:e010:862b:2bff:febc:8956]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id p9GJU5Bt078827; Mon, 17 Oct 2011 04:30:15 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id p9GJU4rN051820; Mon, 17 Oct 2011 04:30:05 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Mon, 17 Oct 2011 04:29:31 +0900 (JST) Message-Id: <20111017.042931.2183544415814290707.hrs@allbsd.org> To: thomas@gibfest.dk From: Hiroki Sato In-Reply-To: <4E9AA874.5070403@gibfest.dk> References: <20111014.170911.2032702506326503484.hrs@allbsd.org> <4E97F236.8040203@gibfest.dk> <4E9AA874.5070403@gibfest.dk> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.3.51 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Mon_Oct_17_04_29_31_2011_969)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [IPv6:2001:2f0:104:e001::32]); Mon, 17 Oct 2011 04:30:16 +0900 (JST) X-Spam-Status: No, score=-104.6 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT, RDNS_NONE, SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-current@FreeBSD.org Subject: Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces="YES" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 19:30:20 -0000 ----Security_Multipart(Mon_Oct_17_04_29_31_2011_969)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thomas Steen Rasmussen wrote in <4E9AA874.5070403@gibfest.dk>: th> On 14.10.2011 10:26, Thomas Steen Rasmussen wrote: th> > On 14-10-2011 10:09, Hiroki Sato wrote: th> >> Thanks. There is no problem with the source address selection. th> th> I don't understand this comment. I would say that I do th> have problems with the source address selection - th> otherwise it would be preferring ipv6, right ? I mean the address selection is working properly. Your problem is because the default ipv6_prefer policy prefers IPv4 addresses when the source IPv6 addr is in 2002::/16, the destination IPv6 address is not in the same prefix, and IPv4 addresses can be used for the both. It is not a bug of the selection mechanism. The ipv6_prefer policy is defined in RFC 3484 2.1 and this policy chooses a src IPv6 addr in 2002::/16 only if the dest addr is also in the same prefix. You can remove the special rule for 2002::/16 by putting the following lines as /etc/ip6addrctl.conf and reboot the system: ::1/128 50 0 ::/0 40 1 #2002::/16 30 2 ::/96 20 3 ::ffff:0:0/96 10 4 By installing the above, IPv6 address will be preferred even if it is in 2002::/16. I am still not sure why there is a difference between 8.X and 9.X on your box because the code is almost the same. I guess no policy was installed when you used an 8-stable system. -- Hiroki ----Security_Multipart(Mon_Oct_17_04_29_31_2011_969)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk6bMJwACgkQTyzT2CeTzy1/RQCdGaRkMbsKQqbyxZqWFTDkca+z JOAAn2wmMVFcUnJDjZG17p6Bw22Q21UQ =U/De -----END PGP SIGNATURE----- ----Security_Multipart(Mon_Oct_17_04_29_31_2011_969)----