I am setting up an NFS sevrer on ubuntu 12.04 LTS server.
Running
nmap SERVER-IPon the sever gives me:
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
2049/tcp open nfswhich seems to indicate the NFS server runs
But on the client, doing the same gives me
PORT STATE SERVICE 22/tcp open ssh 5631/tcp filtered pcanywheredataThe firewall (ufw) is disabled on the server and client.
Because of this I can't mount my exported folders on the client.
Any idea what prevents my client from seeing port 111 open?
22 Answers
You are allowing all incoming packets to the localhost interface but not on other interfaces.
Therefore you can see the open port locally but not from another machine.
You have to allow all incoming packets to port 111 like this:
iptables -A INPUT -p tcp --dport 111 -j ACCEPTThis will explain iptables really well.
1This is because the nfs client also depends on rpcbind. However, You can stop it being running but it is recommended to run it on a nfs client also, as rpcbind involves username <--> userID mapping between nfs-server and nfs-client.