On Saturday 30 August 2014 00:41:56 Hiroki Sato wrote: > John Hay <j...@meraka.org.za> wrote > in <20140829101707.ga83...@zibbi.meraka.csir.co.za>: > > jh> On Wed, Aug 27, 2014 at 11:59:25AM +0000, Bjoern A. Zeeb wrote: > jh> > > jh> > On 27 Aug 2014, at 06:31 , Jonathan Price <free...@jonathanprice.org> > jh> > wrote: > jh> > > jh> > > On 2014-08-27 01:40, Peter Wemm wrote: > jh> > >> On Tuesday 26 August 2014 10:40:27 free...@jonathanprice.org wrote: > jh> > >>> Hello, > jh> > >>> > jh> > >>> I am configuring a server with IPv4 and IPv6 addresses and have > jh> > >>> noticed that > jh> > >>> FreeBSD seems to be preferring IPv4, such as when establishing SSH > jh> > >>> connections. > jh> > >>> > jh> > >>> After reading through /etc/defaults/rc.conf, and later > jh> > >>> /etc/rc.d/ip6addrctl > jh> > >>> I have come to the conclusion that I have two ways to tell FreeBSD > to jh> > >>> prefer IPv6: > jh> > >>> > jh> > >>> 1) Add ipv6_activate_all_interfaces to /etc/rc.conf > jh> > >>> 2) Add ip6addrctl_policy="ipv6_prefer" to /etc/rc.conf > jh> > >>> > jh> ... > jh> > > However, it does sound like for my purposes it would make more sense > jh> > > to use ip6addrctl_policy=?ipv6_prefer" as that is more explicitly > the jh> > > feature I want, rather than getting it inadvertently through > the other jh> > > knob. > jh> > > jh> > Yes. Definitively. I am not sure if it has happened but if IPv6 > jh> > config is configured through rc.conf that setting should be(come) > jh> > default. > jh> > > jh> > jh> It does not seem so yet (anymore, it was like that many moons ago). A > jh> new > > ... > > jh> I think if an IPv6 address is configured on a machine, it should > jh> prefer ipv6 > jh> addresses. That would match what the rest are doing. > > True at this moment. I have a patch to make it set ipv6_prefer when > at least one ifconfig_IF_ipv6 is configured. > > Is there any objection to commit this? I had hesitated to add this > for a technical reason which was eliminated by adding list_vars(). > > -- Hiroki
I understand the hesitation. There has long been a problem of people only half configuring ipv6, or enabling it without having connectivity. Or people listing AAAA records without being reachable. However, we have run the freebsd.org cluster with prefer_ipv6 for two years now (likewise, I've done the same at home) and no insurmountable issues have occurred. There are enough people pushing ipv6 and using it on a daily basis now that the old half-configured problems are fairly quickly noticed. I think we could turn it on by default now, as your patch does. And it will still be able to be disabled. -- Peter Wemm - pe...@wemm.org; pe...@freebsd.org; pe...@yahoo-inc.com; KI6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246
signature.asc
Description: This is a digitally signed message part.