Wireshark Guide: Network Protocol Analysis
Master Wireshark for network traffic capture, protocol analysis, filtering, and troubleshooting with practical examples.
Why You Need Wireshark
You need to inspect network traffic at the packet level — Wireshark captures and decodes hundreds of protocols in real time. Whether you are troubleshooting a slow connection, analyzing a malware beacon, or learning how TCP handshakes work, Wireshark shows you exactly what is on the wire.
Prerequisites
Installation
# Debian/Ubuntu
sudo apt install wireshark
# macOS
brew install --cask wireshark
# Windows: Download from wireshark.org
Capturing Traffic
sudo tshark -i eth0
sudo tshark -i eth0 -w capture.pcapng
sudo tshark -i eth0 -f "port 80" -w http-traffic.pcapng
Understanding the Interface
Packet List Pane: Summary of all packets with time, source, destination, protocol, info.
Packet Details Pane: Protocol layers in expandable tree structure.
Packet Bytes Pane: Raw packet data in hex and ASCII.
Capture Filters (BPF Syntax)
port 80
host 192.168.1.100
port 53
net 192.168.1.0/24
not arp and not icmp
Display Filters
http
dns
tcp.port == 80
ip.addr == 192.168.1.1
http.request.method == "POST"
tcp.flags.syn == 1 and tcp.flags.ack == 0
dns.qry.name contains "google"
Following Streams
Right-click a packet and select Follow > TCP Stream to see the full conversation.
Statistics and Analysis
Protocol Hierarchy, Conversations, Endpoints, IO Graph, Flow Graph, Expert Info.
Common Mistakes
Capturing without filters on busy networks. Forgetting promiscuous mode. Wrong interface selected.
Best Practices
Use capture filters for large networks. Save with descriptive names. Master keyboard shortcuts.
Related Tools
Related Articles
Summary
Wireshark is the premier network protocol analyzer. Effective use requires understanding capture and display filters, following protocol streams, and leveraging statistics tools.
Knowledge Check
References
Frequently Asked Questions
Continue Learning
Masscan Guide: High-Speed Network Scanner
Learn Masscan for high-speed network scanning with millions of packets per second, covering options, output formats, and practical scanning examples.
Tools · BeginnerHydra Guide: Network Login Cracking Tool
A comprehensive guide to using Hydra for network authentication testing with common protocols, practical examples, and security best practices.
Tools · BeginnerMedusa Guide: Parallel Network Login Auditor
Learn Medusa for parallel network authentication testing with support for multiple protocols, modular design, and practical security assessment examples.
Tools · BeginnerNetwork Scanning with Nmap for Beginners
A beginner-friendly guide to network scanning with Nmap covering host discovery, port scanning techniques, service detection, and practical scanning examples.
Related Security Tools
Wireshark
Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.
Sniffing & SpoofingEttercap
Ettercap is a comprehensive suite for man-in-the-middle attacks. It features sniffing of live connections, content filtering, and active or passive dissection of many protocols.
Sniffing & Spoofingtcpdump
tcpdump is a powerful, lightweight command-line packet analyzer that allows users to capture, parse, and filter TCP/IP and other packets transmitted or received over a network.
Sniffing & Spoofingmacchanger
macchanger is a utility for viewing and manipulating the MAC address of network interfaces. Useful for network anonymity and bypassing MAC filtering.