1833883 Members
1779 Online
110063 Solutions
New Discussion

Secure NFS

 
Victor_5
Trusted Contributor

Secure NFS

How can I know whether I am using secure NFS on my 11i box? Which files I need to take a look?

Thanks!

7 REPLIES 7
Helen French
Honored Contributor
Jeff Schussele
Honored Contributor

Re: Secure NFS

Victor,

Secure NFS is not supported by HP-UX - see the following:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/25-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/25-toc.html&searchterms=NFS%7csecure&queryid=20020410-070235

Although secure RPC is.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
David Lodge
Trusted Contributor

Re: Secure NFS

NFS is not secure *at all* on HP-UX. Avoid it. Like the plague...
Michael Tully
Honored Contributor

Re: Secure NFS

The best way to *secure* NFS is to not run it at all, and to remove the filesets of the server.
Anyone for a Mutiny ?
David Lodge
Trusted Contributor

Re: Secure NFS

Having had a quick look at the threads pointed to above, I just wanted to make some points.

1) NFS is not *secure*. I really, really mean this.
2) If you *need* to run it (to be honest you shouldn't have any reason to) then make sure you do the following:
* restrict the export as much as possible in /etc/exports (using ro, nosuid, nodev ad nauseum)
* make the inode of the mounted directory as high as possible.
* use /etc/inetd.sec to restrict requests to rpc.mountd

You might have questions about the second recommendation, but if you understand how NFS works it makes sense; in a nutshell:
1. Client request permission to mount directory from rpc.mountd
2. Mountd checks /etc/exports to see whether it has permissions. If so it returns a file handle.
3. NFS client talks to NFS server to request files/meta data, *using the file handle*

Hence, if an attacker can snarf the file handle they can access all exported information.

Because of weaknesses in HP's NFS file handles it is relatively easy to grab a file handle - but this depends on the size of the inode of the exported directory - hence the higher up it is, the less the risk. (ie 2 is bad 56784943 is better)

dave (NFS is evil)
Victor_5
Trusted Contributor

Re: Secure NFS

Hi David:

You didnot answer my question, but you gave me clearer picture about NFS security, thanks for your professional explanation, so I assigned 7 points to you, really appreciate!