How to make nfs share accessible across subnets?

Oliver Grawert ogra at ubuntu.com
Fri Feb 11 11:16:56 UTC 2022


hi,
Am Donnerstag, dem 10.02.2022 um 22:21 +0100 schrieb Bo Berglund:
> 
> ALMOST GIVING UP....
> --------------------
> A

i havent touched nfs in over a decade (i really prefer sshfs nowadays,
way safer and easier to set up), but when i had to share over subnets
and could not join the networks via a bridge i remember that i always
needed to have an entry for each subnet (or host if you want to limit
to single hosts of the same subnet) to share to *on the same line* [1]
like:

/srv/foo/bar 192.168.0.0/24(rw,no_root_squash,async) 
192.168.1.0/24(rw,no_root_squash,async) 

... (mind the 80char linewrap of the mail list, the above is actually
one line) IIRC the exports manpage explains that too ... i think if you
use two lines for the same share, only the last entry is used.

ciao
	oli

[1] https://tldp.org/HOWTO/NFS-HOWTO/server.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220211/b4c6925c/attachment.sig>


More information about the ubuntu-users mailing list