I have a machine (RHEL 6.1) NFS sharing a folder over 2 network interfaces, one internal to a lab, the other external. /etc/exports looks like this -
(I have redacted the IP of the other, public machine)
Code:
/programs 192.168.1.0/255.255.255.0(rw) ###.###.##.###/32(rw)
Now on machine ###.###.##.### (running CentOS 5.7) I do a showmount -e <sharehost public interface> and get
Code:
/programs 192.168.1.0/255.255.255.0
See? From the external machine, /programs looks like it's being exported to the internal network only.
HOWEVER, if from external machine ###.###.##.###, I try to mount /programs, it mounts fine. It just doesn't look like it *should* work!
Very bizarre. I don't understand why. Anybody?
- Van