Network traffic logging on Ubuntu 10.04
I am running an Ubuntu 10.04 system as a gateway between my LAN and my Router. I fail with words so a quick image will explain it best I think;
Argh, it won't let me post links. Go here: home(DOT)brooksaar(DOT)com/stuff/network.gif
I'm looking for a program that will:
- Log what IPs my LAN computers have connected to (eg. I can see that 10.0.0.100 is connected to 220.127.116.11, and 10.0.0.102 is connected to 18.104.22.168)
- Log how much bandwidth that connection used.
- Log when it occured.
The logging part is important, I can use various programs to see realtime connections, but that doesn't help when I'm not around. I have tried setting up Cacti for this purpose, but I wasn't able to get it to log the data I wanted unfortunately.
It would be rather helpful if it had a web interface or something similar, but command line is fine (hopefully I could write a script to convert it to something easier on the eyes).
I've been using ntop for this purpose, but it doesn't keep logs very well (as far as I can tell?).
Does anyone know of one?