[Bug 1334] New: Bind tunnels to given interface on the server

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 6 21:57:45 EST 2007


           Summary: Bind tunnels to given interface on the server
           Product: Portable OpenSSH
           Version: 4.6p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: sshd
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: contact+dev at gilouweb.com
                CC: contact+dev at gilouweb.com

It is actually possible to bind any outgoing ssh connection using -b in
order to choose which interface to use on the client if you have more
than one.

Could we have the same behaviour for tunnels? Channel opening can
happen on a multi-homed server, and I've seen no way to choose which IP
ssh should use (on the _server_, the IP used for "outgoing" connection,
not the bind_address for the interface used by clients to connect to

Let me be clearer here, let's say I'm on a client, and I have a server
which has 2 ips and I want to open a dynamic
tunnel (or a local forward, whatever) from this server using ssh -D
1080: (or any other syntax or config parameter), so as to
open a dynamic tunnel that would actually use the as
interface for outgoing connection.

This mainly looks like adding a parameter somewhere and call bind()
with it before actually open()ing the socket, but I'm not sure here,
and it would require a change of the configuration parameters. I don't
think SOCKS protocol itself allows for such a thing, and I would like
not to have to use a separate SOCKS server that has this feature to do
that (as this could also be used for -L tunnels, and well, because it's
better if SSH supports it natively IMHO).

Any thought?

Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list