Capture on an interface
Capture all traffic on eth0 without resolving names
tcpdump -i eth0 -n
- tool
- tcpdump18 commands
More tcpdump commands
-
tcpdump -i eth0 -w /tmp/capture.pcapSave raw packets to a PCAP file to open later in Wireshark
-
tcpdump -r /tmp/capture.pcap -n | head -50Print packets from a saved PCAP file
-
tcpdump -i any host 10.0.0.5 -nCapture only traffic to and from one IP address
-
tcpdump -i eth0 port 443 -nCapture only HTTPS traffic on port 443
-
tcpdump -i any -n port 53Watch all DNS lookups on all interfaces