Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jul 2019 16:45:20 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        freebsd-net@freebsd.org, Viktor Dukhovni <ietf-dane@dukhovni.org>
Subject:   Re: Preferring internal IPv6 source address over gif tunnel IP?
Message-ID:  <9763ff43-cace-6acf-ef27-0964e2594ad7@yandex.ru>
In-Reply-To: <20190731125028.GE24255@straasha.imrryr.org>
References:  <20190731120726.GD24255@straasha.imrryr.org> <20190731125028.GE24255@straasha.imrryr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--D6EJ6aqfIPdXZo2Ffz0amhbIrRTlnpbpL
Content-Type: multipart/mixed; boundary="wAbGSMWZRMcvNcYpzFexzeX3ZRYr2JI59";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: freebsd-net@freebsd.org, Viktor Dukhovni <ietf-dane@dukhovni.org>
Message-ID: <9763ff43-cace-6acf-ef27-0964e2594ad7@yandex.ru>
Subject: Re: Preferring internal IPv6 source address over gif tunnel IP?
References: <20190731120726.GD24255@straasha.imrryr.org>
 <20190731125028.GE24255@straasha.imrryr.org>
In-Reply-To: <20190731125028.GE24255@straasha.imrryr.org>

--wAbGSMWZRMcvNcYpzFexzeX3ZRYr2JI59
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 31.07.2019 15:50, Viktor Dukhovni wrote:
> After further manpage reading, it seems to work with:
>=20
>     ifconfig_gif0_ipv6=3D"inet6 <tunnel-prefix>::2 <tunnel-prefix>::1 p=
refixlen 128 no_prefer_iface"
>     ifconfig_igb1_ipv6=3D"inet6 <my-network>::1 prefixlen 64 prefer_sou=
rce"
>     ip6addrctl_policy=3D"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".

--=20
WBR, Andrey V. Elsukov


--wAbGSMWZRMcvNcYpzFexzeX3ZRYr2JI59--

--D6EJ6aqfIPdXZo2Ffz0amhbIrRTlnpbpL
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAl1Bm3QACgkQAcXqBBDI
oXoSQggAoXuGOd64Xx7mdAmMxVQtUGMt8C/6uFIfshNu8fIpwRCQ/yQNBaOSX3wv
+Jy6P1SgGE0Eg8ZantrsJDKtMIoehBbbZC9BO5Lxf2PqC79ig0Y0lY75Ml/FiQux
CcWlcwPpxoKjlmBlfb4UsoXbBwG14Bj2wASv9W2jn7JP+N8JxAI9pw9NnaEWlDXV
8DCNjCyHW9urDoSYcRn2q8b+EzihjIxbUKy1L+pxosSy2E6KdFHIwIfUOsqT0XWw
pk8FT74eK0bvo7iSTzNWUPbg+/uTp4DnQmpekFPd/FoB9PIzzNGl5sZqhc1mZ8S5
BU3mc5aNVQGsSGQnPl0yO4h/HW3l7g==
=yiFe
-----END PGP SIGNATURE-----

--D6EJ6aqfIPdXZo2Ffz0amhbIrRTlnpbpL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9763ff43-cace-6acf-ef27-0964e2594ad7>