Re: iptables traffic accounting...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El sÃb, 04 de 12 de 2004 a las 14:53, Vladimir S. Petukhov escribiÃ:
> sorry for my english...
> How can I calculate total traffic from/to single process?
> It's easy to calculate outgoing traffic using --owner rule, but what's about 
> ingoing?
> process may be identify by PID & uid/euid/gid...

I use a -m owner rule to jump to a chain that only has a RETURN rule
and then read the counters for this chain to obtain the traffic
for that user/process.

-- 
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@xxxxxxxxx
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÃA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux