I am trying to setup a transparent proxy between eth0 and lo,
The reason being during DNS propagation services are being tunneled over a SSH connection between the old and new servers, on the "old" server this is fine for anything running locally connecting to localhost:
However for anything hitting the external address of the "old server" the service is not forward as the ssh tunnel only listens for connections to localhost (lo).
Old server --> SSH Tunnel --> New server
What needs to happen
Client connection (i.e. tcp 8081) --> Old Server --> SSH Tunnel --> New server
I am trying multiple variations on ip table rules, setting
-L <service port>:0.0.0.0:<service port> does not listen on all interfaces only on lo.
The solution must come from iptables alone, there is no time to deploy squid / another proxy service.
So in summary.
- Assume tcp 8081, is tunneled over SSH connection
- I need this to work from the eth0 bound address
Thanks In Advance