Install socks5 in CentOS

Source: Internet
Author: User
What is SOCKS: Socks: protocolforsessionstraversalw.ssfirewallsecurely
What is SOCKS: Socks: Protocol for sessions traversal firewall SS firewall securely SOCKS provides a framework, it makes it easier and safer for client/server applications in TCP and UDP domains to use the services provided by the network firewall. In terms of concept, this protocol is a "shim-layer" between the application layer and the transport layer. Therefore, it does not provide network-layer gateway services such as transmitting ICMP information. 1.1 install view sourceprint? # Yum install pam-devel openldap-devel openssl-devel1.2 install 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 install2.1 modify the 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 to permit u 0.0.0.0/0-0.0.0.0/0---203 Row 3. add a socket 5 user # cat/etc/opt/ss5/ss5.passwd # User 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. check whether the instance is started # netstat-lntp | grep ss5tcp 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 pros5 to install Proxifier, by default, all requests go through socks58 and the default port is 1080. you can modify the default port vi/etc/init. d/ss5 daemon/usr/sbin/ss5-t $ SS5_OPTS-B 0.0.0.0: 10088 so that the default port is changed to 10088.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.