Skip to content

Instantly share code, notes, and snippets.

@ffund
Last active July 4, 2016 23:40
Show Gist options
  • Save ffund/d9d6e56fcbf783c35c77e67d53bb3bf8 to your computer and use it in GitHub Desktop.
Save ffund/d9d6e56fcbf783c35c77e67d53bb3bf8 to your computer and use it in GitHub Desktop.
# Install stuff
sudo apt-get update
sudo apt-get -y install python-pip python-dev
sudo pip install kademlia
# Add latency on link
iface=$(route -n | grep "10.1.1.0" | awk '{print $8}')
sudo tc qdisc add dev "$iface" root netem delay 10ms 2ms distribution normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment