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 https://www.inet.no/dante/sslfiles/dante-1.4.2/tgz-prod.dante-1.4.2-rhel72-amd64-64bit-gcc.tar.gz | 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: 192.168.100.0/24 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
[Unit]
Description=Dante SOCKS server
After=network.target
[Service]
Type=simple
ExecStart=/opt/dante/sbin/sockd -D -f/opt/dante/etc/sockd.conf -p/opt/dante/run/sockd.pid
PIDFile=/opt/dante/run/sockd.pid
User=dante
[Install]
WantedBy=multi-user.target
reload the systemd configuration
systemctl daemon-reload
start the server
systemctl start dante