Skip to main content

How to build socks5 proxy service on CentOS

ยท 2 min read

Today i will teach you how to install socks5 proxy service on centos?

Install dependenciesโ€‹

yum -y install gcc gcc-c++ automake make pam-devel openldap-deve

Install socks5โ€‹

download source code from


then extract the source code and install it

tar -zxvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9
make install

Start socks5 serviceโ€‹

sudo service ss5 start

Now the socks5 service is running. You can check the status of the service by

sudo service ss5 status

If you want to change the config of the socks5 service. You can edit the file /etc/opt/ss5/ss5.conf

sudo vi /etc/opt/ss5/ss5.conf

find line auth and permit.

# auth โ€“ -
# permit โ€“ โ€“ โ€“ โ€“ โ€“ โ€“ -

remove the # at the beginning of the line, and change the - to u at auth line.

auth โ€“ u
permit u โ€“ โ€“ โ€“ โ€“ โ€“ -

Add userโ€‹

sudo vi /etc/opt/ss5/ss5.passwd

add new user and password

user1 pwd1

Restart socks5 serviceโ€‹

sudo service ss5 restart

Add a system boot optionโ€‹

chkconfig --add ss5
chkconfig ss5 on
chkconfig --list | grep ss5