[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] traffic question



"AYoung@Home" <ayoung78@xxxxxxxx> wrote:
> If memory servers me right you can set bandwith if that's what you want to
> do per IP via the Cobalt GUI (Raq4i).
>
> Access Server GUI-->Control Panel-->Bandwith (top of page)-->Add, then
> complete.  Of course if you only have 1 IP # then you'll probably not be
> able to restrict.

True, but that just limits the throughput rate.  From what I understand, the
original poster doesn't want to throttle the throughput rate, just limit the
total traffic during a month by turning the site off or pointing it to a
special page when that traffic total is reached.  To answer Peter's
question, I don't think you'll find a solution that stops serving up users'
sites when their traffic hits the quota you've set.  If their month to date
traffic is stored in a text file, db, html source code, etc. it would be
fairly easy for a programmer to write a script which looks up that number
and compares it to the quota and takes action.  Whether that action is
sending an email, tracking their overage so you can bill them, pointing
their site pages to a special page, shutting down their email, etc. or some
combination of those another script will be needed to perform the action.
If you wanted to point to a special page for example, the script would need
to modify the Apache config file and run a command to reload the config
file.  Both will require root privileges and so a script run as root from
cron automatically at whatever frequency makes sense (probably nightly) may
be the way to go.  These are the types of software solutions I build for
clients so if you want to discuss with me off-list feel free to contact me
by email or at the # listed on my site.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/