Date: Wed, 31 Jul 2019 14:46:14 +0200 From: "Patrick M. Hausen" <hausen@punkt.de> To: Viktor Dukhovni <viktor@dukhovni.org> Cc: freebsd-net@freebsd.org Subject: Re: Preferring internal IPv6 source address over gif tunnel IP? Message-ID: <FD0FD1F3-17F5-444B-8D97-EC497D474778@punkt.de> In-Reply-To: <20190731120705.GC24255@straasha.imrryr.org> References: <20190731120705.GC24255@straasha.imrryr.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! > Am 31.07.2019 um 14:07 schrieb Viktor Dukhovni <viktor@dukhovni.org>: > Since a bunch of my traffic is SMTP, I need reverse resolution for > outgoing IPv6, which means that I need the outgoing sources address > to be <my-network>::1, not <tunnel-prefix>::2, even though the > routing table lists "gif0" as the interface with the default route. >=20 > 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 <internal>::1 only instead of :: It will then automatically accept connections on that address and use it for outbound, too, because it does not have a choice. Add IP4c and loopback of course. E.g. for Sendmail: = https://www.computing.net/answers/linux/sendmail-bind-to-ip-address/31045.= html HTH, Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD0FD1F3-17F5-444B-8D97-EC497D474778>