Using tcpdump on a linux-vserver guest
Posted in October 11th, 2007
by Dennis in System Administration
Tags: linux-vserver, tcpdump
To debug a problem I'm working on, I need to be able to see network traffic on an interface inside a linux-vserver guest. To do this, you have to enable the CAP_NET_RAW capability for that guest.
> echo "NET_RAW" >> /etc/vservers/myserver/bcapabilities
Then just restart the vserver.
I noticed you don't have to enable NET_ADMIN, or unhide the interfaces. I'm not sure if there is much of a security risk on having NET_RAW enabled or not. You can always disable and restart after you're done with tcpdump.
1 user commented in " Using tcpdump on a linux-vserver guest "
Follow-up comment rss or Leave a TrackbackHello. I enjoyed reading your website.
Have a wonderful day and keep up the good work.
Brutellio.
Leave A Reply