I am working on configuring SO to detect portscans via snort leveraging the sfportscan preprocessor configured in the /etc/nsm/<sensor>/snort.conf file to no success.
Below is a snippet of my snort.conf configuration settings
preprocessor sfportscan: proto all \
scan_type { all } \
sense_level { low } \
watch_ip {192.168.1.0/24, 10.10.1.0/24 } \
logfile { /etc/nsm/portscan.log } \
disabled
I ran sudo rule-update and everything stops and starts fine, but in sguil I see my sensors up, but not reporting. Trying to diagnose the issue I changed the watch_ip setting to watch just one IP range. I ran sudo rule-update again and noticed this time that I had stale snort pids and SO deleted them and starts up another snort pid. After sudo rule-update finishes I get the same results, sensors report up and running, but not reporting data. I concluded this by agent status tab in squil.
When I comment out the sfportscan settings completely, everything works as intended so I believe sfportscan is the issue. Following the man pages on sfportscan I'm not sure what I am missing that would cause snort to hang up. Any help is appreciated.
Thanks!
Anthony
I also tried the following settings to same result as described above
preprocessor sfportscan: proto all \
memcap { 10000000 }