tcpdump mailing list archives

Sniffing ranges of ips


From: MMatos <razielukain () gmail com>
Date: Fri, 19 Nov 2004 01:55:50 +0000


Hi there!

I want to write a little program that analyses packets within a given ip range.

My current problem is to set a filter that work with ip ranges.

For example I want to dump all traffic that arrives to my box from ips 192.168.2.15 to 192.168.2.40 I could write all the ips in the range but that's not a good solution, so how can implement that filter correctly using the range?

some kind of
$tcpdump "src 192.168.2.15/40"           :)

TIA

MMatos

--
Question.Do you use Linux exclusively, or do you use other operating systems as well?

Alan Cox: I run Linux on pretty much everything except the microwave and washing machine. Those are tempting targets but would probably make Telsa extremely cross.
--  Behind the scenes --
http://www.opensource.org/halloween/

-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


Current thread: