How to encrypt SOCKS5 traffic?

4

1

When I use my laptop in open Wi-Fi networks I want to tunnel all my TCP/IP traffic through a SOCKS5 server running on my VPS.

I'm using Windows 7 and Proxifier in order to tunnel ALL traffic through the VPS. Now unfortunately SOCKS5 is unencrypted and I want to have encryption. So my question is how can I encrypt the traffic to the SOCKS5 server? Maybe in combination with SSH?

I know I could just make a SSH tunnel, but this way I couldn't use a tool like Proxifier, that tunnels ALL traffic. With SSH tunnel I would have to tell every application to use SSH tunnel.

JohnnyFromBF

Posted 2011-10-24T08:11:31.803

Reputation: 4 298

That's true but there was no solution posted. – JohnnyFromBF – 2011-10-24T11:25:53.553

Solution is same as answer below. Or do you need screenshots how to make dynamic forwarding using ssh/putty? – Eir Nym – 2011-10-24T11:29:23.723

Answers

2

Tell Proxifier to use your SSH tunnel as an upstream SOCKS proxy:

your system <--> Proxifier <--> SSH dynamic forwarding (SOCKS) <--> VPS

To make a SOCKS tunnel through SSH, you can use its "dynamic forwarding" feature:

ssh you@your.vps.example.com -D 12345

which opens the SSH connection, and then opens a local port 12345 to operate as a SOCKS proxy, forwarding its traffic through the remote VPS (the same functionality is present in Windows SSH clients, e.g. PuTTY).

Piskvor left the building

Posted 2011-10-24T08:11:31.803

Reputation: 2 277

Can you tell me where I can change these settings in Proxifier. I have set up a ssh tunnel now, but don't know what to do in Proxifier. – JohnnyFromBF – 2011-10-24T11:24:01.073

@Ian: See the documentation: http://www.proxifier.com/documentation/v3/proxy.htm - set localhost as proxy address, 12345 as port, SOCKS as proxy type (should work with 4 or 5).

– Piskvor left the building – 2011-10-24T11:30:01.473