Google BBR acceleration on OpenVZ platform

foreword


 I have always used the VPS of the bricklayers , and I have to say that the price/performance ratio is so much higher than those of the big domestic factories.
 If you use it as a ladder, the $19.90 annual plan for the bricklayer is enough, and there are some official discount codes (6% discount:  BWH1ZBPVK) online that can be used. Recently, the chair has been used more frequently, and it is inevitable that I will feel impatient if I climb slowly. Try to use BBR acceleration, the speed has increased several times.
 I didn't pay attention to the choice of VPS at first, and encountered a lot of problems in the process of configuring BBR. First, I have a general understanding of what a VPS is . Bricklayer's VPS virtualization technology uses OpenVZ or KVM , and you can basically choose the configuration method based on this.
 First post the basic configuration of the VPS I use

10G VZ PROMO V3 - LOS ANGELES - CHINA DIRECT ROUTE

 The following method is only applicable to the OpenVZ platform and the background needs to open TUN/TAP
 . The one-click installation script of LKL is used.

  1. LKL requires the version of ldd to be at least 2.14. At present, I have tested it. If you don't want to toss, it is recommended to install CentOS7, Debian8 and Ubuntu16 directly.
  2. The installation package only uses 64bit systems
  3. The default port forwarding only forwards the ports 9000-9999. If you don't want to bother to modify it, please set the port of ssr and other applications in this range

text


1. LKL one-click package command

wget --no-check-certificate https://github.com/91yun/uml/raw/master/lkl/install.sh && bash install.sh
2. How to judge whether
ping 10.0.0.2
the installation is successful? If 10.0.0.2 can be pinged successfully, it means it is successful, and if ping fails, it means failure

3. If you modify the forwarding port
1. Modify /root/lkl/run.sh, find 9000-9999, and change it to the port segment you want
2. Modify /root/lkl/haproxy.cfg to find 9000-9999 and change it to you Desired port segment
3. Restart vps


Install Shadowsocks

  • Install pip
    pip is a package management tool for python, you need to install Shadowsocks through pip.
    curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
    python get-pip.py
  • Install Shadowsocks
    pip install shadowsocks
    After the installation is complete, you can /etc/shadowsocks.jsonstart Shadowsocks through the configuration file. The parameters are as follows:

    {
    "server": "0.0.0.0",
    "server_port": 9878,
    "password": "iampassword",
    "method": "aes-256-cfb"
    }

illustrate:

  • methodis the encryption method, optional aes-128-cfb aes-192-cfbaes-256-cfb, bf-cfb, cast5-cfb, des-cfb, rc4-md5chacha20, salsa20, rc4, table;

  • server_portlisten port for service

ssserver -p 9878 -k iampassword -m aes-256-cfb -d start
It is also possible to start the stop command directly via the command with parametersssserver -d stop

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325764950&siteId=291194637