nfs and ports - TechRepublic
General discussion
March 12, 2003 at 03:08 AM
rezuma

nfs and ports

by rezuma . Updated 23 years, 2 months ago

Any help would be greatly appreciated:
I’m trying to force the nfs services to bind to a specific port, so that I can open those ports on the firewall. I have the following services running:
mountd,
statd,
rquotad,
nlockmgr

I have used the -p with the rpc.mountd, and rpc.statd, but they revert back to a randopm port after I restart the nfs service. However, I don’t know how to lock down the ports for rquotad and nlockmgr.
Here are my questions:1) What is the correct way of locking down the ports for mountd and statd, permanently? I have modified the /etc/init.d/nfs and
/etc/iinit.d/nfslock, and they work, but am not sure if that is the right way.
2) How do I lock down the ports for nlockmgr, and rquotad?
3) I also have a question regarding NFS over TCP. Where does that stand with nfs version 3? I am running 2.4.18 kernel. How do I configure my nfs server to use TCP instead of UDP?

This discussion is locked

All Comments