I cannot map my FreeBSD client to my CentOS NFS server.

On trying to mount I get:

  • RPCPROG_NFS: RPC: Port mapper failure - RPC: Unable to send

Version of client is:

  • FreeBSD 8.0-RELEASE

Version of server is:

  • CentOS release 6.5 (Final)

Settings all look fine in:

  • /etc/exports

  • /etc/hosts.allow

  • /etc/hosts.deny

id root from freebsd lists:

  • uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)

id root from centos lists:

  • uid=0(root) gid=0(root) groups=0(root)

rpcinfo on NFS server lists portmapper, mountd, nfs, nfs_acl, nlockmgr.

Other CentOS boxes on the same network are able to connect to the NFS server.

The FreeBSD client I am trying to mount from has several mounts to another FreeBSD NFS server on the same network.

I amma stuck, pls help...

  • Start with the obvious: 1. Both systems haven't had updates installed for years. 2. You're trying to use NFSv3. – Michael Hampton Oct 9 '16 at 8:44
  • Hi Michael, thanks for the comment. These are legacy systems I would like to avoid having to update. Could you please elaborate on what you mean with point 2? Thanks! – Birb Oct 9 '16 at 9:26
  • Unable to send probably indicates there's a packet filter blocking communications in between. – drookie Oct 9 '16 at 9:51
  • NFSv3 is ancient, creaky, unreliable, and long obsolete. The only real reason to use it is if you have to speak to something that is also ancient, creaky, unreliable and long obsolete and thus doesn't understand NFSv4 (which, dating back to 2003, is merely mature; and besides, it works properly over TCP). Neither your client nor server appear to qualify as such, despite not having been updated in quite a while. – Michael Hampton Oct 9 '16 at 10:26
  • Hi Michael, cheers for the explanation on nfs, how do you know its v3 btw? Also do you have any suggestions on how to solve the problem with freebsd vs centos nfs mounts? Thanks! – Birb Oct 9 '16 at 11:22

It turned out to be the firewall on the client.

ipfw had rules to allow ip to the other nfs servers but not the one I was trying to connect to.

Took a while, here is the resource I used: https://www.freebsd.org/doc/handbook/firewalls-ipfw.html

Thanks to user drookie for pointing me in the right direction!

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.