Shadowsocks Tips

curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py
python get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

# wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh
chmod +x ovz-bbr-installer.sh 
./ovz-bbr-installer.sh

# 关闭 firewalld
systemctl disable firewalld 
systemctl stop firewalld

参考

sudo pip install shadowsocks
sudo ssserver -c /etc/shadowsocks/config.json -vv # 注意 server IP 需要写为 0.0.0.0
sudo ssserver -c /etc/shadowsocks/config.json -d start
vi /etc/rc.local
ssserver -c /etc/shadowsocks/config.json -d start
vi /usr/lib/systemd/system/ss.service
[Unit]
Description=Shadowsocks
After=network.target

[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks/config.json
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target
systemctl enable ss.service
systemctl start ss.service
systemctl status ss.service
  • 本地建立 config.json 文件 { "server" : "IP", "server_port" : port, "password" : "xxx", "timeout": 300, "method": "aes-256-cfb" }
  • 安装 sslocal & proxychains
  • 启动 sslocal sslocal -c config.json -vv
  • 通过 proxychains 代理访问