Snort mailing list archives

Re: How can write rule with a range IP?


From: CunningPike <cunningpike () gmail com>
Date: Mon, 28 Jan 2008 14:05:10 -0800

And, generally speaking, the use of variables is preferable to 
hard-coding IP addresses into rules, e.g.:

var $SOME_NET [10.0.0.1,10.0.0.5,10.0.1.0/24]

alert $SOME_NET any -> any any ........

CP

Joel Esler wrote:
Either seperate the multiple IP's that are in "[ ]" brackets with 
commas, or if all your IP's are consecutive, you may use CIDR notation.

J

On Jan 27, 2008, at 3:15 AM, bahamin takhtaei wrote:

Hi,
Please tell me How can write a rule in snort with a range IP, e.g.
alert  icmp   [10.0.0.21 : 151.43.23.76 , 12.5.6.7] any -> any 
(sid:2000000;)

I checked this rule and found that snort only checks the first 
boundary of  range (10.0.0.21) in  packets!

Thanks


------------------------------------------------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
it now. 
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
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


------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


------------------------------------------------------------------------

_______________________________________________
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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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: