tcpdump Shows the Traffic That Reaches Its Observation Point
tcpdump captures network packets and displays descriptions of them. You control it by typing text commands. A packet is a unit of data traveling over a network. The tool can show details of an exchange that a simple “connection failed” message leaves out.
It collects from a network interface, the point where a computer sends or receives network traffic. An Ethernet connection or a wireless adapter can provide such an interface. Choosing it is choosing where to observe the exchange.
The tcpdump manual describes both live capture and reading previously saved packets. The tool's job is observation and inspection; displaying a suspicious packet doesn't block it.
See What Your Computer Is Really Sending
Start with the exchange you need to see
Suppose a computer tries to contact a service and receives no useful result. A capture could help show whether requests left through a selected interface and whether replies appeared there.
That is a narrower question than whether the whole network works. Traffic that never reaches the observation point won't appear merely because tcpdump is running.
The -i option selects an interface. It doesn't mean “incoming only”: choosing an interface and choosing a traffic direction are separate operations, with direction support depending on the platform.
A capture filter narrows the packets included. It can select a network address, a protocol or a port. A protocol supplies communication rules; a port is a numbered destination for network traffic.
The project's filter documentation explains that these expressions match fields in packets. A filter for a particular port isn't a test proving that the contents use a particular application protocol. Nor will it collect that application's traffic if the traffic uses another port.
Source and destination filters describe the addresses or ports in the packet. They aren't universal synonyms for incoming and outgoing traffic at every interface.
A summary and a capture file contain different things
In the terminal, the window where you enter commands, tcpdump prints a readable description of matching packets. Depending on the packet and display options, that can include addresses, timing and other details. A packet's header carries handling information; its payload contains what that layer is carrying.
The -w option instead writes captured packet data to a file for later inspection. It doesn't create an ordinary text report just because someone chooses a filename ending in .txt. The -r option reads a saved capture file.
That separation lets an investigator preserve the captured packets and examine them again with different display choices. It doesn't restore traffic omitted by a capture filter or missed during collection.
Capturing also depends on the permissions available to the program. A busy capture mechanism may drop packets if its buffer fills. That buffer is temporary storage for packets waiting to be processed. Reported drop counts can help interpret a capture, although reporting differs by platform; a zero isn't always proof that nothing was missed.
- See every packet on a link without slowing it down.
- Feed a monitoring tool real traffic instead of a sample.
- Power it from a USB port, with no extra adapter to carry.
Seeing the envelope doesn't open encrypted contents
An encrypted connection can still expose handling details useful for troubleshooting. Its application data may remain unreadable in the capture.
For example, Transport Layer Security, or TLS, protects application data across its connection. Capturing those packets doesn't automatically reverse that encryption.
So the absence of a readable message isn't the same as the absence of traffic. In the failed-connection example, tcpdump may show the request and reply without revealing the private contents they carry. That can still narrow the investigation to the next question: the exchange happened here, so where did the expected work stop?
Packet Sniffing: What a Record of Network Traffic Can Reveal

Promiscuous Mode and the Packets Your Computer Never Sees

What Is Wireshark?

QUOTE:
"Amateurs hack systems, professionals hack people."
