Wireshark is an open-source network protocol analyzer used for network troubleshooting, analysis, and packet capture. It offers several advanced filtering techniques to help users analyze network traffic more effectively:
Logical Operators: Combine multiple filters using logical operators like "and" (&& or and), "or" (|| or or), and "not" (!) to create complex expressions.
For example:
ip.addr == 192.168.4.1 && ip.addr == 192.168.4.2Regular Expressions: Use regex to match patterns in fields.
For instance:
http.host matches "acme\\.(org|com|net)"Bitwise Operations: Apply bitwise filters to examine specific bits in a field.
Example:
tcp.flags & 0x02Relative Sequence Numbers: Filter TCP packets based on relative sequence numbers.
For example, to find the third packet in a TCP handshake:
tcp.seq==1 and tcp.ack==1Protocol-Specific Filters: Use protocol-specific fields for detailed filtering.
For instance:
http.requestto show only HTTP requests
Combining IP Addresses and Ports: Create filters that target specific communication flows:
ip.src==IP-address and ip.dst==IP-addressExclusion Filters: Use the "not" operator to exclude specific traffic:
!(ip.src == 162.248.16.53)Conversation Filters: Right-click on a packet and select "Apply as Filter" to filter an entire TCP conversation.
Colorization: Configure Wireshark to color packets in the Packet List based on display filters, making it easier to visually identify important packets.
These advanced techniques allow for precise packet filtering, enabling users to focus on specific aspects of network traffic for troubleshooting, security analysis, and performance monitoring.
Via:
https://www.wireshark.org/docs/wsug_html_chunked/
https://www.varonis.com/blog/how-to-use-wireshark
https://www.zenarmor.com/docs/network-basics/what-is-wireshark


