0

I have NFS server 192.168.1.1 and two client servers 192.168.1.2 and 192.168.1.3. On nfs server I have one shared nfs folder /etc/exports:

/nfsshare 192.168.1.2(rw,sync,no_root_squash,no_all_squash)

As you see only client 192.168.1.2 can acces that folder, but executing

showmount -e 192.168.1.1

from any of clients servers end up showing the list of shared folders from server 192.168.1.1 and I want to prevent that. Is it possible and if it is possible how to configure that?

0

The showmount command talks to mountd process. If you use NFSv4, then clients don't require mountd and you can stop it. If you need provide NFSv3 service, then you can enforce mountd to run on a dedicated port (in /etc/nfs.conf) and protect it with firewall rules.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.