

Filtering Out (Excluding) Specific Source IP in Wireshark

You’ll now see that the Packet List Pane is only showing packets that have 192.168.2.11 in the source column.įiltering out (excluding) a specific source IP is very similar. Note the src in the expression which replaced the addr from the first expression I showed you.

This expression translates to “pass all traffic with a source IPv4 address of 192.168.2.11.” Use the following display filter to show all packets that contain the specified IP in the source column: ip.src = 192.168.2.11 You might remember this from mathematics as a fancy way of illustrating “is not” or “not equal to.”Īs you can see we now see only the packets in the Packet List Pane that do not include 192.168.2.11.īut what if we wanted to see only packets that originated from a specific source IP? Filtering Specific Source IP in Wireshark This expression translates to “pass all traffic except for traffic with a source IPv4 address of 192.168.2.11 or a destination IPv4 address of 192.168.2.11.” Use the following display filter to show all packets that do not contain the specific IP in either the source or destination columns: !(ip.addr = 192.168.2.11) We can even do this inverse of this and filter out the specific IP Filtering Out (Excluding) Specific IP in Wireshark This expression translates to “pass all traffic with a source IPv4 address of 192.168.2.11 or a destination IPv4 address of 192.168.2.11.”Īs you can see the packets displayed in the Packet List Pane all contain 192.168.2.11 in either the source or the destination column. Use the following display filter to show all packets that contain the specific IP in either or both the source and destination columns: ip.addr = 192.168.2.11 Related: Wireshark User Interface (GUI) Overview Filtering Specific IP in Wireshark It’s also possible to filter out packets to and from IPs and subnets.īeyond that, you can use IP filters as both capture filters (only capture packets based on the filter) and display filters (filter the display of captured packets). We can filter to show only packets to a specific destination IP, from a specific source IP, and even to and from an entire subnet. With Wireshark we can filter by IP in several ways. One of the most common, and important, filters to use and know is the IP address filter. This amounts to a lot of data that would be impractical to sort through without a filter.įortunately, filters are part of the core functionality of Wireshark and the filter options are numerous. Unless you’re using a capture filter, Wireshark captures all traffic on the interface you selected when you opened the application. The ability to filter capture data in Wireshark is important.
