From owner-freebsd-net@FreeBSD.ORG Mon Oct 14 21:08:30 2013 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 504DB9A8 for ; Mon, 14 Oct 2013 21:08:30 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C344A2862 for ; Mon, 14 Oct 2013 21:08:29 +0000 (UTC) Received: from alph.d.allbsd.org (p4181-ipbf1307funabasi.chiba.ocn.ne.jp [123.225.173.181]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id r9EL8CP5031768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Oct 2013 06:08:22 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.d.allbsd.org (8.14.7/8.14.5) with ESMTP id r9EL8Cuu021045; Tue, 15 Oct 2013 06:08:12 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 15 Oct 2013 06:07:54 +0900 (JST) Message-Id: <20131015.060754.1615183637061250094.hrs@allbsd.org> To: prox@prolixium.com Subject: Re: IPv6 Source Address Selection in 9.x From: Hiroki Sato In-Reply-To: <20131014205824.GI25061@prolixium.com> References: <20131014203929.GG25061@prolixium.com> <20131015.054515.997515800600548642.hrs@allbsd.org> <20131014205824.GI25061@prolixium.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Oct_15_06_07_54_2013_493)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Tue, 15 Oct 2013 06:08:23 +0900 (JST) X-Spam-Status: No, score=-99.0 required=13.0 tests=CONTENT_TYPE_PRESENT, SPF_SOFTFAIL,USER_IN_WHITELIST,X_CHINESE_RELAY autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 21:08:30 -0000 ----Security_Multipart(Tue_Oct_15_06_07_54_2013_493)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mark Kamichoff wrote in <20131014205824.GI25061@prolixium.com>: pr> On Tue, Oct 15, 2013 at 05:45:15AM +0900, Hiroki Sato wrote: pr> > Try ip6addrctl_policy="ipv6_prefer" in rc.conf. pr> pr> Excellent. Thank you. I glanced right over that in pr> /etc/default/rc.conf. I just added the above line to /etc/rc.conf and pr> ran /etc/rc.d/ip6addrctl start prefer_ipv6. Now, it works as expected: pr> pr> (dax:16:47)% telnet he.net. 80 pr> Trying 2001:470:0:76::2... pr> Connected to he.net. pr> Escape character is '^]'. pr> ^]^D pr> telnet> Connection closed. pr> pr> It's my understanding that by leaving ip6addrctl_policy as AUTO will pr> only prefer IPv6 if ipv6_enable_all_interfaces is set to YES, which it pr> is in my /etc/rc.conf. However, it appears that this never resulted in pr> ip6addrctl_prefer_ipv6 being called from /etc/rc.d/ip6addrctl. Maybe pr> I'm reading this wrong ... It is ipv6_activate_all_interfaces, not ipv6_enable_all_interfaces. If YES, AUTO (the default value) will set it as ipv6_prefer automatically. -- Hiroki ----Security_Multipart(Tue_Oct_15_06_07_54_2013_493)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iEYEABECAAYFAlJcXSoACgkQTyzT2CeTzy1MAwCgnzjWXmSoHdmrvAXk+FZVeyUo 8/kAoLOJvpROPd17oRp0nUgz3AiVyjdu =g9n9 -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Oct_15_06_07_54_2013_493)----