From owner-freebsd-stable@FreeBSD.ORG Tue Jan 8 21:02:48 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E0A407D9; Tue, 8 Jan 2013 21:02:48 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mho-02-ewr.mailhop.org (mho-04-ewr.mailhop.org [204.13.248.74]) by mx1.freebsd.org (Postfix) with ESMTP id AB852ADC; Tue, 8 Jan 2013 21:02:48 +0000 (UTC) Received: from pool-151-203-201-84.bos.east.verizon.net ([151.203.201.84] helo=homobox.opal.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TsgJr-00085w-CB; Tue, 08 Jan 2013 21:02:47 +0000 Received: from shibato (shibato.opal.com [IPv6:2001:470:8cb8:4:221:63ff:fe5a:c9a7]) (authenticated bits=0) by homobox.opal.com (8.14.4/8.14.4) with ESMTP id r08L2igR082841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 8 Jan 2013 16:02:44 -0500 (EST) (envelope-from fbsd@opal.com) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 151.203.201.84 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/jrfy3DhEayLM/wLCD0G6o Date: Tue, 8 Jan 2013 16:02:43 -0500 From: "J.R. Oldroyd" To: Ulrich =?UTF-8?B?U3DDtnJsZWlu?= Subject: /etc/rc.d/ip6addrctl Message-ID: <20130108160243.74a93ab8@shibato> In-Reply-To: <20130108184609.GJ35868@acme.spoerlein.net> References: <20130108151837.GF35868@acme.spoerlein.net> <20130108180920.GJ36633@rugsucker.smi.sendmail.com> <20130108184609.GJ35868@acme.spoerlein.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (homobox.opal.com [IPv6:2001:470:8cb8:4::1]); Tue, 08 Jan 2013 16:02:44 -0500 (EST) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on homobox.opal.com Cc: Gregory Shapiro , stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 21:02:48 -0000 On Tue, 8 Jan 2013 19:46:09 +0100 Ulrich Sp=C3=B6rlein wrote: > Turns out it was the missing setting of > ip6addrctl_policy=3D"ipv6_prefer" in rc.conf that also bit me in > strange and mysterious ways on another machine where I did the > upgrade. It's very unfortunate that this will runtime-break sendmail > and I honestly don't know why we make ipv4 the default in this day > and age. >=20 > Can some IPv6 guru chime in here? This is all thoroughly confusing. >=20 > Thanks! > Uli >=20 This bit me too, although with something other than sendmail. It's /etc/rc.d/ip6addrctl that sets the preference for IPv6 or IPv4. I think the logic is a bit confusing here, or at least isn't consistent with what the documentation for these settings (in rc.conf(5)) suggests. In the startup script, IPv6 is preferred if: either: ip6addrctl_policy is set to "ipv6_prefer" or: ip6addrctl_policy is set to "auto", you've not specified your own policy config file and ipv6_activate_all_interfaces is set to true In the documentation, it implies that using ipv6_activate_all_interfaces is probably not needed for most users: Note that it is not always necessary to set this variable to =E2=80=9CYES=E2=80=9D to use IPv6 functionality on FreeBSD. In most cases, just configuring ifconfig_=E2=9F=A8interface=E2=9F=A9_ipv6 variables works. Seems to me that the ip6addrctl script should also prefer IPv6 if any interface has IPv6 enabled using one of the ifconfig_(interface)_ipv6 variables. -jr