Ubuntu – Which ports do I need to open in the firewall to use NFS

firewallnfsUbuntu

I'm running Ubuntu 11.10 – setting up NFS to share a directory among many other servers. Which ports are required to be opened on the firewall?

Best Answer

$ rpcinfo -p | grep nfs

Port 111 (TCP and UDP) and 2049 (TCP and UDP) for the NFS server.

There are also ports for Cluster and client status (Port 1110 TCP for the former, and 1110 UDP for the latter) as well as a port for the NFS lock manager (Port 4045 TCP and UDP). Only you can determine which ports you need to allow depending on which services are needed cross-gateway.