From owner-freebsd-net@freebsd.org Wed Jul 31 13:03:20 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D266BE213 for ; Wed, 31 Jul 2019 13:03:20 +0000 (UTC) (envelope-from ietf-dane@dukhovni.org) Received: from straasha.imrryr.org (straasha.imrryr.org [100.2.39.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45zDBH5Bmdz3KF8 for ; Wed, 31 Jul 2019 13:03:19 +0000 (UTC) (envelope-from ietf-dane@dukhovni.org) Received: by straasha.imrryr.org (Postfix, from userid 1001) id 9093247160; Wed, 31 Jul 2019 08:57:04 -0400 (EDT) Date: Wed, 31 Jul 2019 08:57:04 -0400 From: Viktor Dukhovni To: freebsd-net@freebsd.org Subject: Re: Preferring internal IPv6 source address over gif tunnel IP? Message-ID: <20190731125704.GF24255@straasha.imrryr.org> Reply-To: freebsd-net@freebsd.org References: <20190731120705.GC24255@straasha.imrryr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 45zDBH5Bmdz3KF8 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ietf-dane@dukhovni.org designates 100.2.39.101 as permitted sender) smtp.mailfrom=ietf-dane@dukhovni.org X-Spamd-Result: default: False [3.16 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd-net@freebsd.org]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:100.2.39.101:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dukhovni.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.36)[ip: (-5.07), ipnet: 100.2.0.0/16(-2.54), asn: 701(0.88), country: US(-0.05)]; RCVD_IN_DNSWL_MED(-0.20)[101.39.2.100.list.dnswl.org : 127.0.6.2]; MX_GOOD(-0.01)[cached: smtp.dukhovni.org]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:701, ipnet:100.2.0.0/16, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; GREYLIST(0.00)[pass,body]; REPLYTO_EQ_TO_ADDR(5.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2019 13:03:20 -0000 On Wed, Jul 31, 2019 at 02:46:14PM +0200, Patrick M. Hausen wrote: > > Is it possible to configure my system to use the internal /64 address > > as the default source address of outgoing IPv6 packets? > > That is probably pretty easy depending on your preferred mail server. > Make your mail server listen to ::1 only instead of :: Many thanks, but I was looking for the network stack to do this automatically (and seem to have found a way, if perhaps over-specified). I don't just use Postfix (for which I do know how to specify the outbound IPv6 address. :-). I also have various tools related to the DANE/DNSSEC survey which have not to date needed knobs to specify the outbound IPv6 address... > It will then automatically accept connections on that address and use > it for outbound, too, because it does not have a choice. Actually, with Postfix, the listening address is indepdent of the IP address for outgoing active (me as SMTP client) connections. Both are of course configurable, the listener in master.cf, or else via "inet_interfaces", and the SMTP client via smtp_bind_address{,6}, (defaults to inet_interfaces if non-loopback singleton). -- Viktor.