NFS ports client- side ?

g0all
g0all used Ask the Experts™
on
Hi,

Please tell me what ports do you have opened in your firewalls between a NFS server and a NFS client?

I use RedHat Enterprise Linux and NFSv3/4.

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,

On server side you only need TCP port 2049.

On client side port high port (probably above 10000) is randomly chosen, so you should allow all high ports.

Better solution is to limit only source addresses which can access NFS service.

Regards!
Most Valuable Expert 2013
Top Expert 2013
Commented:
Hi,

you'll need at least port 111 (RPC), 2049 (NFS).

The RPC.MOUNTD and RPC.LOCKD use dynamic ports. A stateful firewall should be able to handle this.

If it doesn't work nevertheless you could open all ports above 32000 between the client and the NFS server,
or you could add entries for "mountd" and "lockd" to /etc/services specifying ports of your choice:

mountd  12345/tcp
mountd  12345/udp

lockd  12346/tcp
lockd  12346/udp

(The port numbers above are just examples)

wmp
You can find more details here regarding NFS versions and protocols used:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-nfs.html

Regards!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial