Snort mailing list archives

Re: [$HOME_NET, !192.168.1.222, !192.168.1.223] ? (subnet except specific IPs)


From: Jason <security () brvenik com>
Date: Tue, 07 Aug 2007 13:46:01 -0400



Yakov Lerner wrote:
On 8/7/07, Matt Kettler <mkettler () evi-inc com> wrote:
Yakov Lerner wrote:
On 8/7/07, *Matt Kettler* <mkettler () evi-inc com
<mailto:mkettler () evi-inc com>> wrote:

    Yakov Lerner wrote:
    > Does this do what I'm thinking it would do:
    >     [$HOME,!192.168.1.222,!192.168.1.223]
    > , that is, subnet except specific IPs ?

    No, that subnets the entire world.

    The commas are effectively "OR" statements, so just this part:
    [!192.168.1.222,!192.168.1.223] will match any IP address.

    Anything that is not 192.168.1.222 <http://192.168.1.222> OR
    anything that is not 192.168.1.223 <http://192.168.1.223>.

    The first clause will match all IPs except 192.168.1.222
    <http://192.168.1.222>, and the second clause
    will match  192.168.1.222 <http://192.168.1.222>, among many others.
    The net result is everything.



Is there solution/expression that matches the
         "given subnet except given list of IPs" ?
No, other than adding up other subnets to create the equivalent.

Are there IP RANGES, like [IP-IP] or maybe [IP:IP] ?

Yakov

?!?

$HOME_NET = [!192.168.1.222/31]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: