The filtering capabilities of Wireshark are very comprehensive. You can filter on just about any field of any protocol, even down to the HEX values in a data stream. Sometimes though, the hardest part about setting a filter in Wireshark is remembering the syntax.
So below are the most common filters that I use in Wireshark. Please comment below and add any common ones that you use as well.
[Sets a filter for any packet with 10.0.0.1, as either the source or dest]
ip.addr==10.0.0.1 && ip.addr==10.0.0.2
tcp.time_delta > .250
tcp.port==4000
tcp.flags == 0x012
ip.addr == 10.0.0.0/24
[Shows packets to and from any address in the 10.0.0.0/24 space]frame contains traffic
[displays all packets that contain the word ‘traffic’. Excellent when searching on a specific string or user ID]
!(arp or icmp or stp)
[masks out arp, icmp, stp, or whatever other protocols may be background noise. Allowing you to focus on the traffic of interest]
eth[0x47:2] == 01:80 [This is an example of an offset filter. It sets a filter for the HEX values of 0x01 and 0x80 specifically at the offset location of 0x47]
tcp.analysis.flags && !tcp.analysis.window_update
So there are a few of my favorite Wireshark filters. There are a ton more that I use, but these are the big ones. How about you? What are your most commonly used filters?
Here is a video showing how to set these filters.

