iptables - quota patch - periodicallyl reset
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Gaab wrote:
| Hello, | | I want to use your iptables matching rule "quota" for limiting | transfered data within a predefined time span. E.g. not more | than 100 megabytes within 24 hours. Is it posible to reset the | accumulated amount periodically (probably with a cronjob like | "echo 0 > /proc/somewhere/labyrinth/deeper/and_deeper/quota/amount")?
It is not currently possible to examine or manupulate quotas via procfs (at least not directly). Something like this is probably not a bad idea, but I'm not sure how to go about implementing it, nor whether it would be worth the effort given you can accomplish this by creating/deleting rules as appropriate.
I'm more likely to implement soft quotas before I look into more advanced quota manipulation - besides, how would you differentiate between rules in procfs?
Sam
- --
Sam Johnston, Director
Australian Online Solutions
1300 132 809
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+gNM1j4XJViLpTR0RAtwxAJ40DQL8T4rw7TUUOLpsJqZ9qfD/jACeNUHx Z7jdevqwfI5DCpuJsQQ6ILQ=
=X1Gl
-----END PGP SIGNATURE-----