7

This might be a weird question, but can you have Samba "proxy" for another server? IE if mount a share on \\server1\someshare the server transparently proxies it to \\otherserver\randomshare.

Note that redirection will not work since \\otherserver is not directly accessible. The servers run Ubuntu Server 12.04.

Is there any way to do this?

1 Answer 1

6

If you're allowed to have \\othershare\randomshare permanently mounted on server1, mount that with smbfs and then configure Samba to serve it as someshare. Not really proxying, but it will give you the behavior asked for in the question.

Alternatively, you could turn off Samba on server1, and instead use an ssh tunnel that forwards traffic on port 139 to otherserver. See Setting up Samba over SSH Tunnel HOWTO.

4
  • Is that really better than re-exporting an NFS mount? Commented May 8, 2012 at 19:09
  • 1
    No, but you never indicated that otherserver was serving via NFS. Commented May 8, 2012 at 19:12
  • Its my current solution. I was wondering if there was a better one that only uses samba Commented May 8, 2012 at 20:00
  • I see. Edited to add another possible solution using ssh. Commented May 8, 2012 at 20:42

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.