| I have a linux box doing masquerade with ipchains on two interface.
| Is there any way to count packet emitted from the translated network
| for each IP (and not for the whole translated network) ?
| Masquerade is for about 100 windows workstations and I want to know
| whichs stations are using bandwidth and which are not.
Sure, just put in a separate rule in ipchains for each machine, and
then display with verbose to get counts. However, that beats hell out of
the gateway, since it has to check each source in the rules. The better
way is to pass each packet through a user program and count packets,
size, address, etc. I did a user program once, don't remember the
details, but it took a whole evening of reading and hacking to get it to
work at all.
I don't know where to find an example, but I sure would like one, the
system I used is long since off to a client.
When taking small children to a carnival, always have them go potty
*before* you let them go on the rides, and let them eat all the junk
food and candy *after*.