I have a server on an internal network that publishes web pages. I need access to these web pages from random clients on the Internet. The problem is that I don't have control of the firewall this server is behind. On the other hand, I do have access to a public server on an entirely different network. (OSes are flexible: I have access to both Windows and Linux servers on both sides.)
Here's what I'm sort of looking to do:
That is:
- Client hits a port on my public server.
- That port is forwarded (tunneled?) to the internal network.
- Web page is served back to the client.
SSH tunneling doesn't seem quite right. Would a site-to-site VPN could do the trick? Is there a simpler option?
Best Answer
OK, I'll make this an answer then. I assume the internal server you control (ISIC) is allowed outbound ssh to the public server you control (PSIC). From ISIC ssh to PSIC like so:
This causes ssh to listen on port 80 of PSIC because of
*:80
and then forward that to port 80 on ISIC because oflocalhost:80
. It functions exactly like X forwarding.