Overview
tcpdump is a command-line packet analyser. It listens on a network interface and prints a one-line description of each packet that matches a filter you give it, with a timestamp. It is developed alongside libpcap, the C/C++ capture library that many other network tools are built on, and both are released under a 3-clause BSD licence.
Filters are written in the pcap filter syntax, so you can narrow a capture to a host, port, protocol or combination of conditions. Instead of printing, tcpdump can write raw packets to a file and read them back later, in pcap or pcapng format, which makes it a common way to grab a capture on a server and analyse it elsewhere. Output files can be rotated by size or time.
It decodes many protocols, including ARP, IPv4, TCP, UDP, DNS, NFS and SMB, and has several levels of verbosity plus hex and ASCII dumps of packet contents. It suits network engineers, system administrators and security people who work in a terminal. Capturing from a live interface usually needs elevated privileges; reading a saved file does not.
Categories
Features
- Captures packets from a network interface and prints a summary of each one
- Boolean filter expressions in pcap-filter syntax
- Saves raw packets to a file and reads pcap and pcapng files back
- Rotates capture files by size or by time
- Decodes ARP, IPv4, TCP, UDP, DNS, NFS, SMB and many other protocols
- Several verbosity levels plus hex and ASCII packet dumps
- Can drop root privileges to another user after opening the capture device
- Stops automatically after a set number of packets
- Source releases come with PGP signatures
Privacy
See the official privacy policy. tcpdump runs locally and writes captures only where you tell it to; note that captures can contain other people's unencrypted traffic.
Pros & Cons
Pros
- Free and open source under a 3-clause BSD licence
- Works over a plain terminal session, so it is practical on remote servers
- Capture files can be opened in other tools that read pcap
- Detailed official man pages for the tool and the filter language
Cons
- No graphical interface
- The filter syntax and many command-line options take time to learn
- Live capture normally needs special privileges
- The official site distributes source code archives rather than ready-made installers
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Captures and analyzes network traffic packet by packet.
Open Source No Signup Windows Linux -
Captures network packets on Windows for analysis tools.
Freemium No Signup Windows -
Packet Analysis · NetworkMiner
Extracts files, credentials, and details from packet captures.
Freemium No Signup Windows Linux