Centos – Trying to mount from freebsd to centos NFS server

centoscentos6.5freebsdnfs

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…

Best Answer

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!