Server Environment: CentOS Linux 7 (Core)
Proxy software: SS5
Download address: https://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
1. Install the system compilation package
> yum install gcc automake make
2. Install the Socket5 support package
> yum -y install pam-devel openldap-devel cyrus-sasl-devel
3. Download, compile and install SS5
> wget "https://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz" > tar -xvf ss5-3.8.9-8.tar.gz > cd ss5-3.8.9 / > make && make install
4, socket4 security shield configuration
> mv /usr/lib/ss5/mod_socks4.so /usr/lib/ss5/mod_socks4.so.bak
5, IP security configuration: only allow intranet ID
> vim /etc/opt/ss5/ss5.conf auth 172.16.5.0/24 - - permit - 172.16.5.0/24 - 0.0.0.0/0 - - - - -
6. Port configuration
> vim /etc/rc.d/init.d/ss5 daemon /usr/sbin/ss5 -t $SS5_OPTS -b 0.0.0.0:888
7. User configuration
> /etc/sysconfig/ss5 SS5_OPTS=" -u root"
8. Increase the startup permission
> chmd +x /etc/rc.d/init.d/ss5
9. Start the service
> service ss5 start