Ubuntu – Port 111/tcp open and rpcbind running on NFS server but invisible on NFS client

nfs

I am setting up an NFS sevrer on ubuntu 12.04 LTS server.

Running

nmap SERVER-IP

on the sever gives me:

PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
2049/tcp open  nfs

which 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 pcanywheredata

The 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?

Best Answer

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 ACCEPT

This will explain iptables really well.