[cups.general] limit page prints by ip and hour
alet at librelogiciel.com
Wed May 28 07:08:40 PDT 2008
On Wed, May 28, 2008 at 06:59:42AM -0700, wolfbuda wrote:
> Hi there,
> I would to like to know if it's possible to limit print pages on
> client ip by hour. For example the ip 192.168.13.25 only can print
> 20 pages per hourâŠ.
To the best of my knowledge this is not possible with CUPS' accounting
You can do this easily with PyKota (http://www.pykota.com) on top of
CUPS though. There's no real documentation for this, but you simply need
to use the 'overwrite_jobticket' directive to replace the job's username
with the client's ip address, and then use ip addresses everywhere you
would use an username. Then in a cron job reset quotas every hour.
More information about the cups