Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tcpdump

Brief

tcpdump is a great util for dump and capture a network traffik Require root permissions to run and assign network interfaces

Tips

  • Capture network traffic and filtering just 80 port in ALL interfaces
# tcpdump -npi any port 80
  • Carture network traffic and filter just destination 53 port in ALL interfaces
# tcpdump -npi any dst port 53
  • Apply several filters as destination port and host
#  tcpdump -npi any dst port 22 and host 127.0.0.1