When I try to dump some traffic on my vserver's network interface, I get an error that I'm not allowed to do that:
# tcpdump -p -i eth0
tcpdump: eth0: You don't have permission to capture on that device
(socket: Operation not permitted)
I guess the problem is that my server provider seems to use a virtualization solution with shared Linux kernel (uname returns "2.6.33.7-vs2.3.0.36.30.4-netcup" as version).
Any way that allows me to dump outgoing traffic from a single process?
You could try using the
strace
command to trace the system calls your application is making. Something like this:This will launch
/path/to/my/command
under control ofstrace
. It will log allread
andwrite
system calls (so not just network traffic, but any other i/o) to a file calledtrace
. It will log up to 8192 characters for each read/write call.This may or may not be helpful for your current situation.