How can I mount a share of another server and re-share it using internal samba with SMB2?

So I have share in my UNRAID, where I want scans to be stored.

The share is \\myunraid\documents

Unfortunately my printer cannot (probably) see shares on servers that are SBM3/SMB2 and needs “clean” SMB2.

I have NS8 in a VM within UNRAID.
I wonder if I can mount the original share (access it in full SMB3), then use the internal NS8 samba, to re-share it and probably limiting to SMB2 (if that is not a critical issue for NS8, which I do not use for shares). Share needs to be hidden, I will just define it in my printer.

And of course the whole thing working transparently, in every reboot.

Help?

I’m not sure about the resharing as I only managed to mount a share read-only in a container.

What about creating a share in NS8 cluster-admin, disable the “browsable” flag to hide it, limit the SMB protocol to SMB2 and just use that share for the scans?

To restrict the protocol to SMB2 you could enter the samba environment,

runagent -m samba1

…edit the include.conf file…

podman unshare nano $(podman volume inspect config --format={{.Mountpoint}})/include.conf

…and add the following to restrict to SMB2:

server max protocol = smb2
client max protocol = smb2

The service needs to be restarted to apply the config:

systemctl --user restart samba-dc