Converting 'ssh -R' to 'ssh -w'
I use ssh remote port forwarding like this:
ssh -R $PUBLIC_IP:80:127.0.0.1:80
The local server on 127.0.0.1:80 sees connections as coming from
127.0.0.1. Is there any way at all, hacky or not, to make the ssh client
give the original IP address (that connected to $PUBLIC_IP:80) to the
local server?
I could run the local server on 192.168.1.x instead of 127.0.0.1 if it
makes a difference.
Edit: Converting this to a 'ssh -w' tun VPN would be something I'm looking
for if it helps.
No comments:
Post a Comment