New on LowEndTalk? Please Register and read our Community Rules.
Attempting to remote mount NFS?
I'm trying to remote mount one of my mount points to a server of mine however I keep getting
[email protected]:/mnt# sudo mount -t nfs -o nfsvers=4 xx.xx.xx.xx:/mnt/storage /mnt/storage
mount.nfs: access denied by server while mounting xx.xx.xx.xx:/mnt/storage
This is my /etc/exports file on my Host NFS Server:
/mnt/storage SERVER_IPV4 (rw,sync,no_subtree_check,no_root_squash)
I've restarted nfs-kernel-server multiple times too, also ran exportfs -rv and exportfs -a, still no luck. I've also port forwarded 2049 on TCP and UCP and allowed it through my firewall.
Comments
Worked, I guess I had to add in the SERVER_IPV4 of my client.
Did you perhaps mistunderstand the format of the
exports
file?The
SERVER_IPV4
part is supposed to be an ACL for the share. If you put the server's own IP in it, you're basically telling it to only allow itself to connect to the share.