I have a VPS with multiple IP addresses allocated to it (we can use debian, centos or ubuntu). I can ssh tunnel through the server using any of the IP addresses. However, any ssh tunnel I set up always shows just one IP address to the final destination site.
me --ssh to IP1 --> |server|----> http:// whatismyip.com (displays IP1)
me --ssh to IP2--> |server|----> http:// whatismyip.com (displays IP1)
me --ssh to IP3--> |server|----> http:// whatismyip.com (displays IP1)
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?
What I want: me --ssh to IP1 --> |server|----> http:// whatismyip.com (displays IP1)
me --ssh to IP2--> |server|----> http:// whatismyip.com (displays IP2)
The IPs are in different subnets (actually different Class As entirely).