大网数据广告活动
服务器运维问答

NFS not allowing hosts specified in config to mount share

· 52CE 我爱测

I am having an issue where NFS is refusing to allow hosts that are specified in the config file to mount the share. I am running an NFS server on Debian 10, BTRFS filesystem. my /etc/exports reads: /share 192.220.189.0/24(rw,sync…

问题原文

原帖链接 · james · CC BY-SA 4.0

I am having an issue where NFS is refusing to allow hosts that are specified in the config file to mount the share.

I am running an NFS server on Debian 10, BTRFS filesystem.

my /etc/exports reads:

/share  192.220.189.0/24(rw,sync,no_subtree_check) *.domain.lan(rw,sync,no_subtree_check)

I am trying to mount from host.domain.lan, but when I try to mount the share I get the following:

mount.nfs: access denied by server while mounting server.domain.lan:/share

The server log reads:

rpc.mountd[PID]: refused mount request from <host.domain.lan's ip> for /share (/share): unmatched host

I have verified that the server can resolve host.domain.lan's hostname courtesy of a local DNS server.

The mounting DOES work if I explicitly specify host.domain.lan in /etc/exports as opposed to *.domain.lan. This will not do however as I want to serve the folder to an entire subdomain of FQDNs.

I can find nothing about this online, and I have exhausted every option I can think of, please help!

已采纳解答

原帖链接 · user10489 · CC BY-SA 4.0

Likely the domain name is not resolving correctly in DNS.

What do you get if you use the host command on the server to try to resolve the client's ip address to a hostname? DNS may not have the correct reverse mapping set up for this to work.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-08-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。