Outgoing IP of forwarded requests

Bob Proulx bob at proulx.com
Sun Jul 4 07:07:07 EST 2010

k k wrote:
> I have a linux server with 3 public IPs, and I use SSH tunnelling to
> connect to each of them.  Let's call them: (venet0:0),
> (venet0:1), (venet0:2).

Okay.  A server with multiple public IP addresses.  A common

> When I tunnel using, outgoing IP for the public is:
> But when I tunnel using or, the outgoing IP for the
> public is still

I don't understand what you are trying to say here.  What is the
"outgoing IP"?  Are you saying that when you ssh to that the
TCP IP packets returning come from  That is what your words
say when I read them.  And that doesn't make any sense.  Because if so
then I suspect that the connection would fail and you wouldn't be able
to complete the connection.  Therefore you must be meaning something
else but I can't guess what that would be.

> According to the manuals of ss5 (SOCKS5 Server) and squid (HTTP
> Server) - they're both capable of using the outgoing IP while
> specifying the inbound IP route relation.

Huh?  What?  Huh?  Of course ssh includes a -D option to support socks
port forwarding.  But what does squid have to do with it?  Is this
related to your problem?  What problem are you having?

> openssh can't do it? nor there's a indirect workaround to achieve
> said behavior?

Can't do what?  What are you trying to do?  Please just show us the
command that you are running and tell us what it is doing.


More information about the openssh-unix-dev mailing list