Cybersecurity-Mastery

Home › Cheatsheets › Wireshark/tshark Filter Cheatsheet

Wireshark/tshark Filter Cheatsheet

Display and capture filters for fast triage. Printable: use your browser's Print → Save as PDF.

Domain: Networking · Last updated 2026-08-12

Quick reference

This cheatsheet is a fast recall aid, not a tutorial — learn the concepts in the Manual, then keep this beside you while you work.

Capture filters (BPF — set before capture)

FilterMatches
host 10.0.0.5To/from a host
net 10.0.0.0/24A subnet
port 443A port
tcp port 80 or tcp port 443Web traffic
not arp and not stpDrop noise

Display filters (after capture)

FilterMatches
ip.addr == 10.0.0.5Host either direction
tcp.port == 22SSH
http.request.method == "POST"POSTs
http.response.code == 200200 OK
dns.qry.name contains "exfil"Suspicious DNS
tcp.flags.syn==1 && tcp.flags.ack==0SYN scan probes
tls.handshake.type == 1ClientHello
frame contains "password"Bytes match
tcp.analysis.retransmissionRetransmits

Workflow

Right-click a packet → Follow → TCP/HTTP Stream to reassemble a conversation. Statistics → Conversations / Protocol Hierarchy for a top-down view. tshark -r cap.pcap -Y 'http.request' -T fields -e ip.dst -e http.host -e http.request.uri

Cybersecurity-Mastery — interactive security learning · runs locally