Bogdan Taru wrote:
>
> Hi,
>
> I'm interested in a piece of software which can tell me the traffic (MB)
> on the different IPs behind the gateway ( == the linux machine. I don't
> have a router...) in a definite period of time. If you know a software
> which does that, please let me know...
>
Assumin youn want to know how many packets/bytes come in/go out of eth0:
# ipchains -A input -i eth0
# ipchains -A output -i eth0
do stuff...
# ipchains -L input -v
# ipchains -L output -v
More on ipchains in the ipchains HOWTO and in the man page.
Note that you need at least kernel 2.1.103 for that to work, but there
are patches available for 2.0.x kernels (ipchains is the new firewalling
solution in the kernel, so you need to enable firewalling in the kernel
config to use the above, although you don't really firewall...)
Marc
--
Marc Mutz <[EMAIL PROTECTED]> http://marc.mutz.com/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics
PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)