Git Product home page Git Product logo

fukei's Introduction

Fukei

A Python Tornado port of socks proxy

Usage

First, make sure you have Python 2.6 or 2.7 (supports 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
                        '/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 pass command line arguments 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
ss-server -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

Requirements -----------

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

$ sudo apt-get install python-tornado

Or:

$ sudo pip install tornado

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

$ sudo pip install argpasre

Alert

Tornado IOStream doesn't support timeout. Hence the timeout setting is useless in this case.

License

MIT

fukei's People

Contributors

princemaple avatar whiteclover 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fukei's Issues

Ubanut connection error

ss-server
Traceback (most recent call last):
File "/usr/local/bin/ss-server", line 4, in
import('pkg_resources').run_script('fukei==0.1', 'ss-server')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 719, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1511, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/fukei-0.1-py2.7.egg/EGG-INFO/scripts/ss-server", line 9, in

File "build/bdist.linux-x86_64/egg/fukei/server.py", line 3, in
ImportError: No module named tornado.ioloop

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.