I'm doing the following:
% autossh -i YYY.pem XXX@SERVER -N -R 90:localhost:9000 -o ServerAliveInterval=30
to forward a server port from the local machine to the public machine.
But connections are originating from
127.0.0.1 on the local machine now. How do I forward the port so that connections appear to originate from their true IP?
For example, I have a echo listener that sits on port 9000. Whenever it gets a connection it prints the IP of the origin. Right now, it prints out
127.0.0.1 over and over.