Linux – Setting up dante socks server

dantelinuxPROXYvps

I want to tunnel all my internet traffic through my vps, so I'm trying to install a proxy server.

However: I can't seem to browse the internet through Dante. I get the ERR_EMPTY_RESPONSE error.

This is my config:

logoutput: stderr /home/user/dantelog
internal: eth1 port=1080
external: eth1

method: username pam

user.privileged: proxy
user.notprivileged: nobody
user.libwrap: nobody

client pass {
       from: 10.0.0.0/8 port 1-65535 to: 0.0.0.0/0
}

Do I really have to run 2 proxy servers: one for http and one for socks?
or is there something else I can do?

Best Answer

The client pass section has 10.0.0.0/8 as the source network to permit. This is private ip space. If you are trying to connect across the internet to the proxy, you will need to change this to whatever public ip address you NAT to.

Also your method statement is forcing authentication. None of the major browsers support SOCKS5 authentication. Change the config as below:

method: username pam none

client pass {
from: port 1-65535 to: 0.0.0.0/0
}

client block {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

This will allow unauthenticated access from your IP to the proxy while explicitly blocking all others.

Also instead of setting up a Dante proxy you may want to use OpenSSH or Putty (depending on your OS platform) to create a ssh tunnel and proxy over that. Both OpenSSH and Putty can create socks proxies on the loopbak interface of your client. You point your applications to it and the traffic is routed across the ssh connection to the server and out. No additonal proxy needed on the server. Directions can be found here and here.

Related Topic