Shadowsocks安装(ubuntu)

作者: wilsoncai 分类: VPN 发布时间: 2019-09-08 14:39

命令行安装shadowsocks

#install shadowsocks
 apt-get install python-pip
 pip install --upgrade setuptools
 apt-get install python-dev
 pip install shadowsocks

 
#Install BBR to speed up network access
wget –no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh 
./bbr.sh 

#客户端
Windows / OS X
Android / iOS
OpenWRT

设置开机自动启动

vi  /etc/shadowsocks.json

{
    "server": "149.28.143.134",
    "server_port": 10080,
    "local_port": 1080,
    "password": "XXXX",
    "timeout": 600,
    "method": "rc4-md5"
}

把ssserver启动命令加到ubuntu开机启动脚本: /etc/rc.local

root@workdpress:~# cat  /etc/rc.local
 !/bin/sh -e
 ssserver -c /etc/shadowsocks.json -d start
 exit 0

发表评论

电子邮件地址不会被公开。 必填项已用*标注

标签云