Tcpdump cheat sheet

From wiki.comcert.com
Revision as of 15:07, 14 June 2018 by Bert (talk | contribs)
Jump to navigation Jump to search

Display packtes from <host> on interface eth0:

tcpdump -i eth1 -n host <HOST>

 

Save packets to trace file on interface eth0 with the exclusion of SSH traffic:

tcpdump -i eth0 port not 22 -w <path>

 

Save packets to trace file on interface eth0 - icmp only:

tcpdump -i eth0 icmp -w <path>

 

To stop:

<Enter>