Date: Mon, 31 Mar 2003 04:00:51 +0900 From: Hajimu UMEMOTO <ume@mahoroba.org> To: "Jeff W. Boote" <boote@internet2.edu> Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.0 dual-stack server Message-ID: <yge4r5kvfvg.wl%ume@mahoroba.org> In-Reply-To: <3E838784.F2F4E330@internet2.edu> References: <20030326134823.A7029@jamaica.grc.nasa.gov> <20030327104649.B18679@jamaica.grc.nasa.gov> <3E838784.F2F4E330@internet2.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, >>>>> On Thu, 27 Mar 2003 16:21:40 -0700 >>>>> "Jeff W. Boote" <boote@internet2.edu> said: boote> In any case - my server code works fine on 4.6 and 4.7 binding to both boote> address families. However, I have just received a report of it only boote> binding the v6 address on a FreeBSD 5.0 system. (As reported from boote> "netstat -a -p tcp" - and by the fact that clients that try and use the boote> v4 address are unable to get a connection.) boote> It is behaving as if the IPV6_BINDV6ONLY sockopt is set... Has the boote> "default" value for this changed? Yes. BTW, IPV6_BINDV6ONLY has been superseded by IPV6_V6ONLY. boote> Is it recommended that any server that wants to bind to the dual-stack boote> needs to make sure this sockopt is unset? I am not doing that... Yup, where you can do it, you should do so. However, I suggest opening two sockets, one is for IPv6 and the other is for IPv4, instead of using IPv4-mapped IPv6 address. boote> I just found the net.inet6.ip6.bindv6only sysctl variable doing a web boote> search... What is the default value for this sysctl on 5.0? net.inet6.ip6.bindv6only=1 by default on 5-CURRENT. boote> (I guess I may need to install 5.0 on a box, and stop bothering boote> others...) You don't need to install 5.0. You can simply get same effect by setting net.inet6.ip6.bindv6only=1. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge4r5kvfvg.wl%ume>