Skip to content

Instantly share code, notes, and snippets.

@evadnoob
Forked from doctyper/gist:1411283
Last active August 29, 2015 13:56
Show Gist options
  • Save evadnoob/8983775 to your computer and use it in GitHub Desktop.
Save evadnoob/8983775 to your computer and use it in GitHub Desktop.
ipfw, condition network to be slow, even on localhost
# enable
sudo ipfw pipe 1 config bw 50KBytes/s delay 100ms
sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 2 pipe 1 dst-port 80
# disable
sudo ipfw delete 1
sudo ipfw delete 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment