Link to home
Start Free TrialLog in
Avatar of mynamebecory2
mynamebecory2

asked on

Specifically setting NFS ports, rogue statd port

I have NFS set up on a server using static ports due to having iptables running on the same machine.  I set up mountd, lockd, and statd to use specific ports, but on reboot statd uses one of the ports I specified and additionally picks a dynamic port in the 6xx range.  I have confirmed this with netstat, see below

tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      3417/portmap    
tcp        0      0 0.0.0.0:32765           0.0.0.0:*               LISTEN      3436/rpc.statd  
tcp        0      0 0.0.0.0:32767           0.0.0.0:*               LISTEN      3904/rpc.mountd
udp        0      0 0.0.0.0:644             0.0.0.0:*                           3436/rpc.statd  <-- The elusive port
udp        0      0 0.0.0.0:111             0.0.0.0:*                           3417/portmap    
udp        0      0 0.0.0.0:32765           0.0.0.0:*                           3436/rpc.statd  
udp        0      0 0.0.0.0:32767           0.0.0.0:*                           3904/rpc.mountd

I am running on Ubuntu 8.04 and have done the following:
/etc/default/nfs-common
  STATDOPTS="--port 32765 --outgoing-port 32766"

/etc/default/nfs-kernel-server
  RPCMOUNTDOPTS="-p 32767"

/etc/modprobe.d/options
options lockd nlm_udpport=32768 nlm_tcpport=32768

Any help is appreciated.
ASKER CERTIFIED SOLUTION
Avatar of mynamebecory2
mynamebecory2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial