Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My question is simple:

  • is it possible to transfer all net traffic through an ssh-tunnel such that a user (i.e. me) does not have to change any configuration in the programs (e.g. firefox) accessing the internet. (I know that it is possible for VPN)

  • how is it done (I have an apple computer with unix tools)

If the question is duplicate (I did not find any matching older question) please direct me to the answer.

share|improve this question

migrated from stackoverflow.com Apr 5 '11 at 9:52

This question came from our site for professional and enthusiast programmers.

    
So if you know that it is possible for VPN, why don't you use VPN? –  Daniel Hilgarth Apr 5 '11 at 7:00
    
It is NOT possible without VPN or something similar, because you need an endpoint you can connect to that also supports the SSH tunnel. –  Daniel Hilgarth Apr 5 '11 at 7:01
    
Which server are you talking about? –  Daniel Hilgarth Apr 5 '11 at 7:03
    
VPN support can be achieved pretty easily with OpenVPN... –  Daniel Hilgarth Apr 5 '11 at 7:04
1  
@Fabian: Your latest comment makes things clearer. Are you only interested in redirecting web traffic like HTTP, HTTPS or FTP? If so, you could install a local proxy on your computer, configure firefox to use that proxy and make the proxy redirect everything to that one port... –  Daniel Hilgarth Apr 5 '11 at 7:09

2 Answers 2

up vote 1 down vote accepted

There is this : Setting up a Layer 3 tunneling VPN with using OpenSSH and there is this :OpenSSH: The Poor Man's SOCKS Proxy

Both can be used to transport all your traffic over the SSH tunnel, but you will always need to do something on both ends to get it working.

share|improve this answer

On my system, all my web antics are done using Firefox (web sites) and Thunderbird (e-mail). I know you asked how to achieve SSH tunnel without setting preferences of the software using it but you have to do that once at the start but once it is done, you are set.

So I set up SSH using OpenSSH and then just configured Firefox and Thunderbird to use my SSH tunnel via a SOCKS5 proxy via the system settings of each program. That way, I do not suffer any degradation in speed (whereas my 30Mb connection fell to about 300K with a Free VPN service but it stays at 30Mb this way) and it is just applied every time I use either program without doing anything other than starting the SSH tunnel at logon.

I wrote up how to do it in detail here on my blog if anybody is interested

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.