要禁止某个IP访问,可以在括号中添加"noaccess=IP地址"参数,例如:

/path/to/folder *(rw,async,root_squash,no_subtree_check,insecure,fsid=0,crossmnt,noaccess=192.168.1.100)

这将禁止IP地址为192.168.1.100的主机访问这个共享文件夹。

pathtofolder rwasyncroot_squashno_subtree_checkinsecurefsid=0host_ipcrossmnt 设置禁止某个ip访问

原文地址: https://www.cveoy.top/t/topic/eYAH 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录