This is a discussion on How to set port for nfslock/nlockmgr/rpc.lockd? within the Debian Linux support forums, part of the Debian Linux category; --> Hi all We are using an amd64 linux box as an NFS server with a firewall. We have opened ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi all We are using an amd64 linux box as an NFS server with a firewall. We have opened ports 111 for portmapper and 2049 for NFS. Our first problem was to let rpc.mountd operate but worked out how to do that by editing /etc/defaults/nfs-kernel-server to add RPCMOUNTDOPTS="-p 32478" So that it always starts on that port. Ouput of rpcinfo -p is now: root@Athlon:~# rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100021 1 udp 32768 nlockmgr 100021 3 udp 32768 nlockmgr 100021 4 udp 32768 nlockmgr 100021 1 tcp 33621 nlockmgr 100021 3 tcp 33621 nlockmgr 100021 4 tcp 33621 nlockmgr 100005 1 udp 32478 mountd 100005 1 tcp 32478 mountd 100005 2 udp 32478 mountd 100005 2 tcp 32478 mountd 100005 3 udp 32478 mountd 100005 3 tcp 32478 mountd 100024 1 udp 828 status 100024 1 tcp 831 status Everything is working except occasional problems with file locking. I realised that this is because nfslock/nlockmgr/rpc.lockd is still assigning random ports at each startup. The question is: How do we fix the other ports - particularly nlockmgr? Otherwise we have to change firewall setup on each reboot. Have looked in /etc/defaults/ & /etc/init.d/ but can't find anything there or in man pages, documentation or on google. Anyone have any ideas? TIA Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
| ||||
| Michael Hopkins wrote: > Everything is working except occasional problems with file locking. I > realised that this is because nfslock/nlockmgr/rpc.lockd is still assigning > random ports at each startup. > > The question is: > > How do we fix the other ports - particularly nlockmgr? > > Otherwise we have to change firewall setup on each reboot. > > Have looked in /etc/defaults/ & /etc/init.d/ but can't find anything there > or in man pages, documentation or on google. > > Anyone have any ideas? I have never done anything with nfs, but I wonder if these two links apply to your situation: http://www.crazysquirrel.com/computing/debian/nfs.jspx http://www.mailarchives.org/list/deb...msg/2002/40052 -- Ed Hurst ------------ Return address is a spamtrap. Try jehurst at gmail dot com. |