参考 : 解决目标主机showmount -e信息泄露(CVE-1999-0554)(亲测可用) – McGrady的技术分享
NFS服务器如下配置
#NFS server的/etc/hosts.allow添加
mountd:1.2.3.4:allow
rpcbind:1.2.3.5:allow
#NFS server的/etc/hosts.deny添加
mountd:ALL
rpcbind:ALL
添加完,什么都不用重启,其它未授权的主机执行showmount -e IP(NFS server的ip)会提示clnt_create: RPC: Port mapper failure - Authentication error