3proxy Install and configure the network agent process

Source: Internet
Author: User

3proxy Install and configure the network agent process

3proxyOfficial website in: https://3proxy.ru/, 3proxy can be used to set up a variety of protocol agents, http socks such as, and so on, about 3proxy detailed introduction can be found through the search to understand, here does not say.

installation

3proxyThe code is hosted on the github above address is: Https://github.com/z3APA3A/3proxy
The installation steps are as follows:

    1. git clone https://github.com/z3APA3A/3proxy.gitDirectly by git copying the code locally ( Note that I am using the Linux operating system CentOS).
    2. cd 3proxy, go to 3proxy folder
    3. make -f Makefile.Linux, compile 3proxy , if your system does not gcc , you need to install first gcc .
    4. make -f Makefile.Linux install, install 3proxy .

At this point, you can use 3proxy the software.
Here's an episode where you want to 3proxy view help with an option when you use the command, -h but it prompts you to:

Please read the license agreement in ' copying ' file.
Without accepting license Agreement

But I did not find the certificate which place can 同意 it. However, this does not affect our use.

Configuration

3proxyConfiguration can refer to the official website and configuration cases, with the configuration file, we 3proxy path/to/3proxy.cfg 3proxy can directly use the agent by opening.
Of course, not to spit, it's documentation and configuration of the case is very bad, for example, it can be used in the configuration allow * * * * , but I do not know what the 4 is the difference between the two * , so to check the document, but I can't find the relevant information. 3proxyThe author is a Russian, there is a Russian version in the document, maybe there? I spent more time on the first configuration. Of course, I now provide a case to briefly explain, it will be easier to understand a little.

#!/usr/local/bin/3proxyTimeouts1 5  -  -  the 1800  the  -Users Awayisblue:CL:awayisblueserviceLog/etc/3proxy/3Proxy.LogDlogformat"-+_l%t. %. %N. %p %E %u %c:%c %R:%R %O %I %h %T"  Rotate -Internal102.224.164.98Auth Strongallow awayisblueproxy-a-p1984

This is a possible example of what we need to focus on and modify:

    • users awayisblue:CL:awayisblue, which is where you create users, you can specify multiple users with spaces, such as:
      users user1:CL:password1 user2:CL:password2, so we've created two of users. The middle of the user name and password CL is the plaintext password type, you can also specify the encryption method, specific to the official website to check.
    • internal 102.224.164.98This is the IP 102.224.164.98 address of your server, you have to modify the IP address of your server IP.
    • allow awayisblue, specify the allowed users, the user is the user created earlier, you can also specify the IP way, you can check the document.
    • proxy -a -p1984This opens the http proxy mode, you can also use the socks open socks Proxy. -arepresents the anonymous proxy, which -p represents the port on which the listener is listening.

Assuming we save the configuration file /root/3proxy/3proxy.cfg , we can find 3proxy and apply the configuration in the following ways:
3proxy /root/3proxy/3proxy.cfg
can also be used
3proxy /root/3proxy/3proxy.cfg &Let it run directly in the background.

Client Connection Broker

After the server Agent is opened, we can use the client connection Broker. I use node.js the superagent-proxy here to demonstrate, mainly to illustrate the use http proxy of formatting problems.

varRequest =require(' superagent ');//Extend with request#proxy ()require(' Superagent-proxy ') (request);//HTTP, HTTPS, or SOCKS proxy to usevarProxy =' Http://awayisblue:[email protected]:1984 '; request. Get (' https://encrypted.google.com/'). Proxy. End (Onresponse); function onresponse (err, res) {  if(ERR)  {Console.log (ERR); }Else{Console.log (res.status, res.headers);  Console.log (Res.body); }}

The point is that in the preceding var proxy = ‘http://awayisblue:[email protected]:1984‘; sentence, through this form of connection, we can use 3proxy the proxy.

Update

The better information about 3proxy is:
1. Http://linux.die.net/man/3/3proxy.cfg
2. Https://github.com/z3APA3A/3proxy/wiki

3proxy Install and configure the network agent process

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.