[Snort-users] real-time alerting and rule to monitor only specific traffic
Al Lewis (allewi)
allewi at ...589...
Mon Feb 23 20:45:05 EST 2015
You can filter that out by applying a bpf filter to the end of your command. Below I filtered out port 80 traffic. Without the filter I get alerts but with the filter I don’t even though the rule is “any to any” inside the conf file.
gecko:/var/tmp/snort-22.214.171.124-released # ./bin/snort -c etc/lena.conf -r etc/lena.pcap -A console:test -H -U -k none -q
1 1 1000001 0
2 1 1000001 0
3 1 1000001 0
gecko:/var/tmp/snort-126.96.36.199-released # ./bin/snort -c etc/lena.conf -r etc/lena.pcap -A console:test -H -U -k none -q not tcp port 80
gecko:/var/tmp/snort-188.8.131.52-released # tcpdump -n -r etc/lena.pcap -c 1
reading from file etc/lena.pcap, link-type EN10MB (Ethernet)
11:11:28.852742 IP 10.5.40.95.36884 > 10.4.31.42.80: Flags [S], seq 2514493807, win 5840, options [mss 1460,sackOK,TS val 347823238 ecr 0,nop,wscale 7], length 0
For the email alerts you can try sending messages to syslog and then emailing from there. Maybe someone else can chime in and help out with that.
Hope this helps!
QA Software Engineer
SOURCEfire, Inc. now part of Cisco
9780 Patuxent Woods Drive
Columbia, MD 21046
Phone: (office) 443.430.7112
Email: allewi at ...589...
From: Lena Okanovic [mailto:lokanovic at ...17094...]
Sent: Monday, February 23, 2015 7:25 PM
To: snort-users at lists.sourceforge.net
Subject: [Snort-users] real-time alerting and rule to monitor only specific traffic
How can I only monitor TCP traffic that is not on port 80 or 443 or on our DMZ IP address? And also, can someone please provide me with instructions on how to setup real-time (email) alerting in Snort on Windows server box.
So, if 'bad' TCP traffic comes through, I would like to get an email right a way letting me know.
lokanovic at ...17094...<mailto:lokanovic at ...17094...>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snort-users