Tcpdump is a command line utility that allows you to capture and analyze network traffic going through your system.
For example, if a primitive of 80 is specified along with a type port, then the primitive value of 80 stands for port number 80. The type qualifier specifies the type of the primitives. There are three different qualifiers in the syntax - namely, type, dir, and proto. Besides that, we know that this packet is an IP packet, as the protocol is displayed beside the timestamp. Let’s take a deeper look into one example packet dump: 10:33:18.583077 IP 927e94ccde39.54226 > 192.168.65.4.53: 39122+ AAAA? (34)įrom the output, we can identify the time this packet has been captured. Then, it captures and prints to console any packets going through the interface.įrom the output, we can see the details of the network packet in each row. In this case, it has chosen eth0 as the interface to listen on.
When we don’t specify an interface, tcpdump will listen to the lowest numbered interface among the list of interfaces on the system.
DEBIAN INSTALL TCPDUMP FULL
Tcpdump: verbose output suppressed, use -v or -vv for full protocol decode Let’s run tcpdump with its default configuration, without any flags or expression: $ tcpdump