How to make nfs share accessible across subnets?

Bo Berglund bo.berglund at gmail.com
Thu Feb 10 15:07:27 UTC 2022


On Thu, 10 Feb 2022 15:00:16 +0100, Bo Berglund <bo.berglund at gmail.com> wrote:

>My config in /etc/exports is this:
>
>/home/bosse/www/VIDEO 192.168.119.0/24(rw,sync,no_subtree_check)
>/home/bosse/www/VIDEO 192.168.117.0/24(rw,sync,no_subtree_check)
>
>So the complete subnet 192.168.119.0/24 is allowed as client, but when I added
>the cottage subnet 192.168.117.0/24 as another set of allowed clients then it
>does not work, how come???
>
>I see no difference really....
>And as I indicated above, I restarted the nfs service after modifying the
>exports file.

Well, I had it wrong about the format of the exports file...

There is only one line per source path and multiple allowed clients are
separated by space on that line.

Further the options can be set as default in the beginning right after the path
entry.
So the exports entry collapses to this (on a single line):

/home/bosse/www/VIDEO -rw,sync,no_subtree_check  192.168.119.0/24
192.168.117.0/24

But it still causes the same error on the mount command from the remote client.


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list