This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hello,

I am trying to create a capture filter....

  • I have a Source Host, IP-A
  • I have two Destination Host's, IP-B and IP-C
  • IP-B and IP-C are on two different NIC interfaces locally

I want to capture:

  1. All UDP to IP-B from IP-A
  2. All TCP on port 5061 to IP-C from IP-A

Any help would be fantastic! Thanks all..

asked 05 Jun '14, 07:34

cwinchell's gravatar image

cwinchell
4113
accept rate: 0%


Try:

(udp and src B and dst A) or (tcp and src port 5061 and src C and dst A)

permanent link

answered 05 Jun '14, 07:44

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thank you grahamb!

I made a slight modify to your rule: (udp and src A and dst B) or (tcp port 5061 and src A and dst C)

(05 Jun '14, 07:55) cwinchell

Ok, my brain interpreted your clear statements the other way around for some odd reason, e.g from B to A.

(05 Jun '14, 07:57) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×184
×9

question asked: 05 Jun '14, 07:34

question was seen: 1,111 times

last updated: 05 Jun '14, 07:57

p​o​w​e​r​e​d by O​S​Q​A