Optimize VPS network script with one click, significantly improve VPS network speed

When you get a new dedicated server or virtual server (VPS), the first thing to do is to optimize the server's network, especially the speed from overseas servers to China, which will greatly improve.

I will integrate all the things I need to do into a script, which can be executed using the following command.

wget && sudo bash

Specifically, the following points will be addressed:

  1. Update software sources and packages.
  2. Install haveged to optimize the Linux random number generator, which can solve the problem of low system entropy in some cases.
  3. Most importantly, optimize kernel network parameters, specifically adjusting some IPv4 TCP parameters, and enabling the original Linux BBR congestion control algorithm developed by Google, which can significantly improve network speed.
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.