GithubHelp home page GithubHelp logo

coolseven / shadowsocks-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huaisha1224/shadowsocks-client

0.0 1.0 0.0 288 KB

The ShadowSocks client is a support multiple server port and password

License: GNU General Public License v3.0

Python 100.00%

shadowsocks-client's Introduction

ShadowSocks-Client

shadowsocks 是一个轻量级隧道代理,用来穿过防火墙。

第一个版本由clowwindy用Python编写、后续有很多其他的移植版本。见这里

ShadowSocks Server端可以绑定多个端口、以减少一个端口流量太大带来的风险。但是ShadowSocks Client没有能够支持多服务器

多端口的版本、而我又有这个需求、所以就在ShadowSocks的基础上修改了一个ShadowSocks-Client版本。

使用

首先检查是Pytohn版本是否是2.6 or 2.7

$ python --version
Python 2.7.5

下载ShadowSocks-Client

ShadowSocks-Client目录下建立一个config.json文件、内容如下:

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

多服务器IP、端口和密码的config.json格式如下:

{   
    “server_password”:
    [
    ["my_server_ip1", 10086, "123456789cde"],
    ["my_server_ip2", 10087, "369852147zxc"],
    ["my_server_ip3", 10088, "qazwsxedcrfv"],
    ["my_server_ip4", 10089, "barfoo!abcde"]
    ]
    "local_port":1080,
    "timeout":600,
    "method":"aes-256-cfb"
}

cmd下切换到config.json目录、然后运行ShadowSocks_local.py

  ShadowSocks_local.py

然后把浏览器代理修改为如下即可:

    协议:socks5
    地址:127.0.0.1
    端口:1080、也就是刚才填写的local_port

建议Firefox使用AutoProxyChrome使用Proxy SwitchSharp.

shadowsocks-client's People

Contributors

huaisha1224 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.