SSH tunnels with multiple outbound IPs

Posted by Peter Johansson on Server Fault See other posts from Server Fault or by Peter Johansson
Published on 2010-03-31T16:45:36Z Indexed on 2010/03/31 16:53 UTC
Read the original article Hit count: 685

Filed under:
|

I have a VPS with multiple IP addresses allocated to it (we can use debian, centos or ubuntu). I can ssh into the server using any of the IP addresses. However, any ssh tunnel I set up always uses just one of the IP addresses as its origination IP.

How do I configure the server so that when I ssh tunnel into IP1, its outbound IP is IP1. And when I ssh tunnel into IP2, its outbound IP is IP2?

© Server Fault or respective owner

Related posts about ssh-tunnel

Related posts about ssh