Skip to content

Instantly share code, notes, and snippets.

@SamSaffron
Created March 20, 2012 06:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SamSaffron/2132065 to your computer and use it in GitHub Desktop.
Save SamSaffron/2132065 to your computer and use it in GitHub Desktop.
Inject 300ms latency into network stack
#!/bin/sh
ipfw -q -f flush
ipfw add pipe 1 in
ipfw add pipe 2 out
ipfw pipe 1 config bw 512Kbit/s queue 30 delay 150ms
ipfw pipe 2 config bw 2Mbit/s queue 10 delay 150ms
ipfw -q add allow all from any to any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment