Customizing ports

June 27, 2018 ยท View on GitHub

You can customize the ports used by the NFS server via the environment variables listed below. Each environment variable can be set to an integer between 1 and 65535.

Environment variableDescriptionDefault
NFS_PORTrpc.nfsd's listening port.2049
NFS_PORT_MOUNTDNFSv3 only. rpc.mountd' listening port.32767
NFS_PORT_STATD_INNFSv3 only. rpc.statd's listening port.32765
NFS_PORT_STATD_OUTNFSv3 only. rpc.statd's outgoing port.32766