Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Socks5 proxy server in Linux

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, I would like to share with you how to deploy the Socks5 proxy server in Linux. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

SOCKS5 is a proxy protocol, which plays an intermediary role between the front-end machine and the server that communicate with the TCP/IP protocol. The front-end machine of the internal network can access the Internet server, which makes the communication more secure.

1. First, to compile and install SS5, you need to install some dependent components.

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

2. Go to http://ss5.sourceforge.net/ to download the source code of the latest version of SS5.

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

3. Start the compilation and installation after decompression:

Tar zxvf. / ss5-3.8.9-8.tar.gz cd ss5-3.8.9. / configure make make install

4. Let SS5 start with the system.

Chmod + x / etc/init.d/ss5 chkconfig-add ss5 chkconfig-level 345 ss5 on

5. Find the auth and permit lines in ss5.conf and modify them according to the following format

6. Ss5 uses port 1080 by default and allows anyone to use it. If you want to modify the default port, please modify vi / etc/sysconfig/ss5

In the / etc/sysconfig/ss5 file, add the following line of command, with the parameter after-b representing the listening ip address and port number # Add startup option here SS5_OPTS= "- u root-b 0.0.0.0Add startup option here SS5_OPTS= 8080"

7. Start ss5 service ss5 start

8. Be sure to configure the security group to open the port for SS5 listening

9. Use QQ agent to test:

Postscript: if you need to configure access permissions, please modify them as follows:

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

Find the auth and permit lines in ss5.conf and modify them according to the following format

Auth 0.0.0.0max 0-u permit u 0.0.0.0max 0-0.0.0.0max 0-

B. Set the user name and password vi / etc/opt/ss5/ss5.passwd one account per line, separated by a space between the user name and password, for example:

User1 123 user2 234

C. Restart the service to take effect

Service ss5 restart

These are all the contents of the article "how to deploy a Socks5 proxy server in Linux". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report