ssh tunnel
Essentially I want to set up a VPN. There is a lot of information online, which tends to get vague when I need hard details.
So, this is what I want to do. On my remote computer I want to tunnel to my server, which then transfers to the internet - I'm only interested in http traffic here. In other words, on my browser, on the remote machine, if I attempt to connect to linuxquestions.org, this will be transferred to my server which will transfer the information. In the same way as a 'proper' VPN, the request will appear to have come from the server. I think many of the examples out there are of secure connections to the server itself, and not onwards to the net. I don't just want to connect to a single site - another common example out there, but to have total freedom. One complication, I would prefer to connect to port 3128, rather than port 80, in order to use the squid cache. Some articles suggest local tunneling and others dynamic. Cheers Paul |
Sorry I'd better add that ssh is up and working.
|
(Shrug ...) What I'd do, instead, is to just "set up a VPN." :)
Yes, you can tunnel using ssh. But then, you always have to "think about it." Always have to make sure that what you're sending is really going through that tunnel. Always have to be sure that your apps know how to do it, and that they do "do it" properly. With VPN, you have none of these concerns: certain ranges of IP-addresses and port-numbers go through the tunnel, automagically. You can forget that the tunnel is there. |
SSH tunnel to your server
Paul,
The command to tunnel browser traffic to your server is this: Code:
[user ~]$ ssh -D 8080 yourusername@server.atyourhome.com |
Thanks for that, is there anything I need to do at the server end? Other than the normal ssh stuff?
|
That's a really useful site, and I hadn't seen it before. Thanks very much - now to find out what all those switches do to ssh!
|
Don't know what your normal ssh stuff is, but consider doing this:
Code:
vi /etc/ssh/sshd_config Code:
#LoginGraceTime 2m Code:
/etc/init.d/sshd restart Code:
service sshd restart |
All times are GMT -5. The time now is 06:57 AM. |