Skip to content

Instantly share code, notes, and snippets.

@foxoman
Forked from StoneMoe/tcp_bbr.sh
Last active February 21, 2017 11:19
Show Gist options
  • Save foxoman/2513fb83806c176979d2b8a1348caedb to your computer and use it in GitHub Desktop.
Save foxoman/2513fb83806c176979d2b8a1348caedb to your computer and use it in GitHub Desktop.
Enable tcp_bbr for your debian/ubuntu (tested on debian)
#write config
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
#apply config
sysctl -p
#set fq to eth
sudo tc qdisc replace dev eth0 root fq pacing
#Backup write config: (Also affect ipv6 tcp)
echo bbr > /proc/sys/net/ipv4/tcp_congestion_control
#Check current status:
cat /boot/config-$(uname -r) | grep BBR
#if the result shows "m", it works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment