Skip to content

Instantly share code, notes, and snippets.

View ardell's full-sized avatar

Jason Ardell ardell

  • Agile Engineering LLC
  • Silverthorne, CO
View GitHub Profile
#!/bin/sh
#
# Use ipfw to throttle bandwidth.
# usage:
# ./throttle.sh # Throttle at default (60KB/s)
# ./throttle.sh 5 # Throttle at custom speed (5KB/s)
# ./throttle.sh off # Turn throttling off
# flush rules
ipfw del pipe 1