题记:你懂的,就这样吧

找个境外的服务器,centos吧

1、配置一下yum源

curl -L http://mirrors.aliyun.com/repo/Centos-6.repo > /etc/yum.repos.d/CentOS-Base.repo
curl -L http://mirrors.aliyun.com/repo/epel-6.repo > /etc/yum.repos.d/epel.repo

2、到https://pypi.python.org/pypi/shadowsocks 下载安装包

  wget https://pypi.python.org/packages/02/1e/e3a5135255d06813aca6631da31768d44f63692480af3a1621818008eb4a/shadowsocks-2.8.2.tar.gz
  tar fx shadowsocks-2.8.2.tar.gz
  cd shadowsocks-2.8.2
  python setup.py build
  python setup.py install

3、建立server的配置文件

      mkdir -pv /etc/sk

  vi /etc/sk/shadowsockes.json

{
"server":"0.0.0.0",
"server_port":8388,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}


所有配置信息

Explanation of the fields:

 

 

Name

Explanation

server

the address your server listens

server_port

server port

local_address

the address your local listens

local_port

local port

password

password used for encryption

timeout

in seconds

method

default: "aes-256-cfb", see ​​Encryption​

fast_open

use ​​TCP_FASTOPEN​​, true / false

workers

number of workers, available on Unix/Linux


 启动

ssserver -c /etc/sk/shadowsocks.json

后台启动
ssserver -c /etc/sk/shadowsocks.json -d start
ssserver -c /etc/sk/shadowsocks.json -d stop
客户端
可以到下面的页下载
https://shadowsocks.org/en/download/clients.html

客户端配置文件:
vi example.json
{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
ps:
  担忧PYTHON的包也被删shadowsocks-2.8.2.tar.gz,所以留个链接
  链接:http://pan.baidu.com/s/1dFaPLp3 密码:decs