Click to See Complete Forum and Search --> : Network tunneling


dankydoo
08-05-2003, 09:37 PM
Hello all, I have a qestion about how to tunnel my local http traffic through some form of connection to a remote unix server.

Here is my situation. On my college campus, there is a file server, and a specific website that I can connect to while on campus. I cannot access this remotely. I have access to a machine through SSH that is on the same remote network that CAN communicate with this website, but I cannot figure out a way to utilize this to somehow connect to this website. The website is also HTTPS so I wrote an application that will exchange two webpages, basically a proxy, but I cannot figure out the https. So if anyone has suggestions on how I can possibly setup a vpn, or even knows of some proxy/gateway I can run without administrator permissions that would be great!

Thanks to all that reply!


dankydoo

UnStable
08-05-2003, 09:48 PM
Would it be possible to just forward your local port 443 to the computer that you normally connect via SSH to? It would require you running as root on your machine.

ssh -L 443:<college-server>:443 <username>@<host>

This should cause all your HTTPS (port 443) to go to your campus computer, which should let you access on-campus connection only websites.

If you need to be able to do this without being root you can change the first number to something above 1024 (keep the 2nd number at 443) and then change your browser to use another port for HTTPS connections, but this would be more work.

-UnStable

dankydoo
08-05-2003, 09:55 PM
Excellent suggestion, and quick response, but the catch is that the web server is not the same computer that I can SSH to...

I'll give it a whirl though!

Thanks,

dankiydoo

dankydoo
08-05-2003, 10:00 PM
Update:

The remote server will not allow me to bind to port 443....

thanks,

Kevin

kam
08-05-2003, 10:58 PM
http://tldp.org/HOWTO/ppp-ssh/index.html
You can try making a VPN using PPP over SSH, but I don't know if you can set up PPP without root privileges.