Configuring SOCKS 5 Agent under Linux

Source: Internet
Author: User

background : Recently the development department needs a proxy server to simulate the customer site environment. Well, then choose Socks5.

Environment : Centos6.6 X64

Socks Introduction:

What is Socks: the firewall Security session Translation 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 "mediation layer (Shim-layer)" between the application layer and the transport layer, and therefore does not provide a network Layer gateway service such as transmitting ICMP information. SOCKS5 is an agent protocol that acts as a mediator between front-end machines and server machines that use TCP/IP protocol communication, making the front-end machines in the intranet more accessible to servers in the Internet network or making communication more secure. The SOCKS5 server simulates a front-end behavior by forwarding a front-end request to a true target server. Here, the front and SOCKS5 are also communicated through the TCP/IP protocol, and the front end sends a request to the SOCKS5 server that was originally sent to the real server, and the SOCKS5 server forwards the request to the real server.

The installation configuration steps are as follows:

1. Installing Socks 5
1.1 Installing a dependent development library

# yum Install pam-devel openldap-devel openssl-devel

1.2 Installing 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 Install



2. Socks 5 Configuration


2.1 Modifying a configuration file

# Vim/etc/opt/ss5/ss5.confauth 0.0.0.0/0–-Change to auth 0.0.0.0/0–upermit–0.0.0.0/0–0.0.0.0/0––––-to permit u 0.0.0 .0/0–0.0.0.0/0––––-


3. Add Socket 5 User

# cat/etc/opt/ss5/ss5.passwd# #用户 Password Test 123456

4. Start Socket 5

# SH/ETC/RC.D/INIT.D/SS5 startdoneting ss5 ... By default the Ss5 file does not have execute permissions, if you feel the use of sh to start trouble, then the following method: # chmod u+x/etc/rc.d/init.d/ss5# chkconfig--add ss5//Optional # Chkconfig SS5 on//optional # s Ervice SS5 Start

5. See if it starts

# NETSTAT-LNTP | grep ss5tcp 0 0 0.0.0.0:1080 0.0.0.0:* LISTEN 16724/ss5 Default Port 1080

6. Test SOCKS5
Install Proxifier, by default all requests go socks5. Open Baidu, enter IP,

Software: http://down.51cto.com/data/2238033


7. Common Errors

7.1 Missing PAMCONFIGURE:ERROR: * * * Some of the headers weren ' t found ***# yum-y install Pam-devel 7.2 configure:error: * * S Ome of the headers weren ' t found ***# yum-y install Pam-devel


8. Expansion

Open QQ, directly through the agent login, see here, you are not suddenly think of what .....

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/A9/wKioL1fGqavBciz1AABaC5BTJUI365.jpg-wh_500x0-wm_3 -wmp_4-s_819144785.jpg "title=" 27.jpg "alt=" Wkiol1fgqavbciz1aabac5btjui365.jpg-wh_50 "/>


This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://pizibaidu.blog.51cto.com/1361909/1844871

Configuring SOCKS 5 Agent under Linux

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.