版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/daduryi/article/details/84921999
服务端
-
安装
sudo apt-get -y install python-gevent python-pip sudo pip install shadowsocks sudo apt-get -y install python-m2crypto
-
配置json
vim /etc/shadowsocks.json{ "server":"0.0.0.0", "server_port":1194, "local_address":"127.0.0.1", "password":"123!@#ljt", "timeout":300, "method":"aes-256-cfb", "fast_open":false, "workers":1 }
-
启动
后台运行:ssserver -c /etc/shadowsocks.json -d start 后台停止:ssserver -c /etc/shadowsocks.json -d stop 前台运行:ssserver -c /etc/shadowsocks/config.json
-
多账号配置json
server里面需要设置为自己vps的ip地址{ "server":"11.32.15.21", "local_address":"127.0.0.1", "local_port":1080, "port_password":{ "9001":"10001", "9002":"10002", "9003":"10003" }, "timeout":300, "method":"rc4-md5", "fast_open": false }
客户端
-
安装
sudo apt-get -y install python-gevent python-pip sudo pip install shadowsocks sudo apt-get -y install python-m2crypto
-
配置json
{ "server": "你的服务器ip", "server_port": 你的服务器端口, "local_address": "127.0.0.1", "local_port": 1080, "password": "你的SS密码", "method": "aes-256-cfb", "fast_open": true, "timeout":300 }
-
启动
sudo sslocal -c /etc/shadowsocks.json
-
将启动脚本加入开机自启
rc.local or /etc/profile
接下来需要配置代理, 在chrome中进行, 也可以使用其他工具.
浏览器配置
安装chrome插件, 并导入配置文件, 资源在下方链接
https://github.com/ChyengJason/OmegaOptions.bak