Hello, in the Wireshark filter I can display all packets destined to 10.0.0.1 address: ip.dst == 10.0.0.1 After that Wireshark will show a lot of packets with different IP source addresses. It is clear. But how can I display pakets with other IP destinations with exactly above IP sources (if there are)? I can check each IP source but it is long and time consuming process. Simply: "display packets destined to 10.0.0.2, but only these having the same source addresses which we can find in another packets source addresses destined to 10.0.0.1" asked 07 Nov '13, 14:49 net16 |
2 Answers:
so, you want to do this:
then create a filter that shows only frames from 100.100.100.100 and/or 200.200.200.200 to 10.0.0.2, like the marked frames below.
That is not possible with a simple display filter, as it would require a conditional filter, based on attributes of other frames. What you can do: Run tshark to find all source addresses. Then build a display filter with those list and apply that filter in Wireshark.
You will get the following list:
Now create the display filter
or
With a small script you should be able to automate this process. Regards answered 07 Nov '13, 15:02 Kurt Knochner ♦ edited 07 Nov '13, 15:11 |
That's what the conversation statistics is used for. Filter on either source or destination you want, and then use the conversation statistic with "Limit to display filter" checked. Go to the "IPv4" tab and you'll see all addresses the filtered address talks to. You can then either export that list, or filter from there on specific connections by using the popup menu. answered 07 Nov '13, 15:02 Jasper ♦♦ Jasper, thank you for your answer. I have tried Conversation statistics earlier, but I receive hundreds addresses destined to 10.0.0.1 on IPv4 list and it was not helpful. But what do you mean writing "filter from there on specific connections by using the popup menu"? I can only copy list of addresses and manually write filter rule as I was doing. (07 Nov '13, 15:39) net16 1 you can right click on any connection in the list in use the popup menu to filter on the connection. It will replace your existing display filter and modify your Conversation Statistics as well though. (07 Nov '13, 17:21) Jasper ♦♦ ok, thank you very much! (07 Nov '13, 18:08) net16 |
Kurt, thank you for your answer. I was doing exactly as you have written, but the IPs list I obtained by Conversation statistics manner (as Jasper wrote). I hoped that a conditional filter I can use by such manner. I have a quite a lot of similar problems and a conditional filter would be very useful. Regards.
yes, but there is no conditional filter
Your options are:
It is expectation rather than a bug ;) but perhaps I will try to report it. Thank you very much!
enhancement 'bug' ;-)