description | Simple, efficient and distributed traffic accounting daemon. |
homepage URL | http://leet.c/iptagrab |
owner | kt@leet.cz |
last change | Sun, 12 Oct 2008 22:38:59 +0000 (13 00:38 +0200) |
URL | git://repo.or.cz/iptagrab.git |
| https://repo.or.cz/iptagrab.git |
push URL | ssh://repo.or.cz/iptagrab.git |
| https://repo.or.cz/iptagrab.git (learn more) |
bundle info | iptagrab.git downloadable bundles |
content tags
|
|
readme
For efficient and distributed traffic accounting.
Binds to a TCP port and reports given ipt_{account|ACCOUNT} table
contents every once a while. Daemon accepts arbitrary number of clients,
no buffering is done -> client not capable of receiving the buffer
within TICK period will be disconnected.
Output format:
<timestamp> <ip> <src pkts> <src bytes> <dst pkts> <dst bytes>
Added sqlite accounting feature, table schema:
CREATE TABLE iptraf (pkt_up integer, b_up integer,
pkt_dn integer, b_dn integer, time integer,
ip string, <your fields>, unique(ip,time));
First 6 fields are hardcoded to their positions,
you can use custom fields after that.
TODO: be nicer beyond simple asserts()