bbr加速魔改版

雨落无声一键脚本

安装要求

安装使用

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/YankeeBBR/master/bbr.sh && bash bbr.sh install

安装过程中如果出现下图所示,请选择NO来删除其他内核

请输入图片描述

运行结束后,根据提示重启系统。重启完系统重新登陆vps,运行如下代码即可开启成功。

bash bbr.sh start

查看魔改BBR状态

sysctl net.ipv4.tcp_available_congestion_control

如果看到有 tsunami 就表示开启成功!

四合一脚本

此脚本 集合了BBR原版、BBR魔改、BBR Plus和锐速的脚本,十分方便管理。注意不支持OVZ和LXC。

安装证书

apt-get -y install ca-certificates</code>或<code>yum -y install ca-certificates

安装脚本

wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" \
&& chmod +x tcp.sh \
&& ./tcp.sh

先在【1-3】个选项中选择一个进行安装并重启。 第一次显示为bbr内核也要切换一遍 。跟上面一样,出现需要删除内核的提示请选择【NO】。
请输入图片描述

重启后不用再下载脚本,直接使用命令 ./tcp.sh ,在【4 – 8】中选你要开的加速。

./tcp.sh

BBRplus一键脚本

BBRplus是基于原版bbr的一些不足之处改进而来的版本,也称为bbr的修正版。两位大神讨论出结果后由第三者cx9208给出了源码并做成了一键脚本,当时这个脚本只适用于Centos系统,同样不支持ovz构架。此脚本有个好处是:上面两个一键脚本无法成功的情况下,此脚本有几率可用。例如可以在 cloudcone 家正常使用。

wget -N --no-check-certificate "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh" \
&& chmod +x ok_bbrplus_centos.sh \
&& ./ok_bbrplus_centos.sh
  • 安装后,执行uname -r,显示有bbrplus则切换内核成功
  • 执行lsmod | grep bbr,显示有bbrplus则开启成功

###卸载方法
只要切换回原来的内核就相当于卸载了bbrplus,首先使用如下命令查看系统的可用内核列表

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg

查看系统默认的内核启动项

grub2-editenv list

更改内核启动项(即修改为列表1项的内核)

grub2-set-default 1

更改完成后重启系统reboot并使用uname -r可以查看内核更改已生效。

Rinetd版bbr

很多OVZ下使用的bbr一键脚本,如uml、lkl这些都需要vps开启TUN/TAP功能,但这功能有的vps默认禁用的,Rinetd版没有这个要求,占用资源也少,推荐。
要求:64位 OpenVZ

Debian / Ubuntu

单IP

wget https://www.mebi.me/room/sh/Rinetd/tcp_nanqinlang-rinetd-debianorubuntu.sh
bash tcp_nanqinlang-rinetd-debianorubuntu.sh

多IP

wget https://www.mebi.me/room/sh/Rinetd/tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh

CentOS

单IP

wget https://www.mebi.me/room/sh/Rinetd/tcp_nanqinlang-rinetd-centos.sh
bash tcp_nanqinlang-rinetd-centos.sh

多IP

wget https://www.mebi.me/room/sh/Rinetd/tcp_nanqinlang-rinetd-centos-multiNIC.sh
bash tcp_nanqinlang-rinetd-centos-multiNIC.sh

按照提示安装,输入想要加速的端口即可,无须重启。