Hi,
i am using a ssh connection from my laptop to a gateway machine. I use
ssh tunneling to create a secure tunnel and use the gateway as socks 5
proxy:
ssh -D 1080
root@gateway.machine
This works fine, but gateway.machine has 2 public interfaces with 2
dsl lines. And I would like to selectively use one of them for the
proxying (not for the ssh tunnel connection, which is within the LAN).
By default always the first public interface is used for my public
traffic. I am looking for a way to use the second interface which is
connected to the other line.
How can this be done with sshd? Both are Debian Linux machines.
I searched a lot, read man pages of sshd and ssh and asked already in
a forum, but for this specific question I could not find any answer so
far. (Using a "bind address" for the -D option or using "GatewayPorts"
or "ListenAddress" in sshd_config does not seem a solution for this)
I can provide more information if necessary.
Regards,
Ingo