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

Is there a way in tshark to look conversations from a large list of ips? I have a list of ips in a text file. There are usually 100+ ips in the file. I can do some command line scripting to make this work, but I was wondering if I could use a file as input to the filter.

So ideally it would look something like this: tshark -qnr mydump.pcap -z conv,ip,ip.addr==<myipfile.txt>

And get all conversations involving the ips in my file.

asked 24 Aug '11, 06:25

DeBuG's gravatar image

accept rate: 0%

Re: ... but I was wondering if I could use a file as input to the filter.

The short answer: not without some command line scripting. :)

Would it work (and be simpler) to just generate the conversation list without a filter and then use grep -Ff myipfile.txt ... (or something similar) to get the list of conversations for just the desired IPs ?

permanent link

answered 25 Aug '11, 09:20

Bill%20Meier's gravatar image

Bill Meier ♦♦
accept rate: 17%

edited 25 Aug '11, 09:21

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 24 Aug '11, 06:25

question was seen: 2,470 times

last updated: 25 Aug '11, 09:21

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