|Version 2 (modified by Morty, 3 years ago) (diff)|
As bandwith mangement is currently not supported by bb, this must be done by other means.
Linux supports bandwith management. The solution presented works, if you only want to limit bb, but no other applications. It an adjusted version of the code shown at http://lartc.org/howto/lartc.ratelimit.single.html It is also explained there.
There are two files - tc_init.sh and tc_change.sh - attached to this wiki-page. You need to configure both of them. You have to run tc_init.sh at startup. You can add it to your if-up, or just start it manually or whatever (Feel free to add more info to the wiki). The tc_change.sh can be used to change the bandwith. This is handy if you want to add it as cronjob. I added a /etc/cron.d/bblimit containing
0 2 * * mon-fri root /opt/tc/tc_change.sh 500kbit 0 16 * * mon-fri root /opt/tc/tc_change.sh 200kbit
- http://www.netlimiter.com/ (Payware)