VPS one-click scripts

Enable BBR Tutorial (TCP BBR on Debian, Ubuntu, CentOS)

This tutorial shows how to enable in-tree TCP BBR on a Linux VPS with xyz.sh/bbr. It only changes sysctl settings, does not replace the kernel, and does not claim any speed-up or benchmark result.

Command
$ curl -fsSL xyz.sh/bbr | bash

Details · xyz.sh/bbr · Last updated:

Prerequisites

You need Linux 4.9 or later with the tcp_bbr module available, plus root. Typical Debian, Ubuntu, CentOS, Rocky, and AlmaLinux kernels include the module, but the script checks the machine itself.

If the module is missing, the script exits with an error and will not compile or install a new kernel.

Steps

As root, run: curl -fsSL xyz.sh/bbr | bash

After confirmation, the script writes /etc/sysctl.d/99-xyz-bbr.conf with net.core.default_qdisc = fq and net.ipv4.tcp_congestion_control = bbr, then applies it with sysctl -p.

To inspect the current state only, use bash -s -- --status.

How to verify

Run curl -fsSL xyz.sh/bbr | bash -s -- --status, or check that sysctl net.ipv4.tcp_congestion_control is bbr.

This tutorial does not compare BBR with other congestion controls; results vary by path and load.

How to revert

There is no --uninstall flag. Delete /etc/sysctl.d/99-xyz-bbr.conf, then run sysctl --system, or set net.ipv4.tcp_congestion_control back to its previous value (often cubic).