0Pricing
Linux Command Line Mastery · Lesson

Capturing and Inspecting Traffic with tcpdump

Round out your networking and security toolkit by capturing live packets and applying filters with tcpdump to diagnose connectivity and security issues.

Seeing the Wire

Diagnostics like ping and dig tell you whether something works, but sometimes you need to see the actual packets. tcpdump captures network traffic in real time.

Listing Interfaces

First find which interface to listen on with -D. Common names are eth0, wlan0, or en0.

sudo tcpdump -D

All lessons in this course

  1. Network Diagnostics: `traceroute`, `nslookup`, `dig`
  2. Firewall Management: `ufw`, `firewalld`, `iptables`
  3. Secure Shell Key Management
  4. Capturing and Inspecting Traffic with tcpdump
← Back to Linux Command Line Mastery