Linux Build SOCKS5 Proxy Server

Source: Internet
Author: User

The following author will use SS5 on the Amazon Cloud Server Linux to build a SOCKS5 Proxy server, the process is as follows:

1, first, the compilation installs the SS5 to install some dependent components first

Yum-y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel

2, to the official website http://ss5.sourceforge.net/Download SS5 The latest version of the source code

wget https://ncu.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz

3, after the decompression began to compile the installation:

Tar zxvf./ss5-3.8.9-8.tar.gz
CD ss5-3.8.9
./configure
Make
Make install

4, let SS5 with the system to start

chmod +X/ETC/INIT.D/SS5
Chkconfig--add SS5
Chkconfig--level 345 SS5 on

5, found in the ss5.conf auth and permit two lines, according to the following format to modify

6, SS5 default use 1080 port, and allow anyone to use, if you want to modify the default port, please modify the VI/ETC/SYSCONFIG/SS5

In/etc/sysconfig/ss5 this file, add the following line of command, and the parameter after-B represents the IP address and port number of the listener
# ADD startup option here
Ss5_opts= "-U root-b 0.0.0.0:8080"

7. Start SS5
Service SS5 Start

8, must remember to configure the security group Open SS5 monitoring port

9, using the QQ Agent test:

PostScript: If you need to configure access rights, please modify as follows:

A, open the user name password authentication mechanism vi/etc/opt/ss5/ss5.conf

Locate auth and permit in ss5.conf, and modify them in the following format

Auth 0.0.0.0/0-U
Permit U 0.0.0.0/0-0.0.0.0/0-----


B. Set user name and password vi/etc/opt/ss5/ss5.passwd
One line of account, between the user name and password with a space interval, for example:

User1 123
User2 234

C, restart the service to take effect

Service SS5 Restart

Linux Build SOCKS5 Proxy Server

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.