I'm trying to use NFSv3 on Ubuntu 20.x Server and need to set static ports to use UFW. Unfortunately Windows 10 which needs to connect to this server only supports NFSv3 so leaving just port 2049 open is not enough.
I have tried to add ports to the /etc/default/nfs-kernel-server:
# Number of servers to start up
RPCNFSDCOUNT=64
Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0
Options for rpc.mountd.
If you have a port-based firewall, you might want to set up
a fixed port here using the --port option. For more information,
see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS="--manage-gids"
Do you want to start the svcgssd daemon? It is only required for Kerberos
exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""
Options for rpc.svcgssd.
RPCSVCGSSDOPTS=""
LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
STATD_PORT=662
RQUOTAD_PORT=875
While the config did take the 64 count of servers to spin up, it hasn't picked up the port configs at the bottom, even after a reboot.
Does anyone know where can I set these properly?
/etc/default/quotas
likely should be/etc/default/quota
– pangyuteng May 26 '22 at 19:552049 111 892 662 875 32803 32769
– pangyuteng May 26 '22 at 20:51