You are not logged in.

#1 2015-07-26 19:10:42

JohnDVD
Member
Registered: 2011-11-29
Posts: 39

nlockmgr static port

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

#2 2015-07-27 17:50:58

WarheadsSE
Member
From: EST, US
Registered: 2012-04-18
Posts: 8
Website

Re: nlockmgr static port

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

#3 2015-08-01 07:14:27

JohnDVD
Member
Registered: 2011-11-29
Posts: 39

Re: nlockmgr static port

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

Board footer

Powered by FluxBB