#!/bin/sh
# latency.sh
oif="em0" # just the interface looking to the outer space
# let's create two seperate pipes
ipfw pipe 1 config delay 10000ms bw 1Kbit/s
ipfw pipe 2 config delay 10000ms bw 1Kbit/s
# let's pipe some traffic
# going in...
ipfw add 1000 pipe 1 all from myurl.com to any in via $oif
# and out...
ipfw add 1001 pipe 2 all from any to myurl.com out via $oif
# that's all
# sudo ./latency.sh