NFS Share Openwrt 23.05

I followed the instructions here
I created an arbitrary new ip for a new network share. Here is my /etc/exports

/mnt    *(ro,all_squash,insecure,sync)

The problem is: I can neither ping from a linux machine in my network nor from my router when I ssh into it. doesn't even appear in Luci under: IPv4 Neighbours

If I try to run this on a linux machine in my local network

sudo mount /mnt/attempt
sudo mount -t nfs /mnt/attempt

I get the error

mount.nfs: No route to host

When I ssh into my OpenWRT router:
If I run ps the following entries are present

/usr/sbin/rpc.mountd -p 32780    
/usr/sbin/rpc.statd -p 32778 -o 32779

I can also restart them manually with

root@ service rpcbind start && service rpcbind enable
root@ service nfsd start && service nfsd enable

No improvements by doing so.

I am trying to mount an NTFS USB storage device. I know it works if I use SMB instead of NFS, but I want to make the switch to NFS.
I am running the official OpenWRT software on my NanoPI R4S (natively supported).

Things started working when I used instead of

Impeccable speeds

Currently, my /etc/exports is like this

/mnt    *(ro,all_squash,insecure,sync)
/mnt/sda4,sync,no_subtree_check) 2a00:aaaa:aaaa:aaaa::/64(rw,sync,no_subtree_check)

Any advice about how to limit access? I suppose now I am exposide the drive to all devices in my network.

What am I doing now? It works but I don't know how and why.

In this configuration, is the IP address of the eventual client that is allowed to access the share (if you need restrictions), not a new address that the service will listen on...

1 Like

Thank you for the clarification!

Is there an easy way to create a group of IPs identified as trusted? (or MAC addresses instead of IPs)
It would be good to know.

Practically speaking, I have a separate WiFi access point, but in the software of the access point I cannot define a guest network. My network switch the WiFi access point is connected to doesn't support VLANs, but I didn't think I would need them to begin with.

If the trusted clients are not too many, you can list them separated by a space (with options included).


If the IP addresses are consecutive, you can use CIDR notation.
For example for addresses from .8 to .11:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.