From owner-freebsd-current@freebsd.org Tue Feb 12 22:43:17 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5637814D5779 for ; Tue, 12 Feb 2019 22:43:17 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660076.outbound.protection.outlook.com [40.107.66.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65EF9870DB; Tue, 12 Feb 2019 22:43:15 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM (52.132.89.15) by QB1PR01MB3651.CANPRD01.PROD.OUTLOOK.COM (52.132.84.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Tue, 12 Feb 2019 22:43:13 +0000 Received: from QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM ([fe80::609b:1ecd:c908:d44c]) by QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM ([fe80::609b:1ecd:c908:d44c%5]) with mapi id 15.20.1601.023; Tue, 12 Feb 2019 22:43:13 +0000 From: Rick Macklem To: "Bjoern A. Zeeb" CC: "freebsd-current@FreeBSD.org" Subject: Re: what do jails map 127.0.0.1 to? Thread-Topic: what do jails map 127.0.0.1 to? Thread-Index: AQHUwaNdo/1iQbCyIE+3DFhBOoIfkqXcgckAgABBwAU= Date: Tue, 12 Feb 2019 22:43:13 +0000 Message-ID: References: , <2F884512-F6A4-4E37-8566-46985A9FC5E3@FreeBSD.org> In-Reply-To: <2F884512-F6A4-4E37-8566-46985A9FC5E3@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; QB1PR01MB3651; 6:VWJX7Q2U/vlf2n0LQ7coprbrJdeDpoInhgUo/3fIfnT7HjUtBxlPyXDlPGTJy9NQVN27STFdnl7Cl4biH1Hi/y8J3Swv0O2WmL+pIwOKcP1v9CfFOrCfN3M7BWkOX0EFLsSO/nVlrAyDUwdYgpajFDK8AOZTWv/EdBKODEKBmfYpXbYk2BIdlE98AZVOZ9w4IPxVfbARTobeDBYGUPnq17LsqUgWqzmlqUVD45c0fcN4ZWfzbpEEWPkPLUZU2jkZMS5Y8Bvj98Z89Oqw0mbqjPpSC1/ppVIfrzNSeMV5KJen9+D5MUWUpsVf9b2gZpU2USF4/U9DR/GMHOpx4geOw/CPmqvnkUsNUEyGrD3nTLjSY3EiRu3eI+fLSiZsQvzsO4mqngze+r3tH23hnz7TDZ6v8vsZ1pzSbf77YSpT3ptFqLkePlqc7ooNk/NQlPyB2szeXJY29838le4aW30rDA==; 5:jjDLN3Sh8TzdCgCIiEOQgIK/IzYjV3+5PmU/33nHE0Q7uIbu7rVFKCJEA6e6MHl6GE5v0bvuSqh35Do2xizzbLgqH6tVp1iJcV3KCvtPUgtiHHuwtUlMHEcRlb/SejwIQ3dTcX+5RElMAS0sLDMHqwJzzekiEnKzJIhNiukzKvtG7CfbgJzBhfLOtwwL2FA2b5/CNwZfI8EiZKaPDFrdtQ==; 7:RT+rA7tUqoo2U9tXIdG2Y3RTsz4nUNvRJUkaINhiy7fwcHsuKU4Wr/ohN0+gquvf93hVaR+yme9hTYFPmlzYxww/VAA2scj7MGzVKeMvPavndIbBtW+/i19UqNXGSAttGVQNxASkWf0degygSIJg9Q== x-ms-office365-filtering-correlation-id: 759bb187-2985-4be1-9471-08d6913b78d7 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:QB1PR01MB3651; x-ms-traffictypediagnostic: QB1PR01MB3651: x-microsoft-antispam-prvs: x-forefront-prvs: 0946DC87A1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(396003)(366004)(39860400002)(189003)(199004)(186003)(11346002)(476003)(446003)(86362001)(8676002)(26005)(53936002)(7696005)(25786009)(74482002)(8936002)(6506007)(102836004)(68736007)(256004)(81166006)(81156014)(6916009)(486006)(71190400001)(71200400001)(55016002)(9686003)(6246003)(316002)(450100002)(229853002)(2906002)(97736004)(33656002)(6436002)(105586002)(76176011)(106356001)(99286004)(305945005)(786003)(478600001)(14454004)(4326008)(74316002); DIR:OUT; SFP:1101; SCL:1; SRVR:QB1PR01MB3651; H:QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: DWzhi18OK+H7TlcwN1tmcZfO0WK3a6Knz/TaPin5Jwp5qvXE4PXKEeR/TX2dpMHlZex1vajdCB2KGdFo7Eswg5zsSyNPN7WUEg8QAdTtq6DVuM/dd7hjpg0/GVRj6gUm26/r8khZ3cjU/X/xB3+7UQO0Tb7CWs1LieyBlV3A6v5TCHhmPnZKqHjDWFYToZ5HiE6E478LJM4XImfzg2qea9CjAAYt31kx0MdHDzf6bKCZ25AnomlaMe20zK/L4kt16sWkPuCIr+VXvkU4Bq6CvHFtpOs7jPYluM5NHzXdfqY62DRZlrUCD5j7YCloHRlEgCpc/RITuIIt3qHu7ngHKRJeY1RKDs1VbFSVWylaCDTi1pZRF+UtPmG/kbh2vBlrdDzKmFglxAD0UNTE1yExAwscDDkVDvJTQifZPYEtMt0= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 759bb187-2985-4be1-9471-08d6913b78d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2019 22:43:13.5155 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: QB1PR01MB3651 X-Rspamd-Queue-Id: 65EF9870DB X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.76 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-0.26 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.65)[-0.648,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[uoguelph.ca]; NEURAL_SPAM_SHORT(0.63)[0.630,0]; NEURAL_HAM_LONG(-0.94)[-0.936,0]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com,mx2.hc184-76.ca.iphmx.com,mx1.hc184-76.ca.iphmx.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[76.66.107.40.list.dnswl.org : 127.0.3.0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 22:43:17 -0000 Bjoern A. Zeeb wrote: >On 11 Feb 2019, at 0:50, Rick Macklem wrote: >> I am finally back to looking at an old PR#205193. >> >> The problem is that the nfsuserd daemon expects upcalls from the >> kernel >> that are from localhost (127.0.0.1) and when jails are running on the >> system, >> 127.0.0.1 is mapped to some other IP#. (I think it might be the >> address of the >> first net interface on the machine, but I'm not sure?) > >And what does it do on system that have no 127.1 or no IPv4 at all >anymore or don=92t even support IPv4 anymore? It doesn't work. It uses UDP over IPv4 for the upcalls. >> Is there a way that nfsuserd.c can find out what this IP# is? > >Yes, could do easily but wouldn=92t work for my above case, would it? I >can help you with the code for v4 and jails if you help me with the code >for IPv6? I suspect the main trick is how it can figure out that it needs to use IPv6= instead of IPv4? (If there is no easy way, I suppose it could be a command option.) rick ps: The kernel RPC knows what it calls "udp6". I never really understood ho= w to tell when an IPv6 address is from the local machine? (I'll admit I ne= ver use IPv6, so I don't even know if NFS works on it. I just assume someone = would complain if it didn't work.)