Create a SOCKS 5 Proxy on Top of a SSH Tunnel on Linux

Posted on September 4, 2018 at 12:23 am

Just get a cheap VPS from DigitalOcean or any other company.

Then login as root to the VPS and type:

ssh -N -C -q -D VPS_IP:SOCKS5_PORT -p SSH_PORT localhost

Here is an example:

ssh -N -C -q -D -p 22 localhost

Explaination fo parameters:

-C  Requests gzip compression of all data
-T  Disable pseudo-tty allocation
-N  Do not execute a remote command. This is useful for just forwarding ports.
-f  Requests ssh to go to background just before command execution.
-n  Redirects stdin from /dev/null (actually, prevents reading from stdin).
-q  Quiet mode. Causes most warning and diagnostic messages to be suppressed.

You can use the SSH tunnel (SOCKS5) on Firefox, Chrome, etc.

So you can browse Internet anonymously hiding your real IP address.

You can also use the VPS IP as a static IP for logins.

Beaware, if you use it unhetically then the VPS reseller may block the VPS.

More information:

Receive updates via email

Other Posts

Updated Posts