Filter an existing pcap offline
Re-filter a saved capture without re-running it; BPF applies on read
tcpdump -nn -r /tmp/cap.pcap 'port 443 and host <ip>'
- tool
- tcpdump18 commands
More tcpdump commands
-
tcpdump -nn -e -i any port 53Show DNS lookups with MAC addresses (-e) to map queries to clients on the LAN
-
tcpdump -i eth0 -nCapture all traffic on eth0 without DNS resolution
-
tcpdump -i eth0 -w /tmp/capture.pcapSave raw packets to PCAP file for Wireshark analysis
-
tcpdump -r /tmp/capture.pcap -n | head -50Replay and display packets from a saved PCAP file
-
tcpdump -i any host 10.0.0.5 -nCapture only traffic to/from a specific IP