使用python搭建ss梯子

CentOS7

yum install python-setuptools && easy_install pip
pip install shadowsocks

启动命令

ssserver -p 8836 -k `password` -m rc4-md5
#或者可以通过以下指令在后台启动shadowsocks的服务:
ssserver -p 8836 -k `password` -m rc4-md5 -d start
ssserver -p 8836 -k `password` -m rc4-md5 -d stop

优化版本

* 创建/etc/shadownsocks.json配置文件

* 写入配置:

{
    "server":"你的服务器ip地址",
    "server_port":8989,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"你设置的密码",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

*多用户配置

{
    "server":"你的服务器ip地址",
    "local_address": "127.0.0.1",
    "local_port":1080,
    "timeout":300,
"port_password":{ "8989":"password0", "9001":"password1", "9002":"password2", "9003":"password3", "9004":"password4" }, "method":"aes-256-cfb", "fast_open": false }

优化后的启动命令:

ssserver -c /etc/shadowsocks.json
#或者在后台运行
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop
文章转自:星晨入梦 » 使用python搭建ss梯子

评论:

现在还没有评论,快来抢沙发吧!

留下你的评论: