I have one CentOS VM with 127 public external IP addresses. I am attempting to proxy all of the connections at once with ssh -D as follows:
ssh -f -N -D 0.0.0.0:1000 1.1.1.1
ssh -f -N -D 0.0.0.0:1001 1.1.1.2
Where 0.0.0.0 is literal and 1.1.1.1 / 1.1.1.2 correspond to one of the 127 public addresses. At first, i got permission denied. So I ran this command to add the IP:
ip address add 1.1.1.2/25 dev eth0
The operation completes successfully. However upon socks proxying through both ports 1000 and 1001, the public external IP remains the same: 1.1.1.1. This is true if i connect to the remote server via 1.1.1.1 or 1.1.1.2
How can I make SSH use all 127 public IP addresses? I do not necessarily need it in one port per ip configuration, just the ability to proxy all ips simultaneously. I searched a lot and can not find any answer to this problem, in forum posts or in the CentOS documentation. Any help appreciated.