You are not logged in.
Pages: 1
Hi,
I am about to configure a firewall (ufw), but I saw that the NFS-Server or better nlockmgr use random ports.
I managed to make statd and mountd ports static.
I tried modprobe options in /etc/modprobe/nlock.conf with
# Static ports for NFS lockd
options lockd nlm_udpport=4001 nlm_tcpport=4001
but it didn't do anything.
How can I set its port to a particular one?
Greetz
JD
Offline
I would suggest you confirm your kernel version.
Some of this can be controlled by module parameters, some from sysctl. See http://lxr.free-electrons.com/source/fs/lockd/svc.c#L57
Developer @ Arch Linux | ARM
Offline
Allright, I got it by setting all default options in "/etc/conf.d/nfs-common.conf"
STATD_OPTS="-p 32765 -o 32766 -T 32803"
I cannot understand what these options are for, but it works.
Offline
Pages: 1