Groups | Search | Server Info | Login | Register


Groups > comp.protocols.nfs > #11

Re: can nfs-kernel-server of Linux bind to localhost?

From Zhang Weiwu <zhangweiwu+Trash@realss.com>
Newsgroups comp.protocols.nfs
Subject Re: can nfs-kernel-server of Linux bind to localhost?
Date 2011-08-18 10:32 +0800
Organization A noiseless patient Spider
Message-ID <j2htk0$64b$1@dont-email.me> (permalink)
References <j0tebr$8rh$1@dont-email.me>

Show all headers | View raw


On 07/29/2011 12:53 PM, Khufu wrote:
> I tried to look up manual for nfsd which says:
> 
>    -H  or  --host hostname
>        specify a particular hostname (or  address)  that  NFS  requests
>        will  be  accepted  on.  By  default,  rpc.nfsd  will accept NFS
>        requests on all known network addresses.  Note that lockd (which
>        performs file locking services for NFS) may still accept request
>        on all known network  addresses.   This  may  change  in  future
>        releases of the Linux Kernel.
> 
> This almost hints -H is equal to --bind of many other daemons. I added
> this to the call of nfsd in /etc/init.d/nfs-kernel-server (a debian box)
> and restarted the service. Result not good:
> 
> # netstat -tl | grep nfs
> tcp     0   0 *:nfs                *:*                     LISTEN


I discovered that both --host and --port parameter for nfsd does not
work on my server Debian 5.0.3 both both do work on my notebook
computer, Ubuntu 10.10. And when it works, --host option does exactly
what --bind works for other daemons, that is, it's not an access
control, but really a bind to the specified interface.

Back to comp.protocols.nfs | Previous | NextPrevious in thread | Find similar


Thread

can nfs-kernel-server of Linux bind to localhost? Khufu <khufu@139.com> - 2011-07-29 12:53 +0800
  Re: can nfs-kernel-server of Linux bind to localhost? "J.O. Aho" <user@example.net> - 2011-07-29 17:58 +0200
  Re: can nfs-kernel-server of Linux bind to localhost? Zhang Weiwu <zhangweiwu+Trash@realss.com> - 2011-08-18 10:32 +0800

csiph-web