Skip to content

Instantly share code, notes, and snippets.

@yanbab
Created January 16, 2014 12:21
Show Gist options
  • Save yanbab/8454098 to your computer and use it in GitHub Desktop.
Save yanbab/8454098 to your computer and use it in GitHub Desktop.
Network conditionning on Linux and OSX
# set bandwidth limit, response delay and lost packages :
sudo ipfw pipe 1 config bw 56Kbit/s delay 200 plr 0.2
sudo ipfw add 1 pipe 1 ip from any to any
# Restore by removing the pipe :
# sudo ipfw delete 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment