public
Last active

Inject 300ms latency into network stack

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.