Saturday, July 29, 2017

shadowsocks 搭建

参见
https://xfabs.github.io/2016/08/02/shadowsocks/


主要apt-get install python-pip
pip install shadowsocks


{
    "server":"0.0.0.0",
    "server_port":1111,
    "local_address": "127.0.0.1",
    "local_port:":1080,
    "password":"mima",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}


ssserver -c /etc/ss.json -d start
ssserver -c /etc/ss.json -d stop

https://blog.jamespan.me/posts/enable-tcp-bbr-on-google-cloud

一定要开启上面的bbr
sudo bash -c 'echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf'
sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'
sudo sysctl -p

No comments:

Post a Comment