What is socks: Firewall security Session Conversion protocol (Socks: protocol for sessions traversal across firewall securely) SOCKS Protocol provides a framework for clients in TCP and UDP domains Server applications make it easier and safer to use the services provided by the network firewall. This protocol is conceptually a "intermediary layer (Shim-layer)" between the application and transport layers, and therefore does not provide a network Layer gateway service such as delivery ICMP information .1.1 installation relies on the development library view sourceprint?# yum install pam-devel openldap-devel openssl-devel1.2 Installation Socks 5# wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz?r=&ts= 1396802581&use_mirror=cznic# tar -xzvf ss5-3.8.9-8.tar.gz# cd ss5-3.8.9# ./ configure# make# make install2.1 Modifying a configuration file # vim /etc/opt/ss5/ss5.confauth 0.0.0.0/0 – - 87 Line changed to auth 0.0.0.0/0 – upermit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -changed into permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – - 203 line 3. Add socket 5 user # cat /etc/ opt/ss5/ss5.passwd# #用户 password username 1234564. start socket 5# sh /etc /rc.d/init.d/ss5 startdoneting ss5...# chmod u+x /etc/rc.d/init.d/ss5# chkconfig --add ss5 //Optional # chkconfig ss5 on //Optional # service ss5 Start5. See if # netstat -lntp | grep ss5tcp is started 0 0 0.0.0.0:1080 0.0.0.0:* listen 14262/ss56. Firewall configuration #vi /etc/sysconfig/ Iptables-a input -m state --state new -m tcp -p tcp --dport 1080 -j ACCEPT7. Test SOCKS5 Install Proxifier, by default all requests Go socks58, the default port is 1080, you can modify the default port vi / Etc/init.d/ss5 daemon /usr/sbin/ss5 -t $SS 5_opts -b 0.0.0.0:10088 This will change the default port to 10088.
This article from "Leboit" blog, declined reprint!
Installation of SS5 under CentOS