Giter VIP home page Giter VIP logo

cpp-socks5's Introduction

cpp-socks5

License Language Platform

[中文]

About

A socks5 proxy server base on cpp-tbox

Origin

I tried to use other open source socks5 open source software before, but it always crashed abnormally. So I took a look at the SOCKS5 protocol document, it feels relatively simple, and I have cpp-tbox mature framework, it is easy to write this kind of thing. So Meng gave birth to the idea of writing a SOCKS5 service program by himself, and the cpp-socks5 project came into being. After the program was completed, I tested it and used it continuously to play videos above 1080P for three days and three nights, and it continued to run for more than 40 days. The result is very satisfactory, the program is stable, and there is no pressure on performance.

The following is the use effect after 41 days of continuous operation:
show

Features

  • Support "No Auth" authentication;
  • Support "Username/Password" authentication;
  • Support CONNECT command;
  • Support IPv4;

Build

Step 1:build cpp-tbox first

git clone https://gitee.com/cpp-master/cpp-tbox.git
cd cpp-tbox;
STAGING_DIR=$HOME/.tbox make 3rd-party modules RELEASE=1
cd -

Step 2:Build cpp-socks5 self

git clone https://gitee.com/cpp-master/cpp-socks5.git
cd cpp-socks5/src;
make

Run

Run with default parameters:

./cpp-socks5

Run with arguments:

./cpp-socks5 -c config/default.conf

Configure

You can modify the configuration based on src/config/full.conf.

{
  "socks5": {
    "bind":"0.0.0.0:1080", // Service binding address and port, if not specified, the default is "0.0.0.0:1080"
    "backlog":20,          // listen(backlog), default is 20
    "username":"abc",      // Username
    "password":"123",      // Password
  }
}

If username and password are specified at the same time, Username/Password authentication will be enabled, otherwise No Auth authentication will be defaulted.

Feedback

  • Issue: Any questions are welcome to communicate in issue
  • WeChat: hevake_lee
  • QQ group: 738084942 (cpp-tbox 技术交流)

Encourage us

If you find it useful, please give me more encouragement. You can do these:

  • Follow cpp-tbox open source project;
  • Light up three combos for it: Star, Watch, Fork;
  • Recommend to colleagues and partners around you, and recommend to your readers in technical forums;
  • Join the above QQ group, add me on WeChat to enter the WeChat group;
  • Positive feedback on issues and suggestions;
  • Participate in the development of the project and contribute your strength.

cpp-socks5's People

Contributors

hevake avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.