![Synology 服务器和 Raspberry Pi 客户端之间安装 NFS 单元时出错](https://linux22.com/image/1459349/Synology%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%92%8C%20Raspberry%20Pi%20%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%B9%8B%E9%97%B4%E5%AE%89%E8%A3%85%20NFS%20%E5%8D%95%E5%85%83%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试将 NFS(v4 或 v3.. 但出现相同的错误...)从 Synology 服务器安装到 Raspberry Pi 客户端。但我收到此错误:
mount -t nfs4 IP_address_of_server:/volume1/nfsnvf /mnt/nfsnvf
mount.nfs4: Connection timed out
如果我尝试使用该showmount
命令,会出现此错误:
showmount -e IP_address_of_server
clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
我在公司网络中(路由器后面)有一个 Synology 服务器: - 此路由器中打开的端口:TCP/2049、UDP/2049、TCP/111 和 UDP/111 - Synology 服务器的 IPTables 列表:
DiskStationV5> iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
DEFAULT_INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DEFAULT_FORWARD all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain DEFAULT_FORWARD (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere multiport dports sunrpc,892,nfs
ACCEPT udp -- anywhere anywhere multiport dports sunrpc,892,nfs
ACCEPT all -- anywhere anywhere
Chain DEFAULT_INPUT (1 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere multiport dports sunrpc,892,nfs
ACCEPT udp -- anywhere anywhere multiport dports sunrpc,892,nfs
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
然后在另一个公司网络中我有一个 RaspberryPi(在另一个路由器后面)。 - 在此网络中打开的端口:TCP / 2049,UDP / 2049。
另外,/etc/export
synology 生成的是这样的:
/volume1/nfsnvf
*(rw,async,no_wdelay,root_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
知道问题可能出在哪里吗?