With ssh tunnel (-L option), is it possible to set _remote_ bind address? Say, I have a remote SSH server with two IP addresses, 1.1.1.1 and 2.2.2.2. I would like to make sure that any outgoing connections to 3.3.3.3 will be made from 2.2.2.2: ssh client ---> 1.1.1.1 ssh server 2.2.2.2 >--- 3.3.3.3 Pseudo "--remote-bind" command here to illustrate what I mean: ssh -N -L 4444:3.3.3.3:4444 --remote-bind 2.2.2.2 1.1.1.1 If not possible, are there any workarounds? -- Tomasz Chmielewski http://wpkg.org
On 04/16/2014 08:20:28 PM, Tomasz Chmielewski wrote:> With ssh tunnel (-L option), is it possible to set _remote_ bind > address?Have you looked at -R? Karl <kop at meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
Tomasz Chmielewski wrote:> With ssh tunnel (-L option), is it possible to set _remote_ bind > address?No.> If not possible, are there any workarounds?Routing table on the server. //Peter
On Thu, 17 Apr 2014, Tomasz Chmielewski wrote:> With ssh tunnel (-L option), is it possible to set _remote_ bind > address?Unfortunately the SSH protocol doesn't have any way to express a request to bind an outgoing forwarded TCP connection to a particular host/port. -d