Skip to content

Instantly share code, notes, and snippets.

@Maecenas
Created August 10, 2018 09:28
Show Gist options
  • Save Maecenas/e1503d43ad011913960436ea59bade4a to your computer and use it in GitHub Desktop.
Save Maecenas/e1503d43ad011913960436ea59bade4a to your computer and use it in GitHub Desktop.
一键脚本安装shadowsocks/shadowsocksR/V2Ray + 开启bbr

ShadowsocksR + BBR (VPS: DigitalOcean)

DigitalOcean 测速 http://speedtest-sfo1.digitalocean.com

一键脚本安装shadowsocks/shadowsocksR/V2Ray + 开启bbr https://github.com/flyzy2005/ss-fly

TCP_BBR

# Setting
$ wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

# Testing
# 执行下面命令,看到有 tcp_bbr 模块,即说明bbr已启动
$ sysctl net.ipv4.tcp_available_congestion_control
$ sysctl net.ipv4.tcp_congestion_control
$ lsmod | grep bbr

Ipv6 with BBR

这里的坑就是在启用了 google bbr 算法重启 vps 之后 之前配置好的 ipv6 就会失效 所以需要手动配置一下 ipv6 根据 digital ocean 网站上为我们分配的 ipv6 global 地址 以及网关地址 

# Setting
$ ip -6 addr add [IPv6 Address of vps]/64 dev eth0
$ route -A inet6 add default gw [IPv6 Address of gate way]
# Testing
$ ping -6 google.com
$ curl -6 google.com

https://www.jianshu.com/p/c6f492407069

ipv6

http://test-ipv6.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment