Sunday, January 18, 2009

Create your own socks5 proxy

Do you know that you can create your own socks5 proxy with just one command:

ssh -f -N -D 5050 "USERNAME"

-f -N option is just to run ssh in background, the important option is -D.

from FreeBSD SSH(1) man:

-D [bind_address:]port

Specifies a local "dynamic" application-level port forwarding. This works by allocating a socket to listen to port on the local side.

For windows users they can do it with putty

C:\>putty.exe -ssh "USERNAME" -pw "PASSWORD" -P 22 -D 5050

what we did is that we connect to a ssh server (could by your remote linux or unix server, or a free shell account you have) and give it option to create a tunnel with port forwarding for port 5050

if you set your browser to use socks5 proxy with the address and port 5050, the traffic will be forwarded to the tunnel and you will browse the internet through the remote ssh server.

to disable port forwarding in your server, edit /etc/ssh/sshd_config
and set "AllowTcpForwarding yes" to "no"



  1. has another good post about this as well

  2. Can u help me to create lotsa socks5? willing to pay? what do U need? infect mashines to gain access etc?? thx!


  3. you can rent a dedicated server from any good data center and install socks5 on it or you can use this method also, or you can create a free shell account there is many free shell accounts that doesn't block ssh port forwarding.

  4. I am very thankful to the author to write this fruitful information.It is worth sharing for other users.Thanks once again
    access 1337x in UK

  5. When you look through the proxy postings, you can discover numerous such locales offering unblocked get to. vpn ip mexico