NFS: bind port to mountd not working

adk

Cadet
Joined
Jul 19, 2020
Messages
3
Aloha everyone,

i am new a not really experienced. Therefore please excuse my probably stupid question.

i want to access my NFS shares/mounts through a FW.

in the GUI (Services/NFS) i configured:

mountd(8) bind port
20048
rpc.statd(8) bind port
20049
rpc.lockd(8) bind port
20050

but whatever port i provide for mountd it isn't taken.
Code:
root@freenas:/mnt/zfs/admin # rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
    100000    4 local    111  rpcbind
    100000    3 local    111  rpcbind
    100000    2 local    111  rpcbind
    100005    1   udp    990  mountd
    100005    3   udp    990  mountd
    100005    1   tcp    990  mountd
    100005    3   tcp    990  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100024    1   udp  20049  status
    100024    1   tcp  20049  status
    100021    0   udp  20050  nlockmgr
    100021    0   tcp  20050  nlockmgr
    100021    1   udp  20050  nlockmgr
    100021    1   tcp  20050  nlockmgr
    100021    3   udp  20050  nlockmgr
    100021    3   tcp  20050  nlockmgr
    100021    4   udp  20050  nlockmgr
    100021    4   tcp  20050  nlockmgr


on every service restart of NFS i get a different port for mountd while the other two stay as configured.

Please help!

Thx & Greetings
Adam
 

adk

Cadet
Joined
Jul 19, 2020
Messages
3
setting fixed port for mountd works via tuneables/rc:
mountd_flags -n -p 700

Adam
 
Top