NFS4 and host restrictions
Subsystems (2)
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.
Signature · 6 lines
Damian Pietras _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 5 lines · Damian Pietras
/nfs4 *(rw,sync,fsid=0)
/nfs4/host1dirhost1(rw,sync)
/nfs4/host2dirhost2(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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs