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


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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .