how to get remote IP addresses from reverse ssh tunnel

Viewed 3466

I have an Apache webserver running on a local machine through reverse ssh tunnel, i.e.:

ssh -R *:80:local_machine:8080 username@gateway_machine

In other words, all traffic from port 80 on gateway_machine is sent to port 8080 on local_machine.

For monitoring purposes, I wish to know IP addresses of the remote clients connected to gateway_machine. However my local Apache server sees all traffic coming from the IP address of gateway_machine.

My question: Is there any way to setup ssh server running on gateway_machine such that it sends all traffic to local_machine with actual remote IP addresses ?

1 Answers
Related