Date: Tue, 12 Feb 2019 22:43:13 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: "Bjoern A. Zeeb" <bz@FreeBSD.org> Cc: "freebsd-current@FreeBSD.org" <freebsd-current@FreeBSD.org> Subject: Re: what do jails map 127.0.0.1 to? Message-ID: <QB1PR01MB3537A7B4437FF65260077485DD650@QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <2F884512-F6A4-4E37-8566-46985A9FC5E3@FreeBSD.org> References: <QB1PR01MB3537028815A3502AA6BC4B9BDD640@QB1PR01MB3537.CANPRD01.PROD.OUTLOOK.COM>, <2F884512-F6A4-4E37-8566-46985A9FC5E3@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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’t 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’t 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 how to
tell when an IPv6 address is from the local machine? (I'll admit I never use
IPv6, so I don't even know if NFS works on it. I just assume someone would
complain if it didn't work.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?QB1PR01MB3537A7B4437FF65260077485DD650>
