Coder Social home page Coder Social logo

fukei's Introduction

Fukei

A Python Tornado port of shadowsocks and socks proxy

Usage

First, make sure you have Python 2.6 or 2.7 (support windows).

$ python --version
Python 2.7.6

Install Fukei.

python setup.py  install

Create a file named config.json, with the following content.

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_port":1080,
    "password":"barfoo!",
    "timeout":600,
    "method":'table'
}

Explanation of the fields:

usage: usage: PROG [options]
    optional arguments:
      -h, --help            show this help message and exit
      -s SERVER, --server SERVER
                            Remote server, IP address or domain (default
                            '127.0.0.1')
      -k PASSWORD, --password PASSWORD
                            Password, should be same in client and server sides
                            (default 'Keep Your Password')
      -c FILE, --config FILE
                            config.json path (default
                            'F:\\Projects\\Fukei\\bin\\..\\config\\config.json')
      -p SERVER_PORT, --server-port SERVER_PORT
                            Remote server port (default 8388)
      -l LOCAL_PORT, --local-port LOCAL_PORT
                            Local client port (default 1081)
      -m METHOD, --method METHOD
                            Encryption method (default 'aes-128-cfb')
      -t TIMEOUT, --timeout TIMEOUT
                            connection timeout (default 60)
      -d, --debug           open debug mode (default False)
      -v VERSION, --version VERSION
                            Show Fukei version 0.1

cd into the directory of config.json. Run ss-server on your server. To run it in the background, run nohup ss-server > log &.

On your client machine, run ss-local.

Change the proxy settings in your browser to

protocol: socks5
hostname: 127.0.0.1
port:     your local_port

Command line args

You can use args to override settings from config.json.

ss-local -s server_name -p server_port -l local_port -k password -m bf-cfb
ss-server -p server_port -k password -m bf-cfb
sss-erver -c /etc/fukei/config.json

Encryption

If you want to use non-default encryption methods like "bf-cfb", please install M2Crypto.

Ubuntu:

sudo apt-get install python-m2crypto

Others:

pip install M2Crypto

Performance & Require

You must to install Tornado (require version 3.0+).

$ sudo apt-get install python-tonrado

Or:

$ sudo pip install tornado

And if use python2.6 , you need to install argparse for python2.6

$ sudo pip install argpasre

Alert

The Tornado IOStream doesn't support timeout. so timeout setting is not work, setting it just useless .

License

MIT

fukei's People

Contributors

whiteclover avatar

Watchers

 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.