We help IT Professionals succeed at work.
Get Started

SSH tunnelling outgoing routes

1,254 Views
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: 1.1.1.1 (venet0:0) , 1.1.1.2 (venet0:1) , 1.1.1.3 (venet0:2).

When I tunnel using 1.1.1.1, outgoing IP for the public is: 1.1.1.1. But when I tunnel using 1.1.1.2 or 1.1.1.3 , the outgoing IP for the public is still 1.1.1.1.

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
Comment
Watch Question
CERTIFIED EXPERT
Distinguished Expert 2020
Commented:
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