Page 1 of 1

Posted: Fri Dec 29, 2006 11:19 am
by Equis

I want to replace my method of tracking useage as am thinking of using this.

"threshold (integer; default: 256) - maximum number of IP pairs in the accounting table (maximal value is 8192)"

8193 is no way enough for pairs to remember
I increased this (even tho is says it the max) and it still works

What "really" is the max?

Is this method accurate?

Thanks :)

Posted: Fri Dec 29, 2006 12:04 pm
by sergejs
Probably, you have to look for more advanced trafffic-monitoring tool traffic-flow, ... c-flow.php

Posted: Fri Dec 29, 2006 12:09 pm
by Equis
More learning :-)

Thanks :-)

Posted: Fri Dec 29, 2006 12:16 pm
by Equis

Does anyone know where to get a traffic-flow server?

Preferably on that stores in Mysql?

I will google now and report back if I find one.

Posted: Fri Dec 29, 2006 12:19 pm
by sergejs
You have to run program, that collects and maintain traffic-flow accounting information (even on your PC).
My OS provide 'ntop' application from the sources, that is not so complicated in the installation and configration.
You can search in google for similar programs.

Posted: Thu Jan 11, 2007 6:24 am
by Freman
Traffic-flow is no good for me, it doesn't give me the names of the interfaces/usernames of the people connected.

However, I have managed to make threshold 99999 and it does seem to count 99998 in tests (I've never seen it use the other one).

I collect my ip accounting data every 5 minutes, store it in a mysql table per router for 30 minutes then aggogate similar connections (IE: sum(same src -> dest)) into a daily table.

If I could have something like Traffic-Flow that gave me usernames/interface names like ip accounting does - I'd be very, very happy. <- shows the kind of work flow built.

I've written a fully threaded perl daemon that runs through and collects the data 24/7

Posted: Thu Jan 11, 2007 7:14 am
by Equis
Thats awesome, I'll do that, teh netflow is way to much data to store.

Can we have the manual updated?

Can you post your script or is it private?

Looks pretty good

What hareware is your router? I've noticed an rb500 will go to 100% for about 10 seconds or longer if I leave it for a few min's

Not sure it affects flow tho.

I have a linus box as a core router, I want to replace it with ros, its just my linux box does the accounting (ipac-ng)


Posted: Thu Jan 11, 2007 8:20 am
by Freman
We use pc-engines wrap boards for our AC's, there's between 10 and 200 clients per AC.

Unfortunatly sharing of the script is out... They won't even let me share photos of our data center, and really all it is is a bunch of black boxes in racks

I can point you here ... lib/
and here ... ad/

That'll provide multi-threaded fetcher...

The rest of it is mere date calculations, the picture I posted should help with that (c:

Posted: Thu Jan 11, 2007 10:27 am
by Equis
No Problems, thanks heaps for the idea's!

Posted: Thu Jan 11, 2007 1:55 pm
by bjohns
We just devised a php script that grabs the list of gateways from the radius NAS/client table in mysql and gets the output from the cgi and records the values into another table. Main reason was to gather 'free' traffic and credit it back to the user accounts.

I'll see about posting it here once we're finished the project.

Posted: Thu Jan 11, 2007 11:31 pm
by Equis

That would be great :-)