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 install and configure socks5 Agent on Linux Server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the knowledge of "how to install and configure socks5 agent on Linux server". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Socks5

SOCKS5 is a proxy protocol that acts as an intermediary between front-end machines and server machines that communicate using TCP/IP protocol, so that front-end machines in the intranet can access servers in the Internet network, or make communication more secure. The SOCKS5 server simulates the behavior of a front end by forwarding the request from the front end to the real target server. Here, the front end communicates with the SOCKS5 through the TCP/IP protocol. The front end sends the request to the real server to the SOCKS5 server, and then the SOCKS5 server forwards the request to the real server.

If your machine has a legitimate Internet IP address, or if you use the modem on your machine to dial up the Internet and are free to communicate with any host on the Internet, you usually don't have to care about the SOCKS5 protocol. The SOCKS5 protocol is useful for machines in the internal network that need to access the outside through some machines in the network that can connect to the external Internet. The SOCKS5 server does not make any changes to the request packet itself when it sends the communication request to the real server. After receiving the response from the real server, the SOCKS5 server also forwards it to the front end as is. Therefore, SOCKS5 protocol is a kind of agent protocol, which can adapt to all kinds of TCP/IP-based application layer protocols and is almost omnipotent. Although it can not understand the internal structure of the data it forwards, it can faithfully forward the communication packet and complete the function that the protocol is supposed to accomplish.

Different from the SOCKS5 protocol, the HTTP proxy is carried out through the HTTP protocol. The HTTP proxy server software understands the internal structure of the communication packet and needs to modify and transform the communication program in the process of forwarding. Unlike the HTTP proxy protocol, SOCKS5 is actually a transport layer proxy protocol. We can imagine that if each specific application layer protocol has to design a corresponding proxy protocol expression, a specific proxy server will not be able to support so many emerging protocols. Therefore, it can be said that the emergence of SOCKS5 alleviates the difficult situation that all kinds of specific protocols need to be specially designed. However, not all software that uses the application protocol based on TCP/IP protocol can communicate unconditionally through the SOCKS5 server, and the front-end software itself is required to have the interface of SOCKS5 in order to make use of the SOCKS5 proxy server.

Installation configuration

1. Install socks 5

1.1 install dependent development libraries

The code is as follows:

# yum install pam-devel openldap-devel openssl-devel

1.2 install socks 5

The code is as follows:

# 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 modify the configuration file

The code is as follows:

# vim / etc/opt/ss5/ss5.conf

Auth 0.0.0.0Universe 0--

Change to

The code is as follows:

Auth 0.0.0.0max 0-u

Permit-0.0.0.0amp 0-0.0.0.0Universe 0--

Change to

The code is as follows:

Permit u 0.0.0.0amp 0-0.0.0.0max 0--

3. Add socket 5 user

The code is as follows:

# cat / etc/opt/ss5/ss5.passwd

# # user password

Ttlsa 123456

4. Start socket 5

The code is as follows:

# sh / etc/rc.d/init.d/ss5 start

Doneting ss5...

By default, the ss5 file does not have execution permission. If you find it troublesome to start with sh, use the following method:

The code is as follows:

# chmod uplix / etc/rc.d/init.d/ss5

# chkconfig-add ss5 / / optional

# chkconfig ss5 on / / optional

# service ss5 start

5. Check to see if it starts

The code is as follows:

# netstat-lntp | grep ss5

Tcp 0 0 0.0.0. 0 1080 0. 0. 0. 0. 0. 0.

Default port 1080

6. Test socks5

Install Proxifier, and by default all requests go to socks5. Open Baidu and type IP, and you can see that the following result is the ip address of our operation and maintenance time (ttlsa.com).

7. Common mistakes

7.1 missing PAM

The code is as follows:

Configure: error: * * Some of the headers weren't found * *

# yum-y install pam-devel

8. End

Have you installed socks5 successfully? At this time, I have not closed socks5, you can use the account password of this chapter to do a test.

This is the end of the content of "how to install and configure socks5 Agent on Linux Server". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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

Servers

  • How to manually add JAR packages downloaded to the local Maven repository

    This article mainly introduces how to download to the local JAR package to manually add to the Maven warehouse, the article is very detailed, has a certain reference value, interested friends must read it!

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

    12
    Report