[clug] enforcing network quotas.

Antti.Roppola at brs.gov.au Antti.Roppola at brs.gov.au
Wed Dec 17 02:20:17 GMT 2003

I'd thought about doing this, but the Squid cache poses
a complication. I'd have to have a second set of accounts
on the cache and then decide how that gets apportioned,
presumably if it's not already on the cache when you ask
for it, it gets added to your quota.

Fortunately, my ISP keeping increasing my allowance every
time it starts becoming an issue. :o)


-----Original Message-----
From: Kim Holburn [mailto:kim.holburn at anu.edu.au]
Sent: Wednesday, 17 December 2003 11:57 AM
To: linux at lists.samba.org
Subject: [clug] enforcing network quotas.

I have written a perl script that can enforce network quotas on a linux router.  I wrote it because no-one had anything that would do what I wanted.  I am releasing it GPL for anyone interested.  Actually as written it only sets off an email alarm.  You will have to add the enforcement bit, I'm still struggling to understand tc (http://lartc.org/howto/lartc.ratelimit.single.html).

If you find a better way to do this let me know.

Here it is:

It needs ipstat.pl and net-acct.

Kim Holburn  
Network Consultant - Telecommunications Engineering
Research School of Information Sciences and Engineering
Australian National University - Ph: +61 2 61258620 M: +61 0417820641
Email: kim.holburn at anu.edu.au  - PGP Public Key on request

Life is complex - It has real and imaginary parts.
     Andrea Leistra (rec.arts.sf.written.Robert-jordan)

More information about the linux mailing list