Created
August 14, 2013 13:00
-
-
Save Plou/6230827 to your computer and use it in GitHub Desktop.
Allow to set a max download rate to limit bandwith consumption to any port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // set max down rate to 625 Kb/s on ssh port (git : 9418) | |
| sudo ipfw pipe 1 config bw 5000KByte/s | |
| sudo ipfw add 1 pipe 1 src-port 22 | |
| // delete the rule | |
| sudo ipfw delete 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment