From owner-freebsd-net@FreeBSD.ORG Tue Aug 26 10:48:21 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CA39D25 for ; Tue, 26 Aug 2014 10:48:21 +0000 (UTC) Received: from bravo.jonathanprice.org (bravo.jonathanprice.org [5.135.154.174]) by mx1.freebsd.org (Postfix) with ESMTP id 0213A3734 for ; Tue, 26 Aug 2014 10:48:20 +0000 (UTC) Received: by bravo.jonathanprice.org (Postfix, from userid 58) id F0C5E1B4C; Tue, 26 Aug 2014 10:40:29 +0000 (UTC) Received: from mail.jonathanprice.org (bravo.jonathanprice.org [5.135.154.174]) by bravo.jonathanprice.org (Postfix) with ESMTPSA id A47B61B4A for ; Tue, 26 Aug 2014 10:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jonathanprice.org; s=default; t=1409049627; bh=sOiNACPHUGJXoTO9ug2FqEkTUOVPlRIS587y4Yc1Eis=; h=Date:From:Subject:To; b=jOZTT30rDCxs6cmOGyOeBGybdcgT3Sq24s/6Gvl0Jgsc+OLsYO8eSdLMG4NBnPTS4 8yRA8UzRKJXFiobsG47aQg2Et6tMwBrMYdlwl6Ttwu/n6F3KiOoWXaKwlyRtAjZ/Od gN33IvDs77o4XaCP/0Q7gyhuMQZI+flEigX3u6G0= Mime-Version: 1.0 Date: Tue, 26 Aug 2014 10:40:27 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: Quoted-Printable Message-ID: <88a42e1006e3fac7508a9419e342f1b2@mail.jonathanprice.org> X-Mailer: RainLoop/1.6.8.153 From: freebsd@jonathanprice.org Subject: Should I be using ipv6_activate_all_interfaces or ip6addrctl_policy="ipv6_prefer" To: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-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: Tue, 26 Aug 2014 10:48:21 -0000 Hello,=0A=0AI am configuring a server with IPv4 and IPv6 addresses and ha= ve noticed that FreeBSD seems to be preferring IPv4, such as when establi= shing SSH connections.=0A=0AAfter reading through /etc/defaults/rc.conf, = and later /etc/rc.d/ip6addrctl I have come to the conclusion that I have = two ways to tell FreeBSD to prefer IPv6:=0A=0A1) Add ipv6_activate_all_in= terfaces to /etc/rc.conf=0A2) Add ip6addrctl_policy=3D"ipv6_prefer" to /e= tc/rc.conf=0A=0ACould anybody with a little more knowledge on the matter = explain to me which of the two options is more preferential?=0A=0AIf it h= elps, I only have a single NIC in the server, and it does not function as= a gateway.=0A=0AThanks,=0AJonathan.=0A=0A(I do apologise if this email e= nds up being sent as HTML. I haven't tried sending plaintext from this pa= rticular webmail client before).