Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
tcpdump
/
Capture on interface
Capture on interface
tcpdump
Capture all traffic on eth0 without DNS resolution
tcpdump -i eth0 -n
⎘ copy
#tcpdump
#network
#linux
more tcpdump
all 18 commands →
Capture to file
tcpdump -i eth0 -w /tmp/capture.pcap
Read PCAP file
tcpdump -r /tmp/capture.pcap -n | head -50
Filter by host
tcpdump -i any host 10.0.0.5 -n
Filter by port
tcpdump -i eth0 port 443 -n
Capture DNS queries
tcpdump -i any -n port 53