参考 : 解决目标主机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
本文介绍了一种防止NFS服务器信息泄露的方法。通过在NFS服务器的/etc/hosts.allow文件中指定允许访问的IP地址,并在/etc/hosts.deny中拒绝所有其他连接,可以有效阻止未授权主机获取showmount -e信息。
3251

被折叠的 条评论
为什么被折叠?



