[Winpcap-users] Filter in winpcap

Alessandro bujia at libero.it
Fri Jul 1 12:50:55 GMT 2005


Yes, but if at the begin I don't know how kind of net I have... Is there a way 
to make a generic filter right in any net?

Alessandro





---------- Initial Header -----------

>From      : winpcap-users-bounces at winpcap.org
To          : winpcap-users at winpcap.org
Cc          : 
Date      : Fri, 01 Jul 2005 11:31:16 +0200
Subject : Re: [Winpcap-users] Filter in winpcap







> Hi Alessandro,
> regarding the filter to the internet you can just request that the
> destination IP won't
> be of an internal network assignment like:
> 192.168.0.0 /16
> 10.0.0.0 /8
> 172.16.0.0 /12
> 
> or in a filter:
> 
> not (net 192.168 or net 10 or net 172.16)
> 
> That is offcourse in case you are using private IP addresses only in your
> LAN
> to discard packets from two PC's of your LAN you have to manually filter
> them out
> I don't think there is any way to do that generically:
> 
> not (host 10.0.0.1 or host 10.0.0.2)
> 
> where 10.0.0.1 and 10.0.0.2 are the two PC's IP addresses
> 
> putting it all together:
> 
> not (net 192.168 or net 10 or net 172.16) and not (host 10.0.0.1 or host
> 10.0.0.2)
> 
> Have a nice day,
> Ramon Szmuk
> 
> 
> ----- Original Message ----- 
> From: "Alessandro" <bujia at libero.it>
> To: "WinPCap MailingList" <winpcap-users at winpcap.org>
> Sent: Friday, July 01, 2005 9:05 AM
> Subject: [Winpcap-users] Filter in winpcap
> 
> 
> > Hi!
> >
> > I have a question for you:
> > I want to apply a filter to capture....and this filter is:
> >
> > - capture only packet that go to internet...outside...
> > - discard packet from two PC of my LAN
> >
> > My problem is, I want this filter generic...in other words, I don't know
> the
> > address of the PC where it runs, and neither if its IP is in a net of
> Class A,B
> > or C, how could I make this?
> >
> > Thanks in advance.
> >
> > Alessandro
> >
> >
> >
> >
> >
> > 
__________________________________________________________
__
> > 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di 
Libero!
> > Scaricalo su INTERNET GRATIS 6X http://www.libero.it
> >
> >
> >
> > _______________________________________________
> > Winpcap-users mailing list
> > Winpcap-users at winpcap.org
> > https://www.winpcap.org/mailman/listinfo/winpcap-users
> >
> 
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
> 



____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it






More information about the Winpcap-users mailing list