Coder Social home page Coder Social logo

ycgambo / shadowrocket Goto Github PK

View Code? Open in Web Editor NEW
32.0 3.0 9.0 118 KB

A socks5 proxy to build your own shadowsocks private network. PHP based & Composer supported.

License: MIT License

PHP 100.00%
socket-tunnel socks5 socks-proxy shadowsocks proxy php composer-component

shadowrocket's Introduction

shadowrocket

A socks5 proxy to build your own shadowsocks private network. PHP based & Composer supported.

中文文档 Contributing

Features

  1. TCP/UDP support
  2. IPV4/DOMAINNAME/IPV6 support
  3. Graceful restart
  4. Monolog Logger
  5. Guarder(Black List)
  6. Server Manager

Coming Next

  • bandwidth throttling
  • user management

Install

composer require ycgambo/shadowrocket

Requirements

  1. Composer
  2. PHP 5.3+

Usage

Run a server

<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = array(
    'server' => array(
        'port'        => '8388',
        'password'    => 'mypass',
        'encryption'  => 'aes-256-cfb',
        'process_num' => 12,
    ),
);

ShadowRocket\Bin\Launcher::launch($config);

Run a local proxy

<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = array(
    'local' => array(
        'server'      => '123.456.78.9',
        'port'        => '8388',
        'password'    => 'mypass',
        'encryption'  => 'aes-256-cfb',
        'local_port'  => '1086',
        'process_num' => 12,
    )
);

ShadowRocket\Bin\Launcher::launch($config);

This means we want to pass data to local proxy 127.0.0.1:1086 which will request proxy server 123.456.78.9:8388 for reply.

Fire your script up

Assuming your script is named as start.php, in which contains code to launch the Launcher.

To run as daemon:

php start.php start -d

To stop your script:

php start.php stop

To graceful restart:

php start.php reload

To check status:

php start.php status

To check connections:

php start.php connections

More docs

Want a client APP?

shadowrocket's People

Contributors

ycgambo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shadowrocket'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.