명령줄에서 NFS를 마운트할 수 없습니다. fstab에서는 잘 작동합니다. iptables를 비활성화하면 잘 작동합니다

명령줄에서 NFS를 마운트할 수 없습니다. fstab에서는 잘 작동합니다. iptables를 비활성화하면 잘 작동합니다

Ubuntu 20.04, with IPTables firewall. 서버 외부에서 NFS 포트를 명시적으로 허용합니다. 복귀(관련 또는 확립된 세션은 허용됩니다)

모든 서버에 대해 /etc/sysctl.conf에 포트를 명시적으로 설정했습니다: fs.nfs.nlm_udpport=38073

fs.nfs.nlm_tcpport=38747

nfs-kernel-server에 33333이 설정되었습니다.

포트 111,1110,2949,33333,4045,38073, 38747은 방화벽 아웃바운드 및 인바운드에서 모두 열려 있습니다.

마운트를 시도하면 다음과 같은 결과가 나타납니다.

mount.nfs: timeout set for Fri Sep 15 17:25:35 2023
mount.nfs: trying text-based options 'vers=4.2,addr=192.168.30.150,clientaddr=192.168.10.125'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.30.150'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.30.150 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query failed: RPC: Unable to send - Operation not permitted
mount.nfs: Operation not permitted

그러나 FSTAB의 동일한 마운트는 정상적으로 마운트됩니다(재부팅 중).

==== 편집=======

그러나... IPTABLES를 플러시하면 작동합니다... 동일한 "해당 없음" 메시지가 나타납니다.

mount.nfs: timeout set for Sat Sep 16 12:47:04 2023
mount.nfs: trying text-based options 
 vers=4.2,addr=192.168.30.150,clientaddr=192.168.10.125'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.30.150'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.30.150 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: portmap query retrying: RPC: Timed out
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 192.168.30.150 prog 100005 vers 3 prot TCP port 33333

관련 정보