From owner-freebsd-net@freebsd.org Wed Jul 31 13:48:19 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 ACE6EBEFAB for ; Wed, 31 Jul 2019 13:48:19 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::606]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45zFB866kqz3M7P for ; Wed, 31 Jul 2019 13:48:16 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 440A25F82525; Wed, 31 Jul 2019 16:48:12 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id NZAZr3BshH-mBPu3Wvc; Wed, 31 Jul 2019 16:48:12 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1564580892; bh=Il644n1WR2ZIQihj7UHlydX927iseB3Xlp24Ifaxj4k=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=nHGhwsWIiklekNp0uieVWaazNYWCbGIavlIz5OeuKvkxom2z3Y5UllqRe7GYxW6hv X5VspZsdsUZJ/32y6VQLAaJVARCSl7HWs1BN1Yr7Ug25FGVdqIY41V/WtgGUMVwuIH RGeHydw0p1Wc88+0nYe4hTct59+Alum1cZV0xBLk= Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Z8unrFXFdt-mBsm5vmL; Wed, 31 Jul 2019 16:48:11 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: Re: Preferring internal IPv6 source address over gif tunnel IP? To: freebsd-net@freebsd.org, Viktor Dukhovni References: <20190731120726.GD24255@straasha.imrryr.org> <20190731125028.GE24255@straasha.imrryr.org> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= mQENBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAG0JUFuZHJleSBWLiBFbHN1a292IDxidTdjaGVyQHlhbmRleC5ydT6JATgEEwECACIFAkwB F1kCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEAHF6gQQyKF6qmYIAI6ekfm1VA4T vqankI1ISE6ku4jV7UlpIQlEbE7/8n3Zd6teJ+pGOQhN5qk8QE7utdPdbktAzi+x7LIJVzUw 4TywZLXGrkP7VKYkfg6oyCGyzITghefQeJtr2TN4hYCkzPWpylkue8MtmqfZv/6royqwTbN+ +E09FQNvTgRUYJYTeQ1qOsxNRycwvw3dr2rOfuxShbzaHBB1pBIjGrMg8fC5pd65ACH5zuFV A0CoTNGMDrEZSfBkTW604UUHFFXeCoC3dwDZRKOWJ3GmMXns65Ai5YkA63BSHEE1Qle3VBhd cG1w0CB5FBV3pB27UVnf0jEbysrDqW4qN7XMRFSWNAy5AQ0ETAEXWQEIAJ2p6l9LBoqdH/0J PEFDY2t2gTvAuzz+8zs3R03dFuHcNbOwjvWCG0aOmVpAzkRa8egn5JB4sZaFUtKPYJEQ1Iu+ LUBwgvtXf4vWpzC67zs2dDuiW4LamH5p6xkTD61aHR7mCB3bg2TUjrDWn2Jt44cvoYxj3dz4 S49U1rc9ZPgD5axCNv45j72tggWlZvpefThP7xT1OlNTUqye2gAwQravXpZkl5JG4eOqJVIU X316iE3qso0iXRUtO7OseBf0PiVmk+wCahdreHOeOxK5jMhYkPKVn7z1sZiB7W2H2TojbmcK HZC22sz7Z/H36Lhg1+/RCnGzdEcjGc8oFHXHCxUAEQEAAYkBHwQYAQIACQUCTAEXWQIbDAAK CRABxeoEEMihegkYCAC3ivGYNe2taNm/4Nx5GPdzuaAJGKWksV+w9mo7dQvU+NmI2az5w8vw 98OmX7G0OV9snxMW+6cyNqBrVFTu33VVNzz9pnqNCHxGvj5dL5ltP160JV2zw2bUwJBYsgYQ WfyJJIM7l3gv5ZS3DGqaGIm9gOK1ANxfrR5PgPzvI9VxDhlr2juEVMZYAqPLEJe+SSxbwLoz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <9763ff43-cace-6acf-ef27-0964e2594ad7@yandex.ru> Date: Wed, 31 Jul 2019 16:45:20 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190731125028.GE24255@straasha.imrryr.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D6EJ6aqfIPdXZo2Ffz0amhbIrRTlnpbpL" X-Rspamd-Queue-Id: 45zFB866kqz3M7P X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.ru header.s=mail header.b=nHGhwsWI; dmarc=pass (policy=none) header.from=yandex.ru; spf=pass (mx1.freebsd.org: domain of bu7cher@yandex.ru designates 2a02:6b8:0:1a2d::606 as permitted sender) smtp.mailfrom=bu7cher@yandex.ru X-Spamd-Result: default: False [-4.19 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yandex.ru]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1000::/52]; HAS_ATTACHMENT(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[yandex.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yandex.ru,none]; MX_GOOD(-0.01)[mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; RCVD_IN_DNSWL_LOW(-0.10)[6.0.6.0.0.0.0.0.0.0.0.0.0.0.0.0.d.2.a.1.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yandex.ru]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yandex.ru:s=mail]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; RCVD_TLS_LAST(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_LOW(-1.00)[yandex.ru.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-9.60), ipnet: 2a02:6b8::/32(-4.64), asn: 13238(-3.74), country: RU(0.01)] 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:48:19 -0000 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" To: freebsd-net@freebsd.org, Viktor Dukhovni 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 ::2 ::1 p= refixlen 128 no_prefer_iface" > ifconfig_igb1_ipv6=3D"inet6 ::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--