* NFS4 and host restrictions
@ 2006-06-05 9:23 Damian Pietras
2006-06-05 17:09 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Damian Pietras @ 2006-06-05 9:23 UTC (permalink / raw)
To: nfs
Hi,
I'm trying to work out how to restrict access to NFS4 directories by
client IP.
What I want to achive is something like that:
/nfs4 - virtual root
/nfs4/host1dir
/nfs4/host2dir
I want to restrict access for /nfs4/host1dir to host1 only and for
/nfs4/host2dir to host2.
I've tried few configurations in /etc/exportfs and nothing works, for example:
/nfs4 *(rw,sync,fsid=0)
/nfs4/host1dir host1(rw,sync)
/nfs4/host2dir host2(rw,sync)
This allows anyone to mount /nfs4/host1dir and /nfs4/host2dir
And this:
/nfs4 i127.0.0.1(rw,sync,fsid=0)
/nfs4/host1dir host1(rw,sync)
/nfs4/host2dir host2(rw,sync)
nobody is allowed to mount anything.
I can't figure it out and I couldn't find any information how it's
supposed to work. Can you help me?
I'm using nfs-utils 1.0.7.
--
Damian Pietras
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: NFS4 and host restrictions
2006-06-05 9:23 NFS4 and host restrictions Damian Pietras
@ 2006-06-05 17:09 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2006-06-05 17:09 UTC (permalink / raw)
To: Damian Pietras; +Cc: nfs
On Mon, Jun 05, 2006 at 11:23:21AM +0200, Damian Pietras wrote:
> /nfs4 *(rw,sync,fsid=0)
> /nfs4/host1dir host1(rw,sync)
> /nfs4/host2dir host2(rw,sync)
>
> This allows anyone to mount /nfs4/host1dir and /nfs4/host2dir
It'll let anyone mount those paths, but it shouldn't actually let you
see the contents of any filesystems mounted at those paths.
--b.
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-05 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05 9:23 NFS4 and host restrictions Damian Pietras
2006-06-05 17:09 ` J. Bruce Fields
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.