|
|
|
|
/ home
/ projects
/ ulacc
ulogd Accounting Module
As part of my UAS software suite (Users Aren't Stupid), I have a Traffic
Accounting module for use with Harald Welte's ulog
netfilter target. I've been looking for a decent 2.4 Kernel traffic accounting module for a while and
gave up and wrote my own.
This module has one fairly interesting feature. Most networks that I
administrate are generally quite dynamic. That is, all the workstations
on it are assigned their network details and IP Address via DHCP. As
some of my clients wished to have accounting down to the workstation
detail, I've made this particular module use a mixture of the IP and
MAC. This means that if a workstation gets a new IP, it will still have
traffic statistics applied correctly to it. If more than one IP has the
same MAC, as when they are behind a router, then accounting will still
work, but will only give totals for all addresses. This means I'm
trusting the MAC rather than the IP, and I am using two tables, one
to store MAC's and one to store IP's, with a relationship of one MAC
to many IP's. NOTE: Both a MAC and IP can be forged, but this is a topic
for another discussion.
|
 |
|
|
| |
| |
Copyright 2004 WorldGuard Technologies Pty Ltd (ABN 57 094 803 237) All Rights Reserved.
|
|
|
|
|
|