Skip to content

Instantly share code, notes, and snippets.

@aolo2
Created September 21, 2023 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aolo2/3732759267d5cebc9c651458e3038a32 to your computer and use it in GitHub Desktop.
Save aolo2/3732759267d5cebc9c651458e3038a32 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo tc qdisc add dev lo root netem loss 10% delay 150ms 100ms distribution normal # tune these numbers to make it less or more terrible
sudo ifconfig lo mtu 1500 # like on the internet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment