Wireshark Tutorial
Learn Wireshark step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Wireshark? Learn what Wireshark is, what a packet analyzer shows you, what it can and cannot see, when to use it, and the legal rules for capturing network traffic.
- Installing Wireshark and a Tour of the Interface Install Wireshark on Windows, macOS or Linux with the right capture permissions, then learn the packet list, packet details and packet bytes panes.
- Packets, Layers and Encapsulation Understand how Ethernet, IP, TCP and application data nest inside each packet, and how Wireshark's layered Packet Details tree maps to real header bytes.
- How Capturing Works: libpcap, Npcap and Capture Files See how packets travel from the network card to Wireshark: promiscuous mode, libpcap and Npcap, BPF filters, snapshot length, and the pcap and pcapng file formats.
Capturing Traffic
- Choosing Interfaces and Capture Options Pick the right interface, understand switches, SPAN ports and taps, and set promiscuous mode, snaplen, buffer size and stop conditions in Wireshark's capture options.
- Capture Filters (BPF) Learn Berkeley Packet Filter capture filter syntax: host, net, port, protocols, flags, and, or, not. See how capture filters differ from display filters.
- Wi-Fi, Monitor Mode and Special Captures Capture 802.11 Wi-Fi frames with monitor mode and radiotap, and learn loopback, the Linux any device, USB, Bluetooth and remote capture over SSH with extcap.
- dumpcap, tshark and Long Captures Capture from the command line with dumpcap, tshark and tcpdump, use ring buffers and autostop conditions, and keep long captures small, safe and searchable.
Filters and Display
- Display Filter Basics Learn Wireshark display filter basics: protocol names, fields like ip.addr and tcp.port, comparisons, the filter bar colors, Apply as Filter and filter buttons.
- Display Filter Operators and Logic Master Wireshark display filter operators: comparisons, contains, matches regex, in sets, slices, bitwise tests, logical and/or/not, functions and common gotchas.
- Columns, Coloring Rules and Profiles Customize Wireshark: add columns from any field, choose time display formats, write coloring rules, and keep layouts, filters and colors in configuration profiles.
- Find, Follow Streams and Export Search packets, mark and comment, follow TCP, UDP, TLS and HTTP streams, open conversations by tcp.stream, and export objects and packet subsets safely.
Protocol Analysis
- Ethernet and ARP Read Ethernet II frames, MAC addresses, VLAN tags and ARP request and reply packets in Wireshark, with filters, gratuitous ARP and duplicate address checks.
- IP and ICMP Understand the IPv4 header, TTL, fragmentation and DF, and ICMP echo, unreachable and time exceeded messages, with filters, a header parser and a traceroute model.
- TCP: Handshake and Sequence Numbers Read TCP in Wireshark: header fields, flags, the three-way handshake, options like MSS and window scaling, relative sequence numbers and connection teardown.
- UDP and DNS Read UDP datagrams and DNS messages in Wireshark: the 8-byte UDP header, query and response structure, record types, response codes, TCP fallback and DNS filters.
- HTTP and the TLS Handshake Analyze HTTP requests and responses in Wireshark, then see what you can and cannot read in TLS: Client Hello, SNI, ALPN, versions, certificates and encrypted data.
- DHCP and Other Everyday Protocols Read the DHCP discover, offer, request and acknowledge exchange with options in Wireshark, and recognize NTP, mDNS, SSH, FTP, SMTP, SMB and other common protocols.
- IPv6 and Neighbor Discovery Read IPv6 captures in Wireshark: address types, the fixed header, extension headers, ICMPv6, neighbor and router discovery, SLAAC, solicited-node multicast and filters.
Troubleshooting Networks
- A Packet-Level Troubleshooting Workflow Learn a repeatable method for network troubleshooting with Wireshark: define the symptom, capture at the right place, narrow the data, and prove the cause.
- Slow Networks: Retransmissions, Duplicate ACKs and Latency Diagnose slow connections in Wireshark: spot retransmissions, duplicate ACKs, out-of-order segments and high latency, and learn what each one means.
- Diagnosing DNS and DHCP Problems Find DNS failures, slow lookups and DHCP issues in Wireshark: read response codes, measure query time, follow the DORA exchange and spot rogue servers.
- TCP Windows, Resets and Stalled Connections Understand TCP flow control and connection errors in Wireshark: zero window, window full, RST packets, refused connections and half-open sessions.
Security Analysis
- Spotting Port Scans in Captures Learn how port scans look in a packet capture, which Wireshark filters expose them, and how defenders build simple detection logic. Authorized analysis only.
- Detecting ARP Spoofing and Other LAN Anomalies Learn how ARP works, how spoofing and duplicate-IP conflicts appear in Wireshark, and how defenders detect them with filters, expert info and simple scripts.
- Analyzing Suspicious Traffic: Beaconing and DNS Anomalies Learn how defenders spot compromised hosts in captures: periodic beaconing, odd DNS, unusual user agents and data exfiltration, with safe sample-data detectors.
- TLS Handshakes and Finding Cleartext Exposure Read a TLS handshake in Wireshark, check versions and ciphers, and audit your own network for cleartext protocols that expose passwords. Defensive guide.
Statistics and Automation
- Statistics: Conversations, Endpoints and I/O Graphs Use the Wireshark Statistics menu to summarize a capture: Protocol Hierarchy, Conversations, Endpoints, I/O Graphs and Expert Information, plus how to script the same numbers.
- tshark: Wireshark on the Command Line Use tshark, Wireshark's command-line tool: capture to files, read pcaps, apply filters, extract fields to CSV, and build quick statistics for scripts and servers.
- Parsing PCAP Files with Python Understand the pcap file format and decode Ethernet, IPv4, TCP and UDP headers with Python's struct module, then automate analysis and use tshark from scripts.
Advanced Techniques
- Decrypting Your Own TLS Traffic with a Key Log File Learn how to decrypt TLS in Wireshark for debugging your own apps: the SSLKEYLOGFILE method, how session secrets work, setup steps, and the legal and safety limits.
- Profiles, Coloring Rules, Custom Columns and Lua Dissectors Customize Wireshark for different jobs: configuration profiles, coloring rules, custom columns, display filter macros and a first Lua dissector for a custom protocol.
- Handling Large Captures: Ring Buffers, editcap and mergecap Work with huge capture files: ring buffers, capture filters and snap length, splitting, merging and trimming with editcap and mergecap, and performance tips.
Projects and Practice
- Project: Baseline Your Home or Lab Network A hands-on project: capture your own network for a day, record normal protocols, talkers and DNS habits, and write a baseline you can compare against later.
- Project: Reconstruct an Incident Timeline from a Capture Practice incident response analysis: take a sample capture of a suspicious host, extract key events, order them in a timeline, and write a clear findings report.
- Project: Build a TCP Health Report Tool Build a small analysis tool that reads packet records, groups them by TCP stream, finds retransmissions, resets and slow handshakes, and prints a ranked health report.
- Practice: Filter and Analysis Challenges Test your Wireshark skills with display filter exercises, scenario questions and a small filter engine to experiment with, plus model answers for self-checking.