• Rimu
    link
    fedilink
    English
    38•
    edit-2
    2 days ago

    You can disable multipath TCP by issuing this command

    sudo sysctl -w net.mptcp.enabled=0

    persist across reboots with

    echo "net.mptcp.enabled=0" | sudo tee /etc/sysctl.d/99-mptcp.conf


    If your kernel is older than 5.6 then there is no multipath TCP to disable. e.g. Ubuntu 20.04 should be fine.

    • @walderan@sh.itjust.works
      link
      fedilink
      2•
      edit-2
      20 hours ago

      Tacking this on here to increase visibility.
      You can see who is already listening to multipath TCP by running:

      ss -Mln

      running the sysctl command will prevent future ports being opened, but it will not close existing ones, you need to manually restart the services/containers.
      Go applications enable the functionality in their ports by default.
      My understanding is that a proper fix will come from a kernel update, since this affects plain TCP, but MPTCP has a known attack path.