Search Filters
Wireshark provides a vast array of filters to help us focus on specific types of network traffic. Filters in Wireshark can be categorized into Capture Filters (set before starting the packet capture) and Display Filters (used after capturing packets to filter and display specific packets).
1. Capture Filters
Capture filters are applied during packet capture and determine which packets are recorded. These filters use the Berkeley Packet Filter (BPF) syntax.
Capture Specific Protocols
Capture only HTTP traffic:
Capture only TCP traffic:
Capture only UDP traffic:
Capture only ICMP traffic:
Filter by IP Address
Capture packets to or from a specific IP:
Capture packets from a specific subnet:
Filter by Port
Capture traffic on a specific port (e.g., HTTP):
Capture traffic on multiple ports:
Exclude Traffic
Exclude packets to/from a specific host:
Exclude traffic on a port:
Capture Traffic Between Hosts
2. Display Filters
Display filters are used after the packets have been captured to refine what we see. They use Wireshark's own syntax and allow for more advanced filtering options compared to capture filters.
Protocol Filters
Filter by Protocol:
Show only TCP packets:
Show only DNS packets:
Show only HTTP packets:
Show only ARP packets:
Filter by IP Address
Filter by Source or Destination IP:
Source IP:
Destination IP:
Any packets to/from an IP:
Filter by Subnet:
Filter by Ports
Filter by Specific Port:
Source Port:
Destination Port:
Any packets using a port:
Filter by Port Range:
TCP-Specific Filters
Filter by TCP Flags:
SYN packets:
ACK packets:
Reset packets:
FIN packets:
Filter by TCP Errors:
Retransmissions:
Out-of-order packets:
Duplicate ACKs:
ACK lost segments:
HTTP-Specific Filters
Filter by HTTP Methods:
GET requests:
POST requests:
Filter by HTTP Response Codes:
Errors (4xx and 5xx):
Filter by Content Type:
DNS-Specific Filters
Filter by DNS Query or Response:
Show only DNS queries:
Show only DNS responses:
Filter by DNS Error Responses:
ICMP-Specific Filters
Filter by ICMP Type:
Echo Request:
Echo Reply:
Filter by ICMP Error Messages:
Destination Unreachable:
Time Exceeded:
TLS/SSL-Specific Filters
Filter by Handshake Messages:
ClientHello:
ServerHello:
Filter Encrypted Traffic:
Application-Layer Filters
Filter by Payload Content:
Search for specific text in the payload:
Search for JSON with specific keys:
Filter for Specific SQL Errors:
Error Filters
General Error Filters:
Warnings:
Other Filters
Filter by Frame Length:
Frames larger than 1000 bytes:
Filter by Time:
Packets captured after a specific time:
Custom Filters: Combine multiple filters using
and
,or
, andnot
:
Last updated
Was this helpful?