I have an Apache web server running on a local machine through a ssh reverse 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 want to know the IP addresses of remote clients connected to gateway_machine. However, my local Apache server sees all the traffic coming from the gateway_machine IP address.
My question is: is there a way to configure the ssh server on gateway_machine so that it sends all traffic to local_machine with valid remote IP addresses?
user1545642
source share