Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [Snort-users] Variable to specify 2 networks and exclude 1 host - How? |
|---|---|
| Date: | Thu, 14 Jul 2005 23:55:20 +0800 |
Thanks PaulM.
Simon
What's the ultimate goal? You have a rule that you want to fire if the destination (or source) is $HOME_NET, except for the one host?
One solution might be to create a custom variable in snort.conf, like:
var HOMENETFORRULE1234ONLY [155.200.2.4/30,155.200.2.8/32,155.200.2.9/32,\
155.200.2.11/32,155.200.2.12/32,155.200.2.13/32,155.200.2.14/32,155.200.2.15
/32,\
155.200.2.16/28,155.200.2.32/27,155.200.2.64/26,155.200.2.128/25,155.200.3.0
/24]
Then edit the rule(s) in question and replace $HOME_NET with
$HOMENETFORRULE1234ONLY. There may be a better way of doing this within the
flow syntax of an individual rule, but I'm not aware of how to do this.
If all you want to do is ignore a specific alert for a specific host, though, this is probably better handled through the software that is responsible for analysis/alerting for your Snort instance.
PaulM
________________________________
Subject: [Snort-users] snort variable to specify 2 networks and exclude one
IP inside the network - How?
Hello
Suppose I have the variable HOME_NET= [155.200.2.0/24,155.200.3.0/24] and I
would like o specify in a rule to specify the host of HOME_NET exclude the
IP=155.200.2.10
Anyone knows the expression using the $HOME_NET and the above IP? Thanks
Simon
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ 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
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [Snort-users] (snort_decoder): Short UDP packet, length field > payload length, Willy, Andrew |
|---|---|
| Next by Date: | RE: [Snort-users] (snort_decoder): Short UDP packet, length field > payload leng, M. Shirk |
| Previous by Thread: | Re: [Snort-users] Re: Snort-users digest, Vol 1 #5192 - 5 msgs, Jason Brvenik |
| Next by Thread: | Re: [Snort-users] Variable to specify 2 networks and exclude 1 host - How?, Matt Kettler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |