I've been struggling with getting nfd to do what I want. I used the plugin via the webinterface to export a share and only allow access to 2 IPs, however when I checked the /etc/exports via ssh I discovered it exported the share to * as well

Code: Select all
~ # ls -alh /etc/exports
lrwxrwxrwx 1 root root 37 Mar 12 04:37 /etc/exports -> /i-data/72a1319b/.PKG/NFS/etc/exports
~ # ls -alh /i-data/72a1319b/.PKG/NFS/etc/exports
-rw-rw-rw- 1 root root 248 Mar 12 04:37 /i-data/72a1319b/.PKG/NFS/etc/exports
~ # cat /i-data/72a1319b/.PKG/NFS/etc/exports
/i-data/72a1319b/nfs/openstack 192.168.1.20(rw,sync,no_subtree_check,wdelay,no_root_squash) 192.168.1.151(rw,sync,no_subtree_check,wdelay,no_root_squash) #
/i-data/72a1319b/nfs *(rw,sync,crossmnt,fsid=0,no_subtree_check,wdelay,no_root_squash) #
so no problem I thought I just edit /etc/exports file with vi and run an exportfs, but it persists in the * line, rebooting the nas, also returns the second line in the /etc/exports file, since it's /etc/exports file lives on internal storage (/i-data/72a1319b) I would have expected my edits to 'stick', but somehow they don't
Anyone knows how I can persistently edit the /etc/exports file? Or alternatively can I achieve the same result I want (ie only allow access to 192.168.1.20 and 192.168.1.151) by installing the iptables opkg?