I have an encrypted drive on my main desktop that I want to be able to access from my other devices in my local network. I have installed nfs-utils on both my server and client and tried following the arch wiki for nfs setup and when that didn’t work, I tried stuff from this post:
But on the client, I get this still.
$ showmount -e 192.168.0.182
clnt_create: RPC: Unable to receive
My /etc/exports:
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
#
# Use `exportfs -arv` to reload.
/run/media/nym 192.168.0.0/255.255.255.0(rw,subtree_check)
/home/nym/Documents 192.168.0.0/255.255.255.0(rw,sync,no_root_squash,subtree_check)
What am I doing wrong? I get a lot of search results relating to firewall issues, but I tried the commands in the forum post and it didn’t change anything. I don’t think I installed any firewall other than whatever was there by default.
I was using nfs-server at first while following the arch wiki and then I installed nfsv4 on top when trying out the commands in the forum post. The nfs firewall service was already enabled.
Just now, I tried stopping nfs-server.service and leaving nfsv4 running, and adding insecure to /etc/exports, exportfs -arv, but I still get the “RPC: Unable to receive” error when trying showmount.
Also, does host mean client or server? I added nfs service to firewalld on both computers (both are EndeavorOS)
I also ran
firewall-cmd --set-default-zone=home
on both machines because by default it was set to ‘public’
I have a minipc running Adguardhome in the background, do you think that could be an issue? I had an nfs share set up in the past and don’t remember doing anything special for that though.
In order to mount, I had to make sure to use nfsv4-server.service. The nfs-server service wasn’t working.
As for the firewall thing, I had it off while testing and successfully mounting the nfs share on two different devices. After re-enabling the firewall, my laptop still mounted the nfs share successfully on reboot via fstab. Although, I have a feeling things will break again for whatever reason.