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: | Re: [Snort-users] Question on port lists and negation |
|---|---|
| Date: | Mon, 08 Oct 2007 16:57:57 -0400 |
Richard Bejtlich wrote:
Hello, As I mentioned to roesch and WuTang in IRC, I am playing with port lists and negation. Say I create this snort.conf: portvar MY_HTTP_PORTS [80,81,82,83,88,8000,8008,8080] alert tcp any any -> any !$MY_HTTP_PORTS (msg:"Example Not"; sid:4;)
port specs cannot be comma-delimited lists like that, IIRC.
For ports you can specify:
a port [80]
a continuous range of ports [1:1023]
or a negation of either of the above.
But you cannot do things like [80,88]. That syntax only works for IP addresses.
See also, the docs on port numbers in rules:
http://www.snort.org/docs/snort_htmanuals/htmanual_2615/node153.html
-------------------------------------------------------------------------
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
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Snort-users] Question on port lists and negation, Richard Bejtlich |
|---|---|
| Next by Date: | Re: [Snort-users] Question on port lists and negation, Scott Dexter |
| Previous by Thread: | [Snort-users] Question on port lists and negation, Richard Bejtlich |
| Next by Thread: | Re: [Snort-users] Question on port lists and negation, Scott Dexter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |