Installing Dante SOCKS proxy server on CentOS 7

create a user account for running the server

useradd -M dante

download the latest binary version of the server and place it into the /opt/dante directory

mkdir /tmp/dante
curl -L -L | tar xz -C /tmp/dante
mv /tmp/dante/usr /opt/dante
rmdir /tmp/dante

create the /opt/dante/etc directory for storing the configuration

mkdir /opt/dante/etc

create the /opt/dante/etc/sockd.conf configuration file

logoutput: syslog
internal: eth0 port=1080
external: eth0
clientmethod: none
socksmethod: none
user.privileged: dante
user.unprivileged: dante

client pass { from: port 1-65535 to: eth0 }

socks block { from: 0/0 to: lo }
socks pass { from: 0/0 to: 0/0 }

create the /opt/dante/run directory for storing the PID file

mkdir /opt/dante/run

change owners and permissions of the /opt/dante directory

chown -R dante:dante /opt/dante
find /opt/dante -type d -exec chmod 700 {} \;
find /opt/dante -type f -exec chmod 600 {} \;
chmod 700 /opt/dante/bin/*
chmod 700 /opt/dante/sbin/*

add the man pages path to the /etc/man_db.conf file

MANDATORY_MANPATH	/opt/dante/share/man

create the /usr/lib/systemd/system/dante.service unit file

Description=Dante SOCKS server

ExecStart=/opt/dante/sbin/sockd -D -f/opt/dante/etc/sockd.conf -p/opt/dante/run/


reload the systemd configuration

systemctl daemon-reload

start the server

systemctl start dante

Leave a Reply