Linux: reshare a samba share

fedoralinuxlinux-networkingsamba

I have two Linux boxes and a Mac.

1) Linux-1 is on an internal network. Linux-1 has a bunch of external hdd and running a samba server, smb-1, sharing files from these hdds.

2) Linux-2 has two net interfaces, one internal and one external. It mounts smb-1. It also runs samba server, smb-2 which tries to share with machines on external network.

3) Mac-OS wants to access the files and folders of smb-1 through smb-2 mount.

But it can't. It sees smb-2, and mounts it, but all it gets is the share point directory with no files. Is this setup possible ? Can I share the already shared samba server files ?

Thanks…

Best Answer

While it may be possible, it certainly isn't advisable. You should really put Lunux-2 on the internal network, then put a router between that network and your external network. You can find some reasonable used Cisco gear for sale most anywhere online. Then set up a split horizon DNS config that will allow that Linux-2 box to be seen from both outside and inside. A bit more complex, yes. But much more secure and probably more reliable too!

Related Topic