BBR 优化版本 for OVZ

一键脚本

curl https://raw.githubusercontent.com/linhua55/lkl_study/master/get-rinetd.sh | bash
仅开启了80443端口的加速

高级配置

修改配置文件nano /etc/rinetd-bbr.conf
# bindadress bindport connectaddress connectport
0.0.0.0 443 0.0.0.0 443
0.0.0.0 80 0.0.0.0 80

按照上面的格式添加即可。如要加速httphttps,将nignxapache2的监听端口更改到a(如把443改为8443
connectaddress改为8443即可
然后重启服务service rinetd-bbr restart

手动折腾

#此部分转载于乡下人博客

Debian 8 64 步骤:

下载rintd二进制文件(原版bbr和修改版bbr二选一即可):

wget --no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd
wget --no-check-certificate https://raw.githubusercontent.com/mixool/rinetd/master/rinetd_bbr_powered -O /root/rinetd

  • 修改权限:
    chmod +x rinetd
  • 修改rinetd的配置文件rinetd.conf,添加监听地址:

    vi rinetd.conf

    # bindadress bindport connectaddress connectport
    0.0.0.0 443 0.0.0.0 443
    0.0.0.0 80 0.0.0.0 80

    设置开机启动

    vi /etc/systemd/system/rinetd.service

    [Unit]
    Description=rinetd
    
    [Service]
    ExecStart=/root/rinetd -f -c /root/rinetd.conf raw venet0:0
    Restart=always
      
    [Install]
    WantedBy=multi-user.target

    最后执行:

    systemctl enable rinetd.service && systemctl start rinetd.service

 

参考资料

https://github.com/linhua55/lkl_study

http://xpsss.com/851.html

https://linhua55.github.io/2017/04/24/LKL(Linux%20Kernel%20Library)/

https://github.com/lkl/linux

 

发布评论

发表回复

*

沙发空缺中,还不快抢~