Robin的主页

本文内容均援引自网络,仅作学习用途。

Shadowsocks安装

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log
  • 启动:/etc/init.d/shadowsocks start
  • 修改配置文件:/etc/shadowsocks.json
  • 重新启动:/etc/init.d/shadowsocks restart
  • 加速:
    • 安装锐速(类似BBR):wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
    • TCP快速启动(TCP Fast Open):vim /etc/rc.local 追加一条:echo 3 > /proc/sys/net/ipv4/tcp_fastopenvim /etc/sysctl.conf 追加一条:net.ipv4.tcp_fastopen = 3vim /etc/shadowsocks.json,修改一条:"fast_open":true

shadowsocks.json说明


{
    "server":"0.0.0.0",
    "server_port": <ss服务端口>,
    "local_address":"127.0.0.1",
    "local_port": <ss本地端口>,
    "password":"<ss密码>",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open":true
}

// 多密码支持
"port_password": {
	"<port>": "<password>"
}

相关文章

- - - - - -
written by 陈烨彬 Robin Chen , and published under (CC) BY-NC-SA.