We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo vim /etc/sysctl.conf fs.nfs.nlm_udpport=30104 fs.nfs.nlm_tcpport=30105 sudo vim /etc/services mountd 30100/tcp mountd 30101/udp rquotad 30102/tcp rquotad 30103/udp
sudo /etc/init.d/rpcbind restart sudo /etc/init.d/nfs-kernel-server restart
vmuser@ubuntu:~$ rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 30101 mountd 100005 1 tcp 30100 mountd 100005 2 udp 30101 mountd 100005 2 tcp 30100 mountd 100005 3 udp 30101 mountd 100005 3 tcp 30100 mountd 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100227 3 tcp 2049 100003 3 udp 2049 nfs 100227 3 udp 2049 100021 1 udp 30104 nlockmgr 100021 3 udp 30104 nlockmgr 100021 4 udp 30104 nlockmgr 100021 1 tcp 30105 nlockmgr 100021 3 tcp 30105 nlockmgr 100021 4 tcp 30105 nlockmgr
本地挂载成功 vmuser@ubuntu:~/work$ sudo mount -v -t nfs -o mountport=30101 -o port=2049 192.168.1.153:/work ./test mount.nfs: timeout set for Fri Apr 17 19:46:15 2020 mount.nfs: trying text-based options 'mountport=30101,port=2049,vers=4.2,addr=192.168.1.153,clientaddr=192.168.1.170' mount.nfs: mount(2): No such file or directory mount.nfs: trying text-based options 'mountport=30101,port=2049,addr=192.168.1.153' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 192.168.1.153 prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 192.168.1.153 prog 100005 vers 3 prot UDP port 30101
远程挂载 vmuser@ubuntu:~/work$ sudo mount -v -t nfs -o mountport=30101 -o port=2049 我的ip:/work ./my/ mount.nfs: timeout set for Fri Apr 17 20:04:01 2020 mount.nfs: trying text-based options 'mountport=30101,port=2049,vers=4.2,addr=我的ip,clientaddr=192.168.1.170' mount.nfs: mount(2): Operation not permitted mount.nfs: trying text-based options 'mountport=30101,port=2049,addr=101.37.20.75' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 我的ip prog 100003 vers 3 prot TCP port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 我的ip prog 100005 vers 3 prot UDP port 30101 mount.nfs: mount(2): Permission denied mount.nfs: access denied by server while mounting 我的ip.xyz:111/work
The text was updated successfully, but these errors were encountered:
是否可以尝试使用 ssh隧道进行端口影射,然后连接本地端口?
ssh隧道
Sorry, something went wrong.
No branches or pull requests
nfs内网穿透失败记录
修改nfs的固定端口
重启服务
端口查看
端口映射
本地挂载成功
远程还是失败了
The text was updated successfully, but these errors were encountered: