Skip to main content

Specifying a different bind-address when forwarding a connection

1 reply [Last post]
gsaj
Offline
Joined: 12/26/2009

When using a command-line OpenSSH client, it is possible to specify the bind-address along with the -L [and -R] arguments, i.e.:
ssh user@hostname -L [bind_address:]port:host:hostport

This field is optional, but can be very useful: If I have an app that needs to connect to a host that is NOT localhost/127.0.0.1, I can just create an alias on the interface:
ifconfig lo0 alias xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the alias address I want to actually make the connection to.

So I can run:
ssh user@hostname -L aliasedHostIP:8080:someServer:8080

and then connect using whatever client to aliasedHostIP:8080 instead of localhost:8080.

However, Meerkat does not seem to offer me the ability to put in this bind-address, only the bind-port [defaulting to localhost/127.0.0.1]. Any attempts to add it in front of the port lead to failure during field validation in the UI. Any chance this might get added in a future release?

0
Justin
Justin's picture
Offline
Joined: 05/28/2008
I am looking into this

I am looking into this feature for a different reason -- some folks have expressed interest in not binding to virtualized interfaces (VMware, etc.) So yes, there is a good chance it will be a future release.

Want to join the forums? Create an account or login.