문제

Trying to start learning tcpdump. However whenever I try to use it rather than giving me a list of adapters when using tcpdump -nS, I get:

tcpdump: WARNING: SIOCGIFADDR: dbus-system: No such device
tcpdump: packet printing is not supported for link type DBUS: use -w

From tcpdump -D:

1. dbus-system
2. dbus-session

From tcpdump -w:

tcpdump version 4.5.1
libpcap version 1.5.1
도움이 되었습니까?

해결책

You need to run tcpdump as root. Otherwise, tcpdump -D will not show all of the possible devices.

Then you need to specify the interface you wish to capture on, with -i:

tcpdump -i eth0

If unspecified, tcpdump searches the system interface list for the lowest numbered, configured up interface (excluding loopback).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top