前言
节点搭建完成后,许多朋友发现开启 BBR/BBRplus 后网速依然不理想。是操作失误吗?并非完全如此。关键在于 BBR 和 BBRplus 的适应性:BBR 兼容性普遍更好,而某些 VPS 安装 BBRplus 后反而会拖慢速度。针对这类“慢速 VPS”,本期将带来提升其性能的实战方法。
准备工作
可在TThive跨境社区的网络资源中购买一台国内/国外的服务器(建议可以购买国内的服务器),国内的服务器大多数速度是比国外的服务器速度块。那么我们就需要:
- 速度快的服务器:本期视频我还是选用我平常用的比较多的dmit。可点击红色文字直接进入主页。
- 速度较慢的服务器,我这里是用了一条泰国节点
- 远程连接工具,这里使用finalshell
代码搭建前准备
获得root权限
sudo -i
Ubuntu系统开放所有端口操作指令
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
BBRPLUS加速
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
安装中转机代码
国内VPS作为中转机使用如下代码
wget --no-check-certificate -qO natcfg.sh http://www.arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh
国外VPS作为中转机使用如下代码
wget --no-check-certificate -qO natcfg.sh https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh && bash natcfg.sh
防火墙接触操作
Ubuntu系统操作如下
Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
重启
reboot
强制删除
rm -rf /etc/iptables && reboot
CentOs系统操作如下
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
关闭iptables
service iptables stop
去掉iptables开机启动
chkconfig iptables off