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

  6. This comment has been removed by the author.

  7. Maintaining a stable connection is also very important in determination of how fast a VPN can go.

  8. Persons appreciate shopping for amazing, appealing, fascinating and from time to time attractive aromas for them selves and pertaining to others. This can be executed conveniently along with inexpensively in an on-line perfume shop. click here

  9. The article you have shared here very awesome. I really like and appreciated your work. I read deeply your article, the points you have mentioned in this article are useful scopri di piu