Comment on Visibility of NFS exports
CallMeAl@piefed.world 1 week ago
When you add /24 you are exporting to the entire subnet. A single host export looks like this
/srv/nfsv4 192.168.0.10(ro,sync,secure,root_squash,subtree_check,fsid=0)
Just leave off the subnet mask.
joulethief@discuss.tchncs.de 1 week ago
Thank you. I’m closer to what I want now. Can you help me explain this behavior though:
For testing purposes, I commented out every line in /etc/exports but these:
Client 192.168.0.20 can mount nfs-server:/ and listing the contents gives both directories foo and bar. It cannot see the contents of foo, as intended, but it can see what’s inside bar. I cannot figure out why? I rebooted the machine in hopes it was just a caching thing, to no avail.
Apart from that, I was hoping 192.168.0.20 could not even mount foo, but as long as its contents are hidden, I can live with that for now.
joulethief@discuss.tchncs.de 1 week ago
Even with bar exported to this client, it cannot see its contents. What the hell is going on? Just to be clear, I did run
exportfs -arvafter every change to /etc/exports.