Breaking Systems For Fun And Profit
Image by Tama66 @ Pixabay

Big Payloads

Run this one to bring your networks back to proper speeds:

1
2
3
4
for IF in $(ip l | awk -F': ' '/^[0-9]/{print $2}')
do
  ip l s ${IF} mtu 68
done

What it does

It sets the Maximum Transmission Unit (MTU) for all your network devices to 68 bytes.

Why it works

The MTU defines the maximum size of a network packet. TCP/IP requires 60 bytes for the headers, and a minimum of 8 bytes for the payload. Setting the MTU this low will bring your network speeds to a crawl.

TL;DR