Good point, Thanks.
 
Mike

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Florian Crouzat
Sent: Wednesday, February 22, 2012 3:35 AM
To: [email protected]
Subject: Re: [ossec-list] Detecting Internet Access

Le 17/02/2012 17:13, Mike Disley a écrit :

> <localfile>
>      <log_format>command</log_format>
>      <command>netstat -an | findstr ":80 :443 " | findstr 
> TCP</command> </localfile>

Just found out about Window's grep: findstr.
I tried your pipeline on one of my server, your pattern will have 
false-positive if you are binding on port :800, or :4432, etc.

Here's what I did:
netstat -an | findstr ":80\> :443\>" | findstr TCP

--
Cheers,
Florian Crouzat

Reply via email to