一.Server部署
更新源
sudo apt-get update
安装python-pip
sudo apt-get install python-pip
安装shadowsocks
sudo pip install shadowsocks
编写配置文件
sudo vim /etc/shadowsocks.json
1
2
3
4
5
6
7
8
9
10{
"server": "0.0.0.0",
"server_port": 9999,
"local_address": "127.0.0.1",
"local_port": 5555,
"password": "******",
"method": "aes-256-cfb",
"fast_open": true,
"timeout":300
}启动服务
sudo ssserver -c /etc/shadowsocks.json -d start
二.客户端下载
三.备注
Ubuntu18.04需修正openssl版本问题,替换
EVP_CIPHER_CTX_cleanup
为EVP_CIPHER_CTX_reset
sudo sed -i 's/EVP_CIPHER_CTX_cleanup/EVP_CIPHER_CTX_reset/g' /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py