LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bandwidth management: speed 128kbps, after 500MB, speed down to 64kbps (http://www.linuxquestions.org/questions/linux-networking-3/bandwidth-management-speed-128kbps-after-500mb-speed-down-to-64kbps-693984/)

zdienos 12-30-2008 11:23 PM

Bandwidth management: speed 128kbps, after 500MB, speed down to 64kbps
 
how to setup the bandwidth, for example:
- normal speed 128kpbs
- quota 500MB
- after quota reached, speed down to 64kbps

squid help???

or some distro maybe?

salasi 01-16-2009 06:03 PM

You could use squid delay pools to throttle bandwidth, but I don't know how you'd detect when a certain amount of bandwidth had been used (and do you mean used by one machine or one user or the whole network or on one interface?).

Well, you could do something like this with iptables; you'd have to set up counters and when the counters get beyond a certain value, throttle the bandwidth, which iptables could do (and reset the counters at some time or another). I really, really don't like this idea, as I feel that firewalling ought to be simple, clean, and as close to provably correct as you can get and doing this kind of silliness in iptables just increases the chances of something bad being included.

Why do you want to do this?

zdienos 01-27-2009 08:07 AM

Quote:

Originally Posted by salasi (Post 3411434)
You could use squid delay pools to throttle bandwidth, but I don't know how you'd detect when a certain amount of bandwidth had been used (and do you mean used by one machine or one user or the whole network or on one interface?).

Well, you could do something like this with iptables; you'd have to set up counters and when the counters get beyond a certain value, throttle the bandwidth, which iptables could do (and reset the counters at some time or another). I really, really don't like this idea, as I feel that firewalling ought to be simple, clean, and as close to provably correct as you can get and doing this kind of silliness in iptables just increases the chances of something bad being included.

Why do you want to do this?

I think is by one machine.
Is there anything such a bandwidth management tool (web based), that use mysql, squid and php?

I'am really really newbie....

i also have tried Smoothwall, Endian (community). But there are no such user authentication with bandwidth management..

(sorry my poor English)


All times are GMT -5. The time now is 10:28 PM.