tcpdump

Tcpdump commands. Useful when taking a look at the network.

tcpdump -w filename.pcap  # to write
tcpdump -r filename.pcap  # to read
# Filters:
tcpdump host <ip address>
tcpdump src host <ip address>
tcpdump dst host <ip address>
tcpdump dst port 8080
tcpdump host 10.12.23.34 and port 8080

Leave a comment

Your email address will not be published. Required fields are marked *