How to setup SOCKS proxy

  • Posted on February 25, 2014
  • er.amarAsked by er.amar

I’ve squid-proxy installed on my droplet and HTTP proxy works just fine. However there are some apps that ask for SOCKS proxy. Is there any standard SOCKS server that’s easy to setup (really easy)? Or sth that I can install just with an apt-get?

I have seen many blog posts using this “ssh -D 8080 root@<DO Droplet IP>” and then a “curl --socks5-hostname” actually shows that the network is using this proxy.

So, does a DO droplet come pre-installed with a SOCKS server? Or is it OpenSSH?

If the answer to above is “yes” then can I use it in my applications? If yes, running the "ssh -D … " in a terminal and then using it doesn’t seem to be comfy. So, how can I use a SOCKS server that is running on my droplet all the time and I can use with various applications - just like my squid HTTP proxy works?

tl;dr: I need to have a SOCKS proxy server on my droplet running all the time so that I can use it some applications (e.g. LimeChat) and I want simple setup and non-complex configuration (great if I can get sth Zero Config).

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

SOCKS proxies can be created without any special SOCKS proxy software if you have OpenSSH installed on your server and a SSH client with dynamic tunnelling support installed on your client computer.

Since you’re talking about LimeChat, I’m assuming you’re running Mac OS. To create a SOCKS proxy or dynamic SSH tunnel in Mac OS you’ll need to open up the Terminal (Applications >> Utilities >> Terminal)

Once there type and press enter:

ssh -D 10000 user@<IP Address or Domain of your DigitalOcean VPS>

Now, enter your password and make sure to leave the Terminal window open. You have now created a SOCKS proxy at localhost:10000. Only close this window if you wish to disable your local SOCKS proxy.

Now, you can now configure any software to proxy through your DigitalOcean VPS by telling it to use localhost:10000. Optionally, you can configure your system to use this SOCKS proxy for all outgoing connections.

To forward your IRC connections in LimeChat through your DigitalOcean VPS (warning you might get DDoS’d) edit Server Properties > Details (see LimeChat Proxy Preferences) Enter localhost for the SOCKS server and 10000 for the port.

To forward all connections in Mac OS X through your DigitalOcean VPS Go to ‘Preferences’ >> ‘Advanced’ >> ‘Settings…’ >> ‘Manual proxy configuration’. Enter localhost for the SOCKS server and 10000 for the port. (see Setting up a SOCKS proxy in Mac OS X

One caveat is that some applications cannot correctly forward DNS requests through this local SOCKS proxy (i.e. they cannot talk the SOCKS v4a or SOCKS v5 protocol.) If that’s the case you’ll can either email the upstream developer and ask for a bugfix/ SOCKS5 support, switch applications, or use an intermediate proxy client that is able to speak SOCKS 5 such as Polipo or Privoxy.

How to install 3proxy (small proxy) on ubuntu: 3Proxy tiny free proxy server is really tiny cross-platform (Win32/Win64&Unix) freeware proxy servers set. It includes HTTP proxy with HTTPS and FTP support, SOCKSv4/SOCKSv4.5/SOCKSv5 proxy (socks/socks.exe), POP3 proxy, SMTP proxy, AIM/ICQ proxy (icqpr/icqpr.exe), MSN messenger / Live messenger proxy (msnpr/msnpr.exe), FTP proxy, caching DNS proxy, TCP and UDP portmappers. You can use every proxy as a standalone program (socks, proxy, tcppm, udppm, pop3p) or use combined program (3proxy). Combined proxy additionally supports features like access control, bandwidth limiting, limiting daily/weekly/monthly traffic amount, proxy chaining, log rotation, syslog and ODBC logging, etc.