Skip to content

Yet another proxy server that support trojan protocal. trojan 的深度优化和升级版本

License

Notifications You must be signed in to change notification settings

superbetacat/overplus

 
 

Repository files navigation

overplus

Overplus is another implement of trojan protocal with better perfermance and stability.

Comapared with trojan:

  • Enhanced Security
  • It don't need to setup a http server on port 80 in your linux server.
  • It don't need to apply a domain name.
  • More readable and cleaner code.

One-click deployment

Run the script and follow the assistant:

curl -O https://raw.githubusercontent.com/xyanrch/overplus/master/install.sh && chmod +x install.sh && sudo ./install.sh

It is recommend to enable BBR to accelerate the network speed.

Build

The project depend on boost and openssl libraries, please make sure install boost and openssl before build the project.

how to build

mkdir build && cd build
cmake ..
make

how to run

sudo ./overplus server.json

server.json is a config file which you can custom the config in.

exmaple config file

{
    "run_type": "server",
    "local_addr": "0.0.0.0",
    "local_port": "443",
    "allowed_passwords": [
        "testpsswd"
    ],
    "log_level": "NOTICE",
    "log_dir":"",
    "ssl": {
        "cert": "path_to_cert",
        "key": "path_to_key"
    }
}

How does overplus work?

Trojan protocal is a socks5 like protocal.Trojan request is formed as follows:

    +----+-----+-------+------+----------+----------+-------+
    |Command | password| DST.ADDR | DST.PORT |packed payload
    +----+-----+-------+------+----------+----------+-------+
    | unit8  |  string  | string |   string  | string
    +----+-----+-------+------+----------+----------+-------+

flow chart

Client side

Overplus fully support trojan protocol, So it is Ok to use trojan's client. Please make sure disable certificate verification if you use a self issued certificate.

Plan

  • Implement a web console to manage overplus
  • Design a new protocal to replace trojan protocal

About

Yet another proxy server that support trojan protocal. trojan 的深度优化和升级版本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.3%
  • Shell 9.7%
  • CMake 2.6%
  • Makefile 1.2%
  • Dockerfile 1.2%