Skip to content

Instantly share code, notes, and snippets.

@elfrank
Last active December 14, 2015 06:19
Show Gist options
  • Save elfrank/5041498 to your computer and use it in GitHub Desktop.
Save elfrank/5041498 to your computer and use it in GitHub Desktop.
simulate network latency and lower bandwidth
# display current rules
sudo ipfw show
# create pipe with preferred settings
sudo ipfw pipe 1 config delay 10ms bw 256kbit/s
sudo ipfw add pipe 1 dst-ip 127.0.0.1 dst-port 8000
# flush all the rules
sudo ipfw flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment