View Full Version : [all variants] Verifying NFS host authenticity
m3pz
September 27th, 2009, 01:36 AM
I have a network in which I can trust some of the hosts, but not others, and I have a filer that provides some mounts to the trusted hosts and some other mounts to the untrusted hosts.
How can I ensure that only the trusted hosts get access to some of the mounts? NFS's IP address restrictions isn't enough, since it's trivial to change the IP address on the untrusted hosts. Is there a way to verify the authenticity of hosts connecting to the NFS server, using some kind of certificate approach?
Thanks!
movieman
September 27th, 2009, 01:43 AM
You can configure the machines to require an authenticated IPSEC connection; though setting that up is a bit of a pain.
bodhi.zazen
September 27th, 2009, 12:46 PM
I have a network in which I can trust some of the hosts, but not others, and I have a filer that provides some mounts to the trusted hosts and some other mounts to the untrusted hosts.
How can I ensure that only the trusted hosts get access to some of the mounts? NFS's IP address restrictions isn't enough, since it's trivial to change the IP address on the untrusted hosts. Is there a way to verify the authenticity of hosts connecting to the NFS server, using some kind of certificate approach?
Thanks!
Not exactly the solution you are looking for, but this is the reason I switched to Samba. Samba is, IMO, more secure then NFS and shares can be configured so as to require a password.
If you *must* use nfs, take a look at things such as Kerberos
http://nfsworld.blogspot.com/2006/02/real-authentication-in-nfs.html
http://hell.org.ua/Docs/oreilly/tcpip2/fire/ch17_03.htm
https://help.ubuntu.com/community/Samba/Kerberos
http://www.alittletooquiet.net/text/kerberos-on-ubuntu/
scorp123
September 27th, 2009, 04:50 PM
Kerberos That and sticking to NFSv4 ... But seriously: It's pain to setup. Only recommended if you really know what you do.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.