shadowsocks是一个轻量级的socks5代理软件,shadowsocks开发语言有nodejs、go、python、c。
shadowsocks python语言版
https://github.com/clowwindy/shadowsocks
shadowsocks go语言版
https://github.com/hugozhu/shadowsocks-go
shadowsocks nodejs语言版
https://github.com/clowwindy/shadowsocks-nodejs
shadowsocks libev版(使用C语言+libev库+openssl开发)
https://github.com/madeye/shadowsocks-libev
shadowsocks libuv版(很久没更新了)
https://github.com/dndx/shadowsocks-libuv
网上推荐安装python版和Shadowsocks-libev版,这里安装标准python版,系统为CentOS6。
一、服务端
1、安装库和shadowsocks
yum install m2crypto python-setuptools
easy_install pip
pip install shadowsocks
2、创建配置文件
vim /etc/shadowsocks.json
写入:
{
“server”:”
172.93.40.99”,
“server_port”:443,
“local_address”: “127.0.0.1”,
“local_port”:1080,
“password”:”1990610abc”,
“timeout”:600,
“method”:”aes-128-cfb”
}
字段说明:
server:服务器ip
server_port:服务器数据端口
local_address:本地端监听的地址
local_port:本地代理端口
password:连接密码
timeout:超时
method:加密方式,推荐aes-128-cfb
3、后台启动
nohup /usr/bin/ssserver -c /etc/shadowsocks.json > /dev/null 2>&1 &
也可加入/etc/rc.local实现开机启动服务