Create SOCKS5 server

Distribution used: Debian 6 (squeeze). Unfortunately Debian 5 (lenny) doesn’t provide dante server

In the previous post, I’ve shown you on how to create your own SOCKS5 server on localhost (on your Windows PC) using XShell 4 and a SSH server.

Now, I’ll guide you on how to create a more permanent SOCKS5 proxy server using your Debian 6 squeeze server. No need to logged-in to your SSH server each time you want to use SOCKS5 server. We will use Dante server.

Install dante-server

edit dante server configuration file (/etc/danted.conf). This is the minimum dante server configuration that I often use:

Done. Start dante server.

A bit explanation about the configuration: 

  • watch for line #8. you must specify in what port number will your SOCKS5 server run and in which ethernet card the server will listen. You can change this “eth0” with your server IP address. Note: if you have firewall activated, don’t forget to allow traffic from the SOCKS5 proxy port as you configured here.
  • As for line #12, the value should the same as line #8, either ethernet card name or your server IP address.
  • Line #26, change “” with your own (public) IP address. I specified IP address range here because I have dynamic IP address.
  • Line #48, the same as line #26. Put your (public) IP address here.



Test your SOCKS5 proxy server. Use it as SOCKS5 proxy in Firefox and access . Check if your IP address is already detected as the same as server’s IP.

Leave a comment ?


  1. mohamed laouane

    :~# apt-get install date-server
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package date-server

    • Oops sorry, it should be dante-server

      • mohamed laouane

        *****:~# apt-get install dante-server
        Reading package lists… Done
        Building dependency tree
        Reading state information… Done
        E: Couldn’t find package dante-server

        • That’s because you’re running Debian 5 (Lenny)
          dante-server is available in Debian 4 (etch) and Debian 6 (squeeze)

  2. it’s works very well , thank you 😛

  3. hai brother. Unfortunately i cant create a socks5 server. do u can craete it for me and send it to my email plz. God bless your father.Desperately need a socks5 . tnx again

  4. The problem is, i have a lunix dedicated server and some additional ips.

    I would like these additional ips to act as a socks-5 proxy on manually assigned ports.

    To further explain this, an example would be, i have a server and these 5 additional ips
    ip1 –
    ip2 –
    ip3 –
    ip4 –
    ip5 –

    Now i want to manually assign/open random ports to these ips example

    ip1 –
    ip2 –
    ip3 –
    ip4 –
    ip5 –

    A) dont know how to do this ? so need help

    B) and lastly, i would like these additional ips to be able to take UDP/TCP traffic. Again dont know how to do this and your assistance / guidance.


  5. Hmm how can i make user & password authentication? I want to create a user and pass so just ones who know user,pass can use socks but i dont have any idea how to do that. Pls help me

  6. linux newbie

    Mas, kalau server kita di HTTP flood sama bot net (bisa di atasi sama iptables dan fail2ban *kalau tanpa 2 itu vps langsung down) sudah 1 mingguan ini, cara ngatasin gimana biar ga nyerang terus.Selama firewall ON, kuat sih ngatasin bot net, cuman kayak nyamuk …


  7. I have 3-4 extra IPs with my VPS.I would like to use them also as proxies.

    But with the setting given in the article I can use only the main IP of the VPS as the proxy.

    I am using debian 6.

    • I tried to setup it on my server it gives an error:
      “Connection refused”

      and the port is allowed from firewall.

      • I have the same issue…

        Followed instructions above, it looks like the dante-server installed, I configured it, and then started the service. I then edited /etc/csf/csf.conf to allow the new port, closed it, and did csf -r to reload changes.

        After all that, still not able to connect to proxy using browser…

  8. php: detecting visitor’s real IP address - pingback on 2014/09/05 at 18:26

Leave a Reply

Trackbacks and Pingbacks:

%d bloggers like this: