I have two machines A and B that are not on the same network, and I'd like to export an nfs share from one machine to the other.
In the middle, I have a machine M that is on both network.
I successfully mounted my A's share on M. Now, I'd like to export this mount to B.
I created an export on M, like this:
/mnt/path/to/mountpoint/of/A's/nfsshare <B's IP address>(rw,insecure,secure,root_squash,wdelay,sync,no_subtree_check)
And tried to mount it on B, like this :
<M's hostname>:/mnt/path/to/mountpoint/of/A's/nfsshare /some/empty/directory nfs auto,rw,rsize=65535 0 0
When I try to mount M's export, I get this message on B:
mount.nfs: vm-dc:/mnt/dcstore01/data02/formats_exploitation failed, reason given by server: Permission denied
And I get this message in M's syslog :
Dec 6 13:53:05 vm-dc rpc.mountd: authenticated mount request from 10.0.0.1:773 for /mnt/dcstore01/data02/formats_exploitation (/mnt/dcstore01/data02) Dec 6 13:53:05 vm-dc rpc.mountd: qword_eol: fflush failed: errno 22 (Invalid argument) Dec 6 13:53:05 vm-dc rpc.mountd: Cannot export /mnt/dcstore01/data02, possibly unsupported filesystem or fsid= required
What should I do ?