DIY a VPN With SSR
Website: https://www.vultr.com/
Software: Shadowsocks + Ubuntu OS
Step 1. 服务器端安装Shadowsocks
服务端版本:Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev(四选一)
1 | wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh |
卸载方法
1 | ./shadowsocks-all.sh uninstall |
Step 2. 各版本的启动脚本及配置文件名
启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。
Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | status
ShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | status
Shadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | status
Shadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status
各版本默认配置文件
Shadowsocks-Python 版:
/etc/shadowsocks-python/config.json
ShadowsocksR 版:
/etc/shadowsocks-r/config.json
Shadowsocks-Go 版:
/etc/shadowsocks-go/config.json
Shadowsocks-libev 版:
/etc/shadowsocks-libev/config.json
Step 3. 安装VPN加速器
1 | wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh |
安装 BBR
1 | wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh |
获取读写权限
1 | chmod +x bbr.sh |
启动BBR安装
1 | ./bbr.sh |
Q & A?
Q: 解决Host key verification failed
A: ssh-keygen -R 你要访问的IP地址