tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Limiting rpc.lockd to IPv4 only



In article <Pine.NEB.4.64.1208121017030.15216%screamer.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> wrote:
>On Sun, 12 Aug 2012, Christos Zoulas wrote:
>
>> On Aug 12,  8:35am, paul%whooppee.com@localhost (Paul Goyette) wrote:
>> -- Subject: Re: Limiting rpc.lockd to IPv4 only
>>
>> | Yes, but today, nfsd doesn't even have a -4 option!
>>
>> http://www.netbsd.org/~christos/nfsd.c
>> http://www.netbsd.org/~christos/nfsd.8
>>
>> And 150 lines shorter, since the code is not duplicated anymore.
>
>A couple items:
>
>1. This is a change to current behavior, which is to listen for IPv4
>    only.

That's a good thing.

>2. Should it not be set up so that specifying both -4 and -6 does the
>    expected thing?  (IE, acts like the default).

I am considering having -46 and -tu mean both for compatibility. I think
it is a good idea.

>3. You should also change nfsd_flags in /etc/defaults/rc.conf to
>
>       nfsd_flags="-46tun 4"   (if you accept comment #2)
>    or nfsd_flags="-tun 4"     (if you do not accept #2)

I think I will make it "" since 4 is the default "-n 4" is just extraneous.

christos



Home | Main Index | Thread Index | Old Index