Skip to content

Instantly share code, notes, and snippets.

@BigNerd95
Last active March 31, 2024 18:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BigNerd95/6bff4dd74c23f24a35d9e3e0c2f8c9de to your computer and use it in GitHub Desktop.
Save BigNerd95/6bff4dd74c23f24a35d9e3e0c2f8c9de to your computer and use it in GitHub Desktop.
Install Multipath TCP kernel on Digital Ocean VPS (Ubuntu)

Digital Ocean MPTCP kernel installation guide

Install Multipath TCP kernel on Digital Ocean VPS (Ubuntu)
(all command are launched as root)

Install MPTCP kernel

# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 379CE192D401AB61
# echo 'deb http://dl.bintray.com/cpaasch/deb jessie main' >> /etc/apt/sources.list
# apt-get update
# apt-get install linux-mptcp   # select "install package mantainer" if asked

Edit GRUB

# nano /etc/default/grub

And edit following lines:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_DISABLE_SUBMENU=y
# nano /etc/default/grub.d/50-cloudimg-settings.cfg

And comment following line, if present

#GRUB_DEFAULT=0

Show all installed kernels

# export GRUB_CONFIG=`find /boot -name "grub.cfg"`
# update-grub
# grep 'menuentry ' $GRUB_CONFIG | cut -f 2 -d "'" | nl -v 0

Test kernel

Choose the MPTCP kernel from the list and set it as kernel for next boot only

# grub-reboot 'Ubuntu, with Linux 4.9.60.mptcp'
# reboot

So, if something went wrong, you can reboot again from control panel, and the default kernel will be used

Show actual kernel

Check if you the running kernel is MPTCP

# uname -ir

Change kernel

Set the MPTCP kernel as default

# grub-set-default 'Ubuntu, with Linux 4.9.60.mptcp'
# reboot

Test MPTCP

Check if MPTCP is working

$ curl www.multipath-tcp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment