ssh tunnel - can I set remote bind address?

Tomasz Chmielewski mangoo at wpkg.org
Thu Apr 17 11:20:28 EST 2014


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




More information about the openssh-unix-dev mailing list