Preferring internal IPv6 source address over gif tunnel IP?
Andrey V. Elsukov
bu7cher at yandex.ru
Wed Jul 31 13:48:19 UTC 2019
On 31.07.2019 15:50, Viktor Dukhovni wrote:
> After further manpage reading, it seems to work with:
>
> ifconfig_gif0_ipv6="inet6 <tunnel-prefix>::2 <tunnel-prefix>::1 prefixlen 128 no_prefer_iface"
> ifconfig_igb1_ipv6="inet6 <my-network>::1 prefixlen 64 prefer_source"
> ip6addrctl_policy="AUTO"
Yes, in general this should help.
"no_prefer_iface" will lead to ignoring of "Rule 5: Prefer outgoing
interface", and then address with "prefer_source" flag will be chosen in
"Rule 10: prefer address with `prefer_source' flag" before "Rule 14: Use
longest matching prefix".
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20190731/f743155d/attachment.sig>
More information about the freebsd-net
mailing list