Glam Prestige Journal

Bright entertainment trends with youth appeal.

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?

2

2 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 ACCEPT

This will explain iptables really well.

1

This 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy