« Return to Thread: tunnelling through 2 servers

Re: tunnelling through 2 servers

by bforbes :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

I have achieved something that sounds similar to what you want. I have a web server at my workplace with a site I'm working on. I can secure shell in through the firewall easily enough to edit the site, but I also need to view the page in a browser, and the web server is not yet internet-facing. So I used ssh to get port 80 traffic through the encrypted tunnel.

Here are the hosts:
home: my home computer
firewall: the internet-facing firewall computer
server: the web-server

ssh -L 2345:server:80 bforbes@firewall

Now in the browser, I go to the url "localhost:2345", and these packets get passed through the encrypted tunnel to port 80 on the web-server, problem solved.

Hopefully this helps.

 « Return to Thread: tunnelling through 2 servers