安装shadowsocks

  1. https://github.com/shadowsocks/shadowsocks/wiki
  2. https://github.com/shadowsocks/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E

环境

centos7.0

安装

yum install python-setuptools && easy_install pip  
pip install shadowsocks

配置

  1. 新建配置
    sudo vim /etc/shadowsocks.json
  2. 编辑
    {  
    "server":"0.0.0.0",  
    "server_port":8388,  
    "local_address": "127.0.0.1",  
    "local_port":1080,  
    "password":"mypassword",  
    "timeout":300,  
    "method":"aes-256-cfb",  
    "fast_open": false  
    }

    或者(多用户):

    {  
    "server":"0.0.0.0",  
    "port_password":{  
     "8381":"xxxxxxx",  
     "8382":"xxxxxxx",  
     "8383":"xxxxxxx",  
     "8384":"xxxxxxx"  
     },  
    "timeout":300,  
    "method":"aes-256-cfb",  
    "fast_open": false  
    }
  3. 说明

server 服务监听地址

server_portss 服务监听端口

local_address 本地的监听地址

local_port 本地的监听端口

password 密码

timeout 超时时间,单位秒

method 加密方法,默认是aes-256-cfb

fast_open 使用TCP_FASTOPEN, true / false

workers workers数,只支持Unix/Linux系统

启动

ssserver -c /etc/shadowsocks.json  

shadowsocks客户端

Windows:

  1. https://github.com/shadowsocks/shadowsocks-windows/releases

Mac OS X:

  1. https://github.com/shadowsocks/ShadowsocksX-NG/releases

iOS:

  1. https://itunes.apple.com/app/apple-store/id1070901416?pt=2305194&ct=shadowsocks.org&mt=8
  2. https://github.com/shadowsocks/shadowsocks-iOS/releases

Android:

  1. https://github.com/shadowsocks/shadowsocks-android/releases