I have a machine behind a firewall that I would like to be accessible from the web.
I have a VPS at
example.com, and I would like traffic sent to
device.example.com to reach my device behind the firewall.
I've managed to get the firewalled device accessible through
example.com:2210 with the use of a reverse SSH tunnel. On the firewalled device, I ran
ssh -R 2210:localhost:22 email@example.com.
Now, I would like HTTP traffic sent to
device.example.com to be redirected to my firewalled device. I looked at using a SOCKS proxy, but nginx on
example.com seems to be too high of a network layer for a SOCKS proxy.
How can I redirect all HTTP traffic (or even all network traffic) to my firewalled device?