Packs / tcpdump Recipes

Pack 02

tcpdump Recipes

20 practical commands for capturing and reading network traffic

For cyber students, homelabbers and junior network or security staff who need to capture and read network traffic from the command line. Twenty recipes cover choosing an interface, writing filters that work, watching DNS, ARP, DHCP and new connections, saving and slicing captures, and spotting a port scan. Each recipe ends with the real output it produced on an isolated lab network, with the tcpdump version and test date.

US$12local taxes calculated at checkout

Buy on Gumroad

Checkout and download are handled by Gumroad.

Cover of tcpdump Recipes

What you get

  • tcpdump Recipes PDF: 20 recipes
  • One-page tcpdump cheat sheet PDF
  • Edition 1

What it covers

  • Choose and filter traffic
  • Watch key protocols
  • Save and slice captures
  • Spot scans and suspicious activity

Tested on

Tool
tcpdump 4.99.6
System
Kali GNU/Linux Rolling
Lab runs
21 and 22 Nov 2026, on an isolated lab network

Only capture on networks you own or have written permission to monitor.

A sample page from tcpdump Recipes
A page from the pack.

The 20 recipes

Getting started

  1. 01Find the right interface to capture on
  2. 02Take a quick first capture
  3. 03Make the output readable

Filtering what you capture

  1. 04Capture traffic to or from one host
  2. 05Capture one port or service
  3. 06Combine filters without tripping on quoting
  4. 07Leave out your own SSH session
  5. 08Capture a whole subnet

Watching specific protocols

  1. 09Watch DNS lookups
  2. 10Watch ARP and spot address conflicts
  3. 11Watch pings and traceroutes
  4. 12Catch new TCP connections only
  5. 13See what's inside the packets
  6. 14Watch DHCP handing out addresses

Saving and reading captures

  1. 15Save a capture for Wireshark, and read it back
  2. 16Rotate files on long-running captures
  3. 17Control how much of each packet you keep
  4. 18Pull a smaller capture out of a big one

Putting it to work

  1. 19Capture remotely, watch in local Wireshark
  2. 20Spot a port scan in captured traffic

Also in a bundle