Preferring internal IPv6 source address over gif tunnel IP?
Patrick M. Hausen
hausen at punkt.de
Wed Jul 31 12:46:31 UTC 2019
Hi!
> Am 31.07.2019 um 14:07 schrieb Viktor Dukhovni <viktor at 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.
>
> 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
--
punkt.de GmbH Internet - Dienstleistungen - Beratung
Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100
76133 Karlsruhe info at punkt.de http://punkt.de
AG Mannheim 108285 Gf: Juergen Egeling
More information about the freebsd-net
mailing list