We help IT Professionals succeed at work.
Get Started

SSH tunnelling outgoing routes

Last Modified: 2013-11-16
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).

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've been googling for hours, and I know it is possible to assign routes to set a relation between the inbound IP, and the outbound IP - but I simply failed to understand the logic/rules of how to achieve it.

Anybody mind to put me out of my misery?

Thanks, Lubster
Watch Question
Distinguished Expert 2020
This problem has been solved!
Unlock 2 Answers and 21 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE