From owner-freebsd-net@FreeBSD.ORG Sun Mar 30 11:01:02 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E31C837B405 for ; Sun, 30 Mar 2003 11:01:02 -0800 (PST) Received: from cheer.mahoroba.org (flets20-070.kamome.or.jp [218.45.20.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id C510643FAF for ; Sun, 30 Mar 2003 11:01:00 -0800 (PST) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (IDENT:00Ui8Y93Hn1njthOnkFQxA3WlEbC9sS8F/THspZdcp6d6aAaLFsC8TDcojQ7qu8M@lyrics.mahoroba.org [IPv6:3ffe:501:185b:8010:280:88ff:fe03:4841]) (user=ume mech=CRAM-MD5 bits=0)h2UJ0pq6056454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Mar 2003 04:00:51 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 31 Mar 2003 04:00:51 +0900 Message-ID: From: Hajimu UMEMOTO To: "Jeff W. Boote" In-Reply-To: <3E838784.F2F4E330@internet2.edu> References: <20030326134823.A7029@jamaica.grc.nasa.gov> <20030327104649.B18679@jamaica.grc.nasa.gov> <3E838784.F2F4E330@internet2.edu> User-Agent: xcite1.38> Wanderlust/2.11.0 (Wonderwall) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.4 Emacs/21.2 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 5.0-CURRENT MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) X-Spam-Status: No, hits=-9.9 required=5.0 tests=IN_REP_TO,REFERENCES,USER_AGENT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-net@freebsd.org Subject: Re: FreeBSD 5.0 dual-stack server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 19:01:04 -0000 Hi, >>>>> On Thu, 27 Mar 2003 16:21:40 -0700 >>>>> "Jeff W. Boote" 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/