Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2007 14:09:59 -0400
From:      "Dave" <dmehler26@woh.rr.com>
To:        <freebsd-net@freebsd.org>
Subject:   Re: Firewalling NFS
Message-ID:  <000a01c7af78$636db920$0200a8c0@satellite>
References:  <20070615072734.GC8093@obiwan.tataz.chchile.org> <20070615105950.GH3779@void.codelabs.ru> <4672D09B.9030100@incunabulum.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,
    I also want to firewall an nfs server. The box that it's running on uses 
pf, it's a 6.2 box. I've got tcp port 2049 open, and am not sure what else 
to open or what other daemons to start. I'm also uncertain as to whether 
FreeBSD uses nfs v3 or v4? I want to export home directories to five or six 
different linux machines, some ubuntu and most centos5 and i remember 
vaguely reading about nfs v4. If anyone has this working i'd appreciate 
pointers.
Thanks.
Dave.

----- Original Message ----- 
From: "Bruce M. Simpson" <bms@incunabulum.net>
To: "Eygene Ryabinkin" <rea-fbsd@codelabs.ru>
Cc: <freebsd-net@FreeBSD.org>; "Jeremie Le Hen" <jeremie@le-hen.org>
Sent: Friday, June 15, 2007 1:47 PM
Subject: Re: Firewalling NFS


> Eygene Ryabinkin wrote:
>> NFSD binds to the port nfsd (2049) and for my -CURRENT both lockd
>> and statd have '-p' options:
>> -----
>> $ man rpc.lockd rpc.statd | grep -- -p
>>      rpc.lockd [-d debug_level] [-g grace period] [-p port]
>>      -p      The -p option allow to force the daemon to bind to the 
>> specified
>>      rpc.statd [-d] [-p port]
>>      -p      The -p option allow to force the daemon to bind to the 
>> specified
>> -----
>> Are we talking about same entities?
>>
>
> I added the -p switch to mountd(8) a few years ago, as I needed to run a 
> read-only NFS server exposed to the outside world; to firewall it I needed 
> a deterministic RPC port number, which is what -p gives you. Otherwise you 
> have to rely on the TCP wrapper support built into rpcbind(8). The 
> rpc.lockd and rpc.statd daemons were recently changed to incorporate this 
> switch too, although I don't think it has been backported to the 6-STABLE 
> branch yet.
>
> Regards,
> BMS
>
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01c7af78$636db920$0200a8c0>