Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Attempting to remote mount NFS?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Attempting to remote mount NFS?

sgno1sgno1 Member
edited May 2021 in Help

I'm trying to remote mount one of my mount points to a server of mine however I keep getting

root@ubuntu:/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

  • sgno1sgno1 Member

    Worked, I guess I had to add in the SERVER_IPV4 of my client.

  • jmgcaguiclajmgcaguicla Member
    edited May 2021

    @sgno1 said:
    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.

    Thanked by 1sgno1
Sign In or Register to comment.