On 2004-04-22, jack <(E-Mail Removed)> wrote:
> garg_dinesh wrote:
>> is it possible to count the bandwidth usage through IP Tables?
>
> No. - Iptables does not deal with time in any way. It will count
> traffic, though.
>
> If You define bandwith as "amount of data in a certain period of
> time", this is where iptables alone won't help You.
>
> You can periodically read the counters and divide the difference
> to the last reading by the period of time that has elapsed since then,
> but I don't think that's what You want.
>
> There are other tools around to deal with this.
e.g. ipac(-ng).
That defines iptables rules, read their accounting via cronjob and
save the values to files or a database, and sums up.
--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA --
http://www.frankonia-brunonia.de/keys