All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peteris Krumins <newsgroups@lf.lv>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] medir trafico
Date: Mon, 12 Apr 2004 18:54:30 +0000	[thread overview]
Message-ID: <1014727056.20040412215430@lf.lv> (raw)
In-Reply-To: <NHBBLNDNFKDMKNNKGOMMIEJGGBAA.gregoriandres@yahoo.com.ar>

Tuesday, April 6, 2004, 9:59:55 PM, you wrote:

TL> hola  listeros!

I do not understand that (Spanish?) language, but I guess you want
a tool which would output traffic statistics?

I have created for the ISP i work for, pretty simple tool.
If some people wanted, I could share it under GPL.

+-[ traffic for: 2004-04-11 , traffic in KiloBytes ]------------+---------------+
| IP Address       | Latvia IN    | Latvia OUT   | Foreign IN   | Foreign OUT   |
+------------------+--------------+--------------+--------------+---------------+
| 10.1.1.100       | 759          | 9613         | 320          | 2265          |
| 10.1.1.12        | 1663         | 1296         | 145          | 17            |
| 10.1.1.194       | 243074       | 1868167      | 62063        | 2094          |
| 10.1.1.21        | 596          | 1225         | 119          | 26            |
| 10.1.1.26        | 2            | 2            | 5            | 4             |
(lots more more)
| 10.5.9.2         | 0            | 0            | 2271         | 419           |
+------------------+--------------+--------------+--------------+---------------+
| total: ---   IPs | XXXXXXXXX    | XXXXXXXXX    | XXXXXXXXX    | XXXXXXXXX     |
+------------------+--------------+--------------+--------------+---------------+
| total:           | Latvia: XXXXXXXXX           | Foreign: XXXXXXXXX           |
+------------------+--------------+--------------+--------------+---------------+


The accounting is done via Netfilter, runs only on Linux.
For each IP a single rule is created. Perl script walks through (takes
output of `iptables') these rules, reads counters and zeros the tables.
Other Perl scripts output data to text files, generates the ascii
table seen above, puts data into database and the last script
mails the ascii table.


P.Krumins

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2004-04-12 18:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 18:59 [LARTC] medir trafico ThE LinuX_KiD
2004-04-06 19:00 ` rubens
2004-04-06 19:05 ` Neilson Henriques
2004-04-07 19:24 ` Jose Luis Domingo Lopez
2004-04-12 13:23 ` Gastón
2004-04-12 18:54 ` Peteris Krumins [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1014727056.20040412215430@lf.lv \
    --to=newsgroups@lf.lv \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.