Coder Social home page Coder Social logo

daskol / socks-proxy Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 26 KB

Simple SOCKS4 proxy in modern C++

License: MIT License

CMake 8.42% C++ 91.14% C 0.44%
socks socks4-server socks-proxy socks-protocol proxy telegram-proxy roskomnadzor rkn socks4-proxy boost

socks-proxy's Introduction

SOCKS4 Proxy Server

simple socks4-proxy in modern c++

Overview

SOCKS proxy is simple proxy server which implements well-known SOCKS4 protocol. It accept and multiplexes input and output streams in one thread. It supports half-closed TCP connections. Also default timeout on connection is one second.

    Client           Proxy           Server
      |                |               |
      | 1. Connect ->  |               |
      |                |               |
      |  1. Hello -->  |               |
      |                |               |
      |                | 1. Connect -> |
      |  <-- 1. Hello  |               |
      |                |               |
      |                |               |
      | 2. Data ->     |               |
      |                | 2. Data ->    |
      |                |               |
      |                |               |
      | 2. Fin ->      |               |
      |                | 2. Fin ->     |
      |                |               |
      |                | <- 2. Data    |
      | <- 2. Data     |               |
      |                |               |
      |                | <- 2. Fin     |
      | <- 2. Fin      |               |

Assembly

This implementation depends on Boost.System, Boost.Asio, Google Log and Google Tests. Make dependencoes are cmake, make and git. Google Test is included into project dependencies as git submodule. So, to get sources one should clone repo recursively.

    git clone --recursive https://github.com/daskol/socks-proxy.git

And then one could start building as follows.

    mkdir -p build/release
    cd build/release
    cmake ../.. -DCMAKE_BUILD_TYPE=Release
    make -j2

In order to install target binary to system path one should run following.

    make install

socks-proxy's People

Contributors

daskol avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mark51-dev

socks-proxy's Issues

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.