background
I set up BBR when building a VPN server, so this is a memorandum of that experience. In this article, I will just briefly note down the setting method. The settings are done as root. If you are not running as root, add "sudo" at the beginning of the command.
setUpBBR
First, check whether BBR is currently configured. You can check it with the command below.
cat /proc/sys/net/ipv4/tcp_congestion_control
If the above command is executed and "bbr" is displayed, there is no need to configure it. Download the script for BBR configuration
wget https://github.com/teddysun/across/raw/master/bbr.sh
Grant execution permission to the downloaded script.
chmod +x ./bbr.sh
Run the script.
./bbr.sh
When you run the script, the screen above will be displayed, so if there are no problems, press any key to run it. To cancel, press “CTR” and “C” at the same time. (The image is not from the time of setting)
[Info] The system needs to reboot.
Do you want to restart system? [y/n]
After a short wait, a message like the one above will be displayed, so press "y" to restart. If you can't press it, you can restart it manually. After rebooting, use the first command to check if the settings are correct.