Subject: Re: mountd fixed port
To: None <netbsd-users@netbsd.org>
From: Florian Stoehr <netbsd@wolfnode.de>
List: netbsd-users
Date: 07/15/2005 23:10:09
On Fri, 15 Jul 2005, Andy Ruhl wrote:
> On 7/15/05, Christos Zoulas <christos@astron.com> wrote:
>> In article <Pine.NEB.4.63.0507152155160.1208@irina.net.flo>,
>> Florian Stoehr <netbsd@wolfnode.de> wrote:
>>> Hi,
>>>
>>> NetBSD's mountd picks a different port every time. As I'd like to allow
>>> NFS mounts through firewall and our mountd cannot accept, say "-p <port>"
>>> to force a specific port, I'm wondering whether someone already wrote a
>>> patch for this? If so, please send it to me.
>>>
>>> If not I'll implement this for me. Other systems have this switch. Perhaps
>>> there's some interest to have this committed into our mountd?
>>
>> Sure...
>
> If this was done, would this mean we wouldn't need the portmapper as
> well? I'm not 100% up to speed on how all this works, so that might be
> a stupid question.
>
> But it would be nice to specify a port on both ends and that way it
> would be easier to firewall.
>
OK, I implemented this for my 2.0.
I'll patch -current, update the manpage and send-pr the patches.
The client gets the port from rpcbind@111, so this is transparent (if that
was your question?).
-Florian