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 https://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
wget https://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
then extract the source code and install it
tar -zxvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9
./configure
make
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 0.0.0.0/0 โ -
# permit โ 0.0.0.0/0 โ 0.0.0.0/0 โ โ โ โ -
remove the #
at the beginning of the line, and change the -
to u
at auth line.
auth 0.0.0.0/0 โ u
permit u 0.0.0.0/0 โ 0.0.0.0/0 โ โ โ โ -
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