已经成功用上的脚本
OpenVZ BBR 一键安装脚本
wget --no-check-certificate -O ovz-bbr-installer.sh https://github.com/kuoruan/shell-scripts/raw/master/ovz-bbr/ovz-bbr-installer.sh sh ovz-bbr-installer.sh
卸载 sh ovz-bbr-installer.sh uninstall
两种方法lkl-haproxy 和lkl-rinetd.
注意:带域名绑定的nat OPENVZ主机需要修改HTTPS端口,否则无法转发成功(即不能使用商家提供的HTTPS转发服务)。
再新加波nat成功的是这条:
https://www.91yun.co/archives/6281
BBRPLUS lkl-haproxy
需要TUN/TAP
开启和空闲256M内存。
# for centos bash <(curl -Ls https://github.com/mzz2017/lkl-haproxy/raw/master/lkl-haproxy-centos-nocheckvirt.sh) # for debian bash <(curl -Ls https://github.com/mzz2017/lkl-haproxy/raw/master/lkl-haproxy-debian-nocheckvirt.sh)
lkl-rinetd
centos
# 单网卡 wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-centos-nocheckvirt.sh bash tcp_nanqinlang-rinetd-centos-nocheckvirt.sh # 多网卡 wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-centos-nocheckvirt-multiNIC.sh bash tcp_nanqinlang-rinetd-centos-nocheckvirt-multiNIC.sh
debian/ubuntu
# 单网卡 wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt.sh bash tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt.sh # 多网卡 wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh bash tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh
其他:
https://github.com/mixool/rinetd
报错信息
[error] only support OpenVZ
故障原因
某些主机商的OpenVZ主机使用的是LXC虚拟化。虽说主机商叫OpenVZ但是实际跟OpenVZ 已无关系。
解决方案
禁用脚本虚拟化检测