PDA

Bekijk de volledige versie : Total Download-Volume Limitation



gbrancovici
05-04-2005, 10:58
Hi,

Is there any way to limit the total volume of data that I download in a week?
If there is already a thread on this, please point me to it. I searched on all terms that I could imagine and found nothing.

George
PS: I'm talking about total download-volume in an amount of time, not about bandwidth.

barsju
05-04-2005, 11:48
Shouldn't be to hard to write a script for this.
You can use iptables for counting, and you would need somewhere to store counters to survive reboots. Then you can use crond to run script every 5-10 mins depending on bandwidth and downloadlimit. If the value is greater then limit, insert a rule to drop all traffic bound for WAN. Then on first day of week remove that rule.

S.

gbrancovici
05-04-2005, 12:39
I'll check it. Darkstat's statistics could also be a starting point in this case.

barsju
05-04-2005, 12:43
You can also check out this thread:
http://wl500g.info/showthread.php?t=2067

gbrancovici
09-04-2005, 14:22
I posted unfortunately in another related thread at first:

http://wl500g.info/showthread.php?t=1361&page=2&pp=15

George