update (was: Re: Measuring network traffic of a particular program?)

2006-09-06 Thread Amos Shapira
On 15/08/06, Nadav Har'El [EMAIL PROTECTED] wrote: suggested, is to use iptables: Run Skype, and then use iptables'--pid-owner or --cmd-owner option to add an iptables rule which willallow traffic from this process. Then use iptables -nvL to get the count of packets and bytes that passed through

Re: Measuring network traffic of a particular program?

2006-08-15 Thread Nadav Har'El
On Tue, Aug 15, 2006, Amos Shapira wrote about Measuring network traffic of a particular program?: Following some recent article about Skype's network load which isn't consistent with my experience, I'd like to try to measure the network traffic generated by my Skype process. One thing you

Re: Measuring network traffic of a particular program?

2006-08-15 Thread Ira Abramov
Quoting Amos Shapira, from the post of Tue, 15 Aug: Now it's not that trivial to just watch a particular TCP or UDP port (or even a port range) since my Skype is defined as a Super-node which exposes it to the net and apparently causes it to open variable port numbers. (I did this because it

Re: Measuring network traffic of a particular program?

2006-08-15 Thread Amos Shapira
On 15/08/06, Nadav Har'El [EMAIL PROTECTED] wrote: One thing you might want to try, which is much simpler than the ideas yousuggested, is to use iptables: Run Skype, and then use iptables'--pid-owner or --cmd-owner option to add an iptables rule which will allow traffic from this process. Then use

Re: Measuring network traffic of a particular program?

2006-08-15 Thread Amos Shapira
On 15/08/06, Ira Abramov [EMAIL PROTECTED] wrote: check the instructions again, Skype need only one TCP and one UDP portsopen, and you can even select which. I chose myself a port, set it toOf course I read the instructions - otherwise I wouldn't have been able to setup Skype as a super-node