Ubuntu部署shadowsocks服务端

服务器基本要求:

Python2.7

1 安装pip环境

apt–get install python–gevent python–pip

2 安装shadowsocks

pip install shadowsocks

#升级命令 pip install –upgrade shadowsocks

3 安装加密用的库

apt–get install python–m2crypto

3 编写配置文件到/etc/shadowsocks/config.json

{

“server”:“0.0.0.0”,

“server_port”:8388,

“local_port”:1080,

“password”:“xxxxxx”,

“timeout”:600,

“method”:“aes-256-cfb”

}

4 启动shadowsocks

nohup ssserver –c /etc/shadowsocks/config.json  > /log/shadowsocks.log &

客户端使用方式:

服务器IP填你的服务器外网IP

服务器端口填server_port

密码填你写的密码

加密方式选择aes-256-cfb

代理端口填local_port

注:仅供学习使用,可以在阿里云上测试。

更多文章:http://blog.gavinzh.com

评论

暂无评论