Unable to start snort

All about Snort integration in Artica

Unable to start snort

New postby abolinhas » Wed Jun 08, 2011 12:31 am

Hi David,

Every time that I try start snort I get this error
Code: Select all
Starting......: Snort Daemon for Interface "eth0" failed
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Unable to start snort

New postby admin » Wed Jun 08, 2011 9:52 am

what is the output of

Code: Select all
php5 /usr/share/artica-postfix/exec.snort.php --start
User avatar
admin
Site Admin
 
Posts: 11946
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Unable to start snort

New postby abolinhas » Wed Jun 08, 2011 10:10 am

Code: Select all
root@webmail:~# php5 /usr/share/artica-postfix/exec.snort.php --start
Starting......: Snort Daemon building configuration...
Starting......: Snort Daemon version 2.9.0.5 ()
Starting......: Snort Daemon HOME_NET [192.168.1.0/24,192.168.2.0/24]
Starting......: Snort Daemon unable to stat snort_dynamicrules directory !!
Starting......: Snort Daemon adding rule attack-responses.rules
Starting......: Snort Daemon adding rule backdoor.rules
Starting......: Snort Daemon adding rule bad-traffic.rules
Starting......: Snort Daemon adding rule blacklist.rules
Starting......: Snort Daemon adding rule botnet-cnc.rules
Starting......: Snort Daemon adding rule chat.rules
Starting......: Snort Daemon adding rule content-replace.rules
Starting......: Snort Daemon adding rule ddos.rules
Starting......: Snort Daemon adding rule deleted.rules
Starting......: Snort Daemon adding rule dns.rules
Starting......: Snort Daemon adding rule dos.rules
Starting......: Snort Daemon adding rule experimental.rules
Starting......: Snort Daemon adding rule exploit.rules
Starting......: Snort Daemon adding rule finger.rules
Starting......: Snort Daemon adding rule ftp.rules
Starting......: Snort Daemon adding rule icmp-info.rules
Starting......: Snort Daemon adding rule icmp.rules
Starting......: Snort Daemon adding rule imap.rules
Starting......: Snort Daemon adding rule info.rules
Starting......: Snort Daemon adding rule local.rules
Starting......: Snort Daemon adding rule misc.rules
Starting......: Snort Daemon adding rule multimedia.rules
Starting......: Snort Daemon adding rule mysql.rules
Starting......: Snort Daemon adding rule netbios.rules
Starting......: Snort Daemon adding rule nntp.rules
Starting......: Snort Daemon adding rule oracle.rules
Starting......: Snort Daemon adding rule other-ids.rules
Starting......: Snort Daemon adding rule p2p.rules
Starting......: Snort Daemon adding rule phishing-spam.rules
Starting......: Snort Daemon adding rule policy.rules
Starting......: Snort Daemon adding rule pop2.rules
Starting......: Snort Daemon adding rule pop3.rules
Starting......: Snort Daemon adding rule rpc.rules
Starting......: Snort Daemon adding rule rservices.rules
Starting......: Snort Daemon adding rule scada.rules
Starting......: Snort Daemon adding rule scan.rules
Starting......: Snort Daemon adding rule shellcode.rules
Starting......: Snort Daemon adding rule smtp.rules
Starting......: Snort Daemon adding rule snmp.rules
Starting......: Snort Daemon adding rule specific-threats.rules
Starting......: Snort Daemon adding rule spyware-put.rules
Starting......: Snort Daemon adding rule sql.rules
Starting......: Snort Daemon adding rule telnet.rules
Starting......: Snort Daemon adding rule tftp.rules
Starting......: Snort Daemon adding rule virus.rules
Starting......: Snort Daemon adding rule voip.rules
Starting......: Snort Daemon adding rule web-activex.rules
Starting......: Snort Daemon adding rule web-attacks.rules
Starting......: Snort Daemon adding rule web-cgi.rules
Starting......: Snort Daemon adding rule web-client.rules
Starting......: Snort Daemon adding rule web-coldfusion.rules
Starting......: Snort Daemon adding rule web-frontpage.rules
Starting......: Snort Daemon adding rule web-iis.rules
Starting......: Snort Daemon adding rule web-misc.rules
Starting......: Snort Daemon adding rule web-php.rules
Starting......: Snort Daemon adding rule x11.rules
Starting......: Snort Daemon Testing configuration....
Starting......: Snort Daemon building configuration done...
Starting......: Snort Daemon for Interface "eth0"...
Starting......: Snort Daemon for Interface "eth0" failed
Starting......: Snort /usr/bin/snort --create-pidfile --pid-path /var/run/snort_eth0.pid -m 027 -D -d -l /var/log/snort -u root -g root -c /etc/snort/snort.conf -i eth0
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Unable to start snort

New postby admin » Wed Jun 08, 2011 1:44 pm

do
Code: Select all
tail -n 500 /var/log/syslog|grep snort

after
Code: Select all
php5 /usr/share/artica-postfix/exec.snort.php --start
User avatar
admin
Site Admin
 
Posts: 11946
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Unable to start snort

New postby Friend7 » Wed Jun 08, 2011 3:21 pm

Hello,

I am right. I have reported the same problem since June 5
and Nobody believe me. ;)



I have the same error but in venet0 http://www.artica.fr/forum/viewtopic.php?f=125&t=3806

Code: Select all
Snort Daemon for Interface "eth0" failed


Best Regards,
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: Unable to start snort

New postby abolinhas » Wed Jun 08, 2011 5:54 pm

Code: Select all
root@webmail:~# tail -n 500 /var/log/syslog|grep snort
Jun  8 18:53:10 webmail snort[26261]: Found pid path directive (/var/run/snort_eth0.pid)
Jun  8 18:53:10 webmail snort[26261]: Running in IDS mode
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]:         --== Initializing Snort ==--
Jun  8 18:53:10 webmail snort[26261]: Initializing Output Plugins!
Jun  8 18:53:10 webmail snort[26261]: Initializing Preprocessors!
Jun  8 18:53:10 webmail snort[26261]: Initializing Plug-ins!
Jun  8 18:53:10 webmail snort[26261]: Parsing Rules file "/etc/snort/snort.conf"
Jun  8 18:53:10 webmail snort[26261]: PortVar 'HTTP_PORTS' defined :
Jun  8 18:53:10 webmail snort[26261]:  [ 80 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 5250 7001 7777 7779 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090:9091 9443 9999 11371 ]
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: PortVar 'SHELLCODE_PORTS' defined :
Jun  8 18:53:10 webmail snort[26261]:  [ 0:79 81:65535 ]
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: PortVar 'ORACLE_PORTS' defined :
Jun  8 18:53:10 webmail snort[26261]:  [ 1024:65535 ]
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: PortVar 'SSH_PORTS' defined :
Jun  8 18:53:10 webmail snort[26261]:  [ 22 ]
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: Detection:
Jun  8 18:53:10 webmail snort[26261]:    Search-Method = Low-Mem-Q
Jun  8 18:53:10 webmail snort[26261]:     Search-Method-Optimizations = enabled
Jun  8 18:53:10 webmail snort[26261]: Found pid path directive (/var/run/snort_eth0.pid)
Jun  8 18:53:10 webmail snort[26261]: Tagged Packet Limit: 256
Jun  8 18:53:10 webmail snort[26261]: Loading dynamic engine /usr/lib/snort_dynamicengine/libsf_engine.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]: Loading all dynamic preprocessor libs from /usr/lib/snort_dynamicpreprocessor/...
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ssh_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_sdf_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_dns_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ssl_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ftptelnet_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_smtp_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_dce2_preproc.so...
Jun  8 18:53:10 webmail snort[26261]: done
Jun  8 18:53:10 webmail snort[26261]:   Finished Loading all dynamic preprocessor libs from /usr/lib/snort_dynamicpreprocessor/
Jun  8 18:53:10 webmail snort[26261]: Log directory = /var/log/snort
Jun  8 18:53:10 webmail snort[26261]: Frag3 global config:
Jun  8 18:53:10 webmail snort[26261]:     Max frags: 65536
Jun  8 18:53:10 webmail snort[26261]:     Fragment memory cap: 4194304 bytes
Jun  8 18:53:10 webmail snort[26261]: Frag3 engine config:
Jun  8 18:53:10 webmail snort[26261]:     Target-based policy: WINDOWS
Jun  8 18:53:10 webmail snort[26261]:     Fragment timeout: 180 seconds
Jun  8 18:53:10 webmail snort[26261]:     Fragment min_ttl:   1
Jun  8 18:53:10 webmail snort[26261]:     Fragment Problems: 1
Jun  8 18:53:10 webmail snort[26261]:     Overlap Limit:     10
Jun  8 18:53:10 webmail snort[26261]:     Min fragment Length:     100
Jun  8 18:53:10 webmail snort[26261]: Stream5 global config:
Jun  8 18:53:10 webmail snort[26261]:     Track TCP sessions: ACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Max TCP sessions: 8192
Jun  8 18:53:10 webmail snort[26261]:     Memcap (for reassembly packet storage): 8388608
Jun  8 18:53:10 webmail snort[26261]:     Track UDP sessions: ACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Max UDP sessions: 131072
Jun  8 18:53:10 webmail snort[26261]:     Track ICMP sessions: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Log info if session memory consumption exceeds 1048576
Jun  8 18:53:10 webmail snort[26261]: Stream5 TCP Policy config:
Jun  8 18:53:10 webmail snort[26261]:     Reassembly Policy: WINDOWS
Jun  8 18:53:10 webmail snort[26261]:     Timeout: 180 seconds
Jun  8 18:53:10 webmail snort[26261]:     Limit on TCP Overlaps: 10
Jun  8 18:53:10 webmail snort[26261]:     Maximum number of bytes to queue per session: 1048576
Jun  8 18:53:10 webmail snort[26261]:     Maximum number of segs to queue per session: 2621
Jun  8 18:53:10 webmail snort[26261]:     Options:
Jun  8 18:53:10 webmail snort[26261]:         Require 3-Way Handshake: YES
Jun  8 18:53:10 webmail snort[26261]:         3-Way Handshake Timeout: 180
Jun  8 18:53:10 webmail snort[26261]:         Detect Anomalies: YES
Jun  8 18:53:10 webmail snort[26261]:     Reassembly Ports:
Jun  8 18:53:10 webmail snort[26261]:       21 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       22 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       23 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       25 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       42 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       53 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       79 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       80 client (Footprint) server (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       109 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       110 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       111 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       113 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       119 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       135 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       136 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       137 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       139 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       143 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       161 client (Footprint)
Jun  8 18:53:10 webmail snort[26261]:       311 client (Footprint) server (Footprint)
Jun  8 18:53:10 webmail snort[26261]: Stream5 UDP Policy config:
Jun  8 18:53:10 webmail snort[26261]:     Timeout: 180 seconds
Jun  8 18:53:10 webmail snort[26261]: HttpInspect Config:
Jun  8 18:53:10 webmail snort[26261]:     GLOBAL CONFIG
Jun  8 18:53:10 webmail snort[26261]:       Max Pipeline Requests:    0
Jun  8 18:53:10 webmail snort[26261]:       Inspection Type:          STATELESS
Jun  8 18:53:10 webmail snort[26261]:       Detect Proxy Usage:       NO
Jun  8 18:53:10 webmail snort[26261]:       IIS Unicode Map Filename: /etc/snort/unicode.map
Jun  8 18:53:10 webmail snort[26261]:       IIS Unicode Map Codepage: 1252
Jun  8 18:53:10 webmail snort[26261]:     DEFAULT SERVER CONFIG:
Jun  8 18:53:10 webmail snort[26261]:       Server profile: All
Jun  8 18:53:10 webmail snort[26261]:       Ports: 80 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 5250 7001 7777 7779 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090 9091 9443 9999 11371
Jun  8 18:53:10 webmail snort[26261]:       Server Flow Depth: 0
Jun  8 18:53:10 webmail snort[26261]:       Client Flow Depth: 0
Jun  8 18:53:10 webmail snort[26261]:       Max Chunk Length: 500000
Jun  8 18:53:10 webmail snort[26261]:       Max Header Field Length: 750
Jun  8 18:53:10 webmail snort[26261]:       Max Number Header Fields: 100
Jun  8 18:53:10 webmail snort[26261]:       Inspect Pipeline Requests: YES
Jun  8 18:53:10 webmail snort[26261]:       URI Discovery Strict Mode: NO
Jun  8 18:53:10 webmail snort[26261]:       Allow Proxy Usage: NO
Jun  8 18:53:10 webmail snort[26261]:       Disable Alerting: NO
Jun  8 18:53:10 webmail snort[26261]:       Oversize Dir Length: 500
Jun  8 18:53:10 webmail snort[26261]:       Only inspect URI: NO
Jun  8 18:53:10 webmail snort[26261]:       Normalize HTTP Headers: NO
Jun  8 18:53:10 webmail snort[26261]:       Inspect HTTP Cookies: NO
Jun  8 18:53:10 webmail snort[26261]:       Inspect HTTP Responses: NO
Jun  8 18:53:10 webmail snort[26261]:       Normalize HTTP Cookies: NO
Jun  8 18:53:10 webmail snort[26261]:       Enable XFF and True Client IP: NO
Jun  8 18:53:10 webmail snort[26261]:       Extended ASCII code support in URI: NO
Jun  8 18:53:10 webmail snort[26261]:       Ascii: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Double Decoding: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       %U Encoding: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:       Bare Byte: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Base36: OFF
Jun  8 18:53:10 webmail snort[26261]:       UTF 8: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       IIS Unicode: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Multiple Slash: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       IIS Backslash: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Directory Traversal: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Web Root Traversal: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Apache WhiteSpace: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       IIS Delimiter: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       IIS Unicode Map: GLOBAL IIS UNICODE MAP CONFIG
Jun  8 18:53:10 webmail snort[26261]:       Non-RFC Compliant Characters: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
Jun  8 18:53:10 webmail snort[26261]:       Whitespace Characters: 0x09 0x0b 0x0c 0x0d
Jun  8 18:53:10 webmail snort[26261]: rpc_decode arguments:
Jun  8 18:53:10 webmail snort[26261]:     Ports to decode RPC on: 111 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779
Jun  8 18:53:10 webmail snort[26261]:     alert_fragments: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     alert_large_fragments: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     alert_incomplete: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     alert_multiple_requests: INACTIVE
Jun  8 18:53:10 webmail snort[26261]: FTPTelnet Config:
Jun  8 18:53:10 webmail snort[26261]:     GLOBAL CONFIG
Jun  8 18:53:10 webmail snort[26261]:       Inspection Type: stateful
Jun  8 18:53:10 webmail snort[26261]:       Check for Encrypted Traffic: YES alert: NO
Jun  8 18:53:10 webmail snort[26261]:       Continue to check encrypted data: NO
Jun  8 18:53:10 webmail snort[26261]:     TELNET CONFIG:
Jun  8 18:53:10 webmail snort[26261]:       Ports: 23
Jun  8 18:53:10 webmail snort[26261]:       Are You There Threshold: 20
Jun  8 18:53:10 webmail snort[26261]:       Normalize: YES
Jun  8 18:53:10 webmail snort[26261]:       Detect Anomalies: YES
Jun  8 18:53:10 webmail snort[26261]:     FTP CONFIG:
Jun  8 18:53:10 webmail snort[26261]:       FTP Server: default
Jun  8 18:53:10 webmail snort[26261]:         Ports: 21 2100 3535
Jun  8 18:53:10 webmail snort[26261]:         Check for Telnet Cmds: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:         Ignore Telnet Cmd Operations: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:         Identify open data channels: NO
Jun  8 18:53:10 webmail snort[26261]:       FTP Client: default
Jun  8 18:53:10 webmail snort[26261]:         Check for Bounce Attacks: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:         Check for Telnet Cmds: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:         Ignore Telnet Cmd Operations: YES alert: YES
Jun  8 18:53:10 webmail snort[26261]:         Max Response Length: 256
Jun  8 18:53:10 webmail snort[26261]: SMTP Config:
Jun  8 18:53:10 webmail snort[26261]:     Ports: 25 465 587 691
Jun  8 18:53:10 webmail snort[26261]:     Inspection Type: Stateful
Jun  8 18:53:10 webmail snort[26261]:     Normalize: ATRN AUTH BDAT DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND STARTTLS SOML TICK TIME TURN TURNME VERB VRFY X-EXPS XADR XAUTH XCIR XEXCH50 XGEN XLICENSE X-LINK2STATE XQUE XSTA XTRN XUSR CHUNKING X-ADAT X-DRCP X-ERCP X-EXCH50
Jun  8 18:53:10 webmail snort[26261]:     Ignore Data: No
Jun  8 18:53:10 webmail snort[26261]:     Ignore TLS Data: No
Jun  8 18:53:10 webmail snort[26261]:     Ignore SMTP Alerts: No
Jun  8 18:53:10 webmail snort[26261]:     Max Command Line Length: 512
Jun  8 18:53:10 webmail snort[26261]:     Max Specific Command Line Length:
Jun  8 18:53:10 webmail snort[26261]:        ATRN:255 AUTH:246 BDAT:255 DATA:246 DEBUG:255
Jun  8 18:53:10 webmail snort[26261]:        EHLO:500 EMAL:255 ESAM:255 ESND:255 ESOM:255
Jun  8 18:53:10 webmail snort[26261]:        ETRN:246 EVFY:255 EXPN:255 HELO:500 HELP:500
Jun  8 18:53:10 webmail snort[26261]:        IDENT:255 MAIL:260 NOOP:255 ONEX:246 QUEU:246
Jun  8 18:53:10 webmail snort[26261]:        QUIT:246 RCPT:300 RSET:246 SAML:246 SEND:246
Jun  8 18:53:10 webmail snort[26261]:        SIZE:255 STARTTLS:246 SOML:246 TICK:246 TIME:246
Jun  8 18:53:10 webmail snort[26261]:        TURN:246 TURNME:246 VERB:246 VRFY:255 X-EXPS:246
Jun  8 18:53:10 webmail snort[26261]:        XADR:246 XAUTH:246 XCIR:246 XEXCH50:246 XGEN:246
Jun  8 18:53:10 webmail snort[26261]:        XLICENSE:246 X-LINK2STATE:246 XQUE:246 XSTA:246 XTRN:246
Jun  8 18:53:10 webmail snort[26261]:        XUSR:246
Jun  8 18:53:10 webmail snort[26261]:     Max Header Line Length: 1000
Jun  8 18:53:10 webmail snort[26261]:     Max Response Line Length: 512
Jun  8 18:53:10 webmail snort[26261]:     X-Link2State Alert: Yes
Jun  8 18:53:10 webmail snort[26261]:     Drop on X-Link2State Alert: No
Jun  8 18:53:10 webmail snort[26261]:     Alert on commands: None
Jun  8 18:53:10 webmail snort[26261]: SSH config:
Jun  8 18:53:10 webmail snort[26261]:     Autodetection: ENABLED
Jun  8 18:53:10 webmail snort[26261]:     Challenge-Response Overflow Alert: ENABLED
Jun  8 18:53:10 webmail snort[26261]:     SSH1 CRC32 Alert: ENABLED
Jun  8 18:53:10 webmail snort[26261]:     Server Version String Overflow Alert: ENABLED
Jun  8 18:53:10 webmail snort[26261]:     Protocol Mismatch Alert: ENABLED
Jun  8 18:53:10 webmail snort[26261]:     Bad Message Direction Alert: DISABLED
Jun  8 18:53:10 webmail snort[26261]:     Bad Payload Size Alert: DISABLED
Jun  8 18:53:10 webmail snort[26261]:     Unrecognized Version Alert: DISABLED
Jun  8 18:53:10 webmail snort[26261]:     Max Encrypted Packets: 20 
Jun  8 18:53:10 webmail snort[26261]:     Max Server Version String Length: 100 
Jun  8 18:53:10 webmail snort[26261]:     MaxClientBytes: 19600 (Default)
Jun  8 18:53:10 webmail snort[26261]:     Ports:
Jun  8 18:53:10 webmail snort[26261]: #01122
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: DCE/RPC 2 Preprocessor Configuration
Jun  8 18:53:10 webmail snort[26261]:   Global Configuration
Jun  8 18:53:10 webmail snort[26261]:     DCE/RPC Defragmentation: Enabled
Jun  8 18:53:10 webmail snort[26261]:     Memcap: 102400 KB
Jun  8 18:53:10 webmail snort[26261]:     Events: co
Jun  8 18:53:10 webmail snort[26261]:   Server Default Configuration
Jun  8 18:53:10 webmail snort[26261]:     Policy: WinXP
Jun  8 18:53:10 webmail snort[26261]:     Detect ports
Jun  8 18:53:10 webmail snort[26261]:       SMB: 139 445
Jun  8 18:53:10 webmail snort[26261]:       TCP: 135
Jun  8 18:53:10 webmail snort[26261]:       UDP: 135
Jun  8 18:53:10 webmail snort[26261]:       RPC over HTTP server: 593
Jun  8 18:53:10 webmail snort[26261]:       RPC over HTTP proxy: None
Jun  8 18:53:10 webmail snort[26261]:     Autodetect ports
Jun  8 18:53:10 webmail snort[26261]:       SMB: None
Jun  8 18:53:10 webmail snort[26261]:       TCP: 1025-65535
Jun  8 18:53:10 webmail snort[26261]:       UDP: 1025-65535
Jun  8 18:53:10 webmail snort[26261]:       RPC over HTTP server: 1025-65535
Jun  8 18:53:10 webmail snort[26261]:       RPC over HTTP proxy: None
Jun  8 18:53:10 webmail snort[26261]:     Maximum SMB command chaining: 3 commands
Jun  8 18:53:10 webmail snort[26261]: DNS config:
Jun  8 18:53:10 webmail snort[26261]:     DNS Client rdata txt Overflow Alert: ACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Obsolete DNS RR Types Alert: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Experimental DNS RR Types Alert: INACTIVE
Jun  8 18:53:10 webmail snort[26261]:     Ports:
Jun  8 18:53:10 webmail snort[26261]:  53
Jun  8 18:53:10 webmail snort[26261]:
Jun  8 18:53:10 webmail snort[26261]: FATAL ERROR: /etc/snort/snort.conf(297) => Failed to parse: No end brace found
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Unable to start snort

New postby admin » Wed Jun 08, 2011 6:32 pm

could you post the /etc/snort/snort.conf file ?
User avatar
admin
Site Admin
 
Posts: 11946
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Unable to start snort

New postby abolinhas » Wed Jun 08, 2011 8:51 pm

Code: Select all
var HOME_NET 188.165.241.0/24

# Set up the external network addresses. Leave as "any" in most situations
var EXTERNAL_NET !$HOME_NET

# List of DNS servers on your network
var DNS_SERVERS $HOME_NET

# List of SMTP servers on your network
var SMTP_SERVERS $HOME_NET

# List of web servers on your network
var HTTP_SERVERS $HOME_NET

# List of sql servers on your network
var SQL_SERVERS $HOME_NET

# List of telnet servers on your network
var TELNET_SERVERS $HOME_NET

# List of ssh servers on your network
var SSH_SERVERS $HOME_NET

# List of ports you run web servers on
portvar HTTP_PORTS [80,311,591,593,901,1220,1414,1830,2301,2381,2809,3128,3702,5250,7001,7777,7779,8000,8008,8028,8080,8088,8118,8123,8180,8243,8280,8888,9090,9091,9443,9999,11371]

# List of ports you want to look for SHELLCODE on.
portvar SHELLCODE_PORTS !80

# List of ports you might see oracle attacks on
portvar ORACLE_PORTS 1024:

# List of ports you want to look for SSH connections on:
portvar SSH_PORTS 22

# other variables, these should not be modified
var AIM_SERVERS [64.12.24.0/23,64.12.28.0/23,64.12.161.0/24,64.12.163.0/24,64.12.200.0/24,205.188.3.0/24,205.188.5.0/24,205.188.7.0/24,205.188.9.0/24,205.188.153.0/24,205.188.179.0/24,205.188.248.0/24]

# Path to your rules files (this can be a relative path)
# Note for Windows users:  You are advised to make this an absolute path,
# such as:  c:\snort
ules
var RULE_PATH /etc/snort/rules
var SO_RULE_PATH /etc/snort/so_rules
var PREPROC_RULE_PATH /etc/snort/preproc_rules

###################################################
# Step #2: Configure the decoder.  For more information, see README.decode
###################################################

# Stop generic decode events:
config disable_decode_alerts

# Stop Alerts on experimental TCP options
config disable_tcpopt_experimental_alerts

# Stop Alerts on obsolete TCP options
config disable_tcpopt_obsolete_alerts

# Stop Alerts on T/TCP alerts
config disable_tcpopt_ttcp_alerts

# Stop Alerts on all other TCPOption type events:
config disable_tcpopt_alerts

# Stop Alerts on invalid ip options
config disable_ipopt_alerts

# Alert if value in length field (IP, TCP, UDP) is greater th elength of the packet
# config enable_decode_oversized_alerts

# Same as above, but drop packet if in Inline mode (requires enable_decode_oversized_alerts)
# config enable_decode_oversized_drops

# Configure IP / TCP checksum mode
config checksum_mode: all

# Configure maximum number of flowbit references.  For more information, see README.flowbits
# config flowbits_size: 64

# Configure ports to ignore
# config ignore_ports: tcp 21 6667:6671 1356
# config ignore_ports: udp 1:17 53

# Configure active response for non inline operation. For more information, see REAMDE.active
# config response: eth0 attempts 2


###################################################
# Step #3: Configure the base detection engine.  For more information, see  README.decode
###################################################

# Configure PCRE match limitations
config pcre_match_limit: 3500
config pcre_match_limit_recursion: 1500

# Configure the detection engine  See the Snort Manual, Configuring Snort - Includes - Config
config detection: search-method lowmem search-optimize

# Configure the event queue.  For more information, see README.event_queue
config event_queue: max_queue 8 log 3 order_events content_length

###################################################
# Per packet and rule latency enforcement
# For more information see README.ppm
###################################################

# Per Packet latency configuration
#config ppm: max-pkt-time 250, \
#   fastpath-expensive-packets, \
#   pkt-log

# Per Rule latency configuration
#config ppm: max-rule-time 200, \
#   threshold 3, \
#   suspend-expensive-rules, \
#   suspend-timeout 20, \
#   rule-log alert

###################################################
# Configure Perf Profiling for debugging
# For more information see README.PerfProfiling
###################################################

#config profile_rules: print all, sort avg_ticks
#config profile_preprocs: print all, sort avg_ticks

###################################################
# Step #4: Configure dynamic loaded libraries. 
# For more information, see Snort Manual, Configuring Snort - Dynamic Modules
###################################################

# path to dynamic preprocessor libraries
dynamicpreprocessor directory /usr/lib/snort_dynamicpreprocessor/

# path to base preprocessor engine
dynamicengine /usr/lib/snort_dynamicengine/libsf_engine.so


###################################################
# Step #5: Configure preprocessors
# For more information, see the Snort Manual, Configuring Snort - Preprocessors
###################################################

# Inline packet normalization. For more information, see README.normalize
# Does nothing in IDS mode

# Target-based IP defragmentation.  For more inforation, see README.frag3
preprocessor frag3_global: max_frags 65536
preprocessor frag3_engine: policy windows detect_anomalies overlap_limit 10 min_fragment_length 100 timeout 180

# Target-Based stateful inspection/stream reassembly.  For more inforation, see README.stream5
preprocessor stream5_global: max_tcp 8192, track_tcp yes, track_udp yes, track_icmp no max_active_responses 2 min_response_seconds 5
preprocessor stream5_tcp: policy windows, detect_anomalies, require_3whs 180, \
   overlap_limit 10, small_segments 3 bytes 150, timeout 180, \
    ports client 21 22 23 25 42 53 79 109 110 111 113 119 135 136 137 139 143 \
        161 445 513 514 587 593 691 1433 1521 2100 3306 6070 6665 6666 6667 6668 6669 \
        7000 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \
    ports both 80 311 443 465 563 591 593 636 901 989 992 993 994 995 1220 1414 1830 2301 2381 2809 3128 3702 5250 6907 7001 7702 7777 7779 \
        7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912 7913 7914 7915 7916 \
        7917 7918 7919 7920 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090 9091 9443 9999 11371
preprocessor stream5_udp: timeout 180

# performance statistics.  For more information, see the Snort Manual, Configuring Snort - Preprocessors - Performance Monitor
# preprocessor perfmonitor: time 300 file /var/snort/snort.stats pktcnt 10000

# HTTP normalization and anomaly detection.  For more information, see README.http_inspect
preprocessor http_inspect: global iis_unicode_map unicode.map 1252
preprocessor http_inspect_server: server default \
    chunk_length 500000 \
    server_flow_depth 0 \
    client_flow_depth 0 \
    post_depth 65495 \
   oversize_dir_length 500 \
    max_header_length 750 \
    max_headers 100 \
    ports { 80 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 5250 7001 7777 7779 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090 9091 9443 9999 11371 } \
    non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \
    apache_whitespace no \
    ascii no \
    bare_byte no \
    base36 no \
   directory no \
   double_decode no \
   iis_backslash no \
   iis_delimiter no \
   iis_unicode no \
   multi_slash no \
   utf_8 no \
   u_encode yes \
   webroot no

# ONC-RPC normalization and anomaly detection.  For more information, see the Snort Manual, Configuring Snort - Preprocessors - RPC Decode
preprocessor rpc_decode: 111 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 no_alert_multiple_requests no_alert_large_fragments no_alert_incomplete

# Back Orifice detection.
preprocessor bo

# FTP / Telnet normalization and anomaly detection.  For more information, see README.ftptelnet
preprocessor ftp_telnet: global inspection_type stateful encrypted_traffic no
preprocessor ftp_telnet_protocol: telnet \
    ayt_attack_thresh 20 \
    normalize ports { 23 } \
    detect_anomalies
preprocessor ftp_telnet_protocol: ftp server default \
    def_max_param_len 100 \
    ports { 21 2100 3535 } \
    telnet_cmds yes \
    ignore_telnet_erase_cmds yes \
    ftp_cmds { ABOR ACCT ADAT ALLO APPE AUTH CCC CDUP } \
    ftp_cmds { CEL CLNT CMD CONF CWD DELE ENC EPRT } \
    ftp_cmds { EPSV ESTA ESTP FEAT HELP LANG LIST LPRT } \
    ftp_cmds { LPSV MACB MAIL MDTM MIC MKD MLSD MLST } \
    ftp_cmds { MODE NLST NOOP OPTS PASS PASV PBSZ PORT } \
    ftp_cmds { PROT PWD QUIT REIN REST RETR RMD RNFR } \
    ftp_cmds { RNTO SDUP SITE SIZE SMNT STAT STOR STOU } \
    ftp_cmds { STRU SYST TEST TYPE USER XCUP XCRC XCWD } \
    ftp_cmds { XMAS XMD5 XMKD XPWD XRCP XRMD XRSQ XSEM } \
    ftp_cmds { XSEN XSHA1 XSHA256 } \
    alt_max_param_len 0 { ABOR CCC CDUP ESTA FEAT LPSV NOOP PASV PWD QUIT REIN STOU SYST XCUP XPWD } \
    alt_max_param_len 200 { ALLO APPE CMD HELP NLST RETR RNFR STOR STOU XMKD } \
    alt_max_param_len 256 { CWD RNTO } \
    alt_max_param_len 400 { PORT } \
    alt_max_param_len 512 { SIZE } \
    chk_str_fmt { ACCT ADAT ALLO APPE AUTH CEL CLNT CMD } \
    chk_str_fmt { CONF CWD DELE ENC EPRT EPSV ESTP HELP } \
    chk_str_fmt { LANG LIST LPRT MACB MAIL MDTM MIC MKD } \
    chk_str_fmt { MLSD MLST MODE NLST OPTS PASS PBSZ PORT } \
    chk_str_fmt { PROT REST RETR RMD RNFR RNTO SDUP SITE } \
    chk_str_fmt { SIZE SMNT STAT STOR STRU TEST TYPE USER } \
    chk_str_fmt { XCRC XCWD XMAS XMD5 XMKD XRCP XRMD XRSQ } \
    chk_str_fmt { XSEM XSEN XSHA1 XSHA256 } \
    cmd_validity ALLO < int [ char R int ] > \   
    cmd_validity EPSV < [ { char 12 | char A char L char L } ] > \
    cmd_validity MACB < string > \
    cmd_validity MDTM < [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string > \
    cmd_validity MODE < char ASBCZ > \
    cmd_validity PORT < host_port > \
    cmd_validity PROT < char CSEP > \
    cmd_validity STRU < char FRPO [ string ] > \   
    cmd_validity TYPE < { char AE [ char NTC ] | char I | char L [ number ] } >
preprocessor ftp_telnet_protocol: ftp client default \
    max_resp_len 256 \
    bounce yes \
    ignore_telnet_erase_cmds yes \
    telnet_cmds yes


# SMTP normalization and anomaly detection.  For more information, see README.SMTP
preprocessor smtp: ports { 25 465 587 691 } \
    inspection_type stateful \
    normalize cmds \
    normalize_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
    normalize_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
    normalize_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
    normalize_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
    max_command_line_len 512 \
    max_header_line_len 1000 \
    max_response_line_len 512 \
    alt_max_command_line_len 260 { MAIL } \
    alt_max_command_line_len 300 { RCPT } \
    alt_max_command_line_len 500 { HELP HELO ETRN EHLO } \
    alt_max_command_line_len 255 { EXPN VRFY ATRN SIZE BDAT DEBUG EMAL ESAM ESND ESOM EVFY IDENT NOOP RSET } \
    alt_max_command_line_len 246 { SEND SAML SOML AUTH TURN ETRN DATA RSET QUIT ONEX QUEU STARTTLS TICK TIME TURNME VERB X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
    valid_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY } \
    valid_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND SOML } \
    valid_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP X-EXCH50 } \
    valid_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE XSTA XTRN XUSR } \
    xlink2state { enabled }

# Portscan detection.  For more information, see README.sfportscan
# preprocessor sfportscan: proto  { all } memcap { 10000000 } sense_level { low }

# ARP spoof detection.  For more information, see the Snort Manual - Configuring Snort - Preprocessors - ARP Spoof Preprocessor
# preprocessor arpspoof
# preprocessor arpspoof_detect_host: 192.168.40.1 f0:0f:00:f0:0f:00

# SSH anomaly detection.  For more information, see README.ssh
preprocessor ssh: server_ports { 22 } \
                  autodetect \
                  max_client_bytes 19600 \
                  max_encrypted_packets 20 \
                  max_server_version_len 100 \
                  enable_respoverflow enable_ssh1crc32 \
                  enable_srvoverflow enable_protomismatch

# SMB / DCE-RPC normalization and anomaly detection.  For more information, see README.dcerpc2
preprocessor dcerpc2: memcap 102400, events [co ]
preprocessor dcerpc2_server: default, policy WinXP, \
    detect [smb [139,445], tcp 135, udp 135, rpc-over-http-server 593], \
    autodetect [tcp 1025:, udp 1025:, rpc-over-http-server 1025:], \
    smb_max_chain 3

# DNS anomaly detection.  For more information, see README.dns
preprocessor dns: ports { 53 } enable_rdata_overflow

# SSL anomaly detection and traffic bypass.  For more information, see README.ssl
preprocessor ssl: ports { 443 465 563 636 989 992 993 994 995 7801 7702 7900 7901 7902 7903 7904 7905 7906 6907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 9000 81}, trustservers, noinspect_encrypted


###################################################
# Step #6: Configure output plugins
# For more information, see Snort Manual, Configuring Snort - Output Modules
###################################################

# unified2
# Recommended for most installs
# output unified2: filename merged.log, limit 128, nostamp, mpls_event_types, vlan_event_types

# Additional configuration for specific types of installs
# output alert_unified2: filename snort.alert, limit 128, nostamp
# output log_unified2: filename snort.log, limit 128, nostamp

# syslog
output alert_syslog: LOG_LOCAL0 LOG_ALERT

# pcap
# output log_tcpdump: tcpdump.log

# database
output database: alert, mysql, user=florasul password=mysqlFsul dbname=snort host=127.0.0.1
output database: log, mysql, user=florasul password=mysqlFsul dbname=snort host=127.0.0.1

# prelude
# output alert_prelude

# metadata reference data.  do not modify these lines
include classification.config
include reference.config


###################################################
# Step #7: Customize your rule set
# For more information, see Snort Manual, Writing Snort Rules
#
# NOTE: All categories are enabled in this conf file
###################################################

# site specific rules
include /etc/snort/rules/attack-responses.rules
include /etc/snort/rules/backdoor.rules
include /etc/snort/rules/bad-traffic.rules
include /etc/snort/rules/blacklist.rules
include /etc/snort/rules/botnet-cnc.rules
include /etc/snort/rules/chat.rules
include /etc/snort/rules/content-replace.rules
include /etc/snort/rules/ddos.rules
include /etc/snort/rules/deleted.rules
include /etc/snort/rules/dns.rules
include /etc/snort/rules/dos.rules
include /etc/snort/rules/experimental.rules
include /etc/snort/rules/exploit.rules
include /etc/snort/rules/finger.rules
include /etc/snort/rules/ftp.rules
include /etc/snort/rules/icmp-info.rules
include /etc/snort/rules/icmp.rules
include /etc/snort/rules/imap.rules
include /etc/snort/rules/info.rules
include /etc/snort/rules/local.rules
include /etc/snort/rules/misc.rules
include /etc/snort/rules/multimedia.rules
include /etc/snort/rules/mysql.rules
include /etc/snort/rules/netbios.rules
include /etc/snort/rules/nntp.rules
include /etc/snort/rules/oracle.rules
include /etc/snort/rules/other-ids.rules
include /etc/snort/rules/p2p.rules
include /etc/snort/rules/phishing-spam.rules
include /etc/snort/rules/policy.rules
include /etc/snort/rules/pop2.rules
include /etc/snort/rules/pop3.rules
include /etc/snort/rules/rpc.rules
include /etc/snort/rules/rservices.rules
include /etc/snort/rules/scada.rules
include /etc/snort/rules/scan.rules
include /etc/snort/rules/shellcode.rules
include /etc/snort/rules/smtp.rules
include /etc/snort/rules/snmp.rules
include /etc/snort/rules/specific-threats.rules
include /etc/snort/rules/spyware-put.rules
include /etc/snort/rules/sql.rules
include /etc/snort/rules/telnet.rules
include /etc/snort/rules/tftp.rules
include /etc/snort/rules/virus.rules
include /etc/snort/rules/voip.rules
include /etc/snort/rules/web-activex.rules
include /etc/snort/rules/web-attacks.rules
include /etc/snort/rules/web-cgi.rules
include /etc/snort/rules/web-client.rules
include /etc/snort/rules/web-coldfusion.rules
include /etc/snort/rules/web-frontpage.rules
include /etc/snort/rules/web-iis.rules
include /etc/snort/rules/web-misc.rules
include /etc/snort/rules/web-php.rules
include /etc/snort/rules/x11.rules

###################################################
# Step #8: Customize your preprocessor and decoder alerts
# For more information, see README.decoder_preproc_rules
###################################################

# decoder and preprocessor event rules
# include $PREPROC_RULE_PATH/preprocessor.rules
# include $PREPROC_RULE_PATH/decoder.rules
# include $PREPROC_RULE_PATH/sensitive-data.rules

###################################################
# Step #9: Customize your Shared Object Snort Rules
# For more information, see http://vrt-sourcefire.blogspot.com/2009/01/using-vrt-certified-shared-object-rules.html
###################################################

# dynamic library rules
# include $SO_RULE_PATH/bad-traffic.rules
# include $SO_RULE_PATH/chat.rules
# include $SO_RULE_PATH/dos.rules
# include $SO_RULE_PATH/exploit.rules
# include $SO_RULE_PATH/icmp.rules
# include $SO_RULE_PATH/imap.rules
# include $SO_RULE_PATH/misc.rules
# include $SO_RULE_PATH/multimedia.rules
# include $SO_RULE_PATH/netbios.rules
# include $SO_RULE_PATH/nntp.rules
# include $SO_RULE_PATH/p2p.rules
# include $SO_RULE_PATH/smtp.rules
# include $SO_RULE_PATH/sql.rules
# include $SO_RULE_PATH/web-activex.rules
# include $SO_RULE_PATH/web-client.rules
# include $SO_RULE_PATH/web-iis.rules
# include $SO_RULE_PATH/web-misc.rules

# Event thresholding or suppression commands. See threshold.conf
include threshold.conf


var HOME_NET 188.165.241.0/24 it's are correct ?
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Re: Unable to start snort

New postby admin » Wed Jun 08, 2011 10:05 pm

This is an automatic calculation found with your network cards settings.

could you try this one :
Attachments
exec.snort.php.tar.gz
(7.66 KiB) Downloaded 364 times
User avatar
admin
Site Admin
 
Posts: 11946
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Unable to start snort

New postby abolinhas » Wed Jun 08, 2011 10:12 pm

Nop

Code: Select all
Starting......: Snort Daemon for Interface "eth0" failed
Starting......: Snort /usr/bin/snort --create-pidfile --pid-path /var/run/snort_eth0.pid -m 027 -D -d -l /var/log/snort -u root -g root -c /etc/snort/snort.conf -i eth0

Code: Select all
root@webmail:~# tail -n 500 /var/log/syslog|grep snort
Jun  8 23:10:27 webmail snort[14695]: Found pid path directive (/var/run/snort_eth0.pid)
Jun  8 23:10:27 webmail snort[14695]: Running in IDS mode
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:27 webmail snort[14695]:         --== Initializing Snort ==--
Jun  8 23:10:27 webmail snort[14695]: Initializing Output Plugins!
Jun  8 23:10:27 webmail snort[14695]: Initializing Preprocessors!
Jun  8 23:10:27 webmail snort[14695]: Initializing Plug-ins!
Jun  8 23:10:27 webmail snort[14695]: Parsing Rules file "/etc/snort/snort.conf"
Jun  8 23:10:27 webmail snort[14695]: PortVar 'HTTP_PORTS' defined :
Jun  8 23:10:27 webmail snort[14695]:  [ 80 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 5250 7001 7777 7779 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090:9091 9443 9999 11371 ]
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:27 webmail snort[14695]: PortVar 'SHELLCODE_PORTS' defined :
Jun  8 23:10:27 webmail snort[14695]:  [ 0:79 81:65535 ]
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:27 webmail snort[14695]: PortVar 'ORACLE_PORTS' defined :
Jun  8 23:10:27 webmail snort[14695]:  [ 1024:65535 ]
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:27 webmail snort[14695]: PortVar 'SSH_PORTS' defined :
Jun  8 23:10:27 webmail snort[14695]:  [ 22 ]
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:27 webmail snort[14695]: Detection:
Jun  8 23:10:27 webmail snort[14695]:    Search-Method = Low-Mem-Q
Jun  8 23:10:27 webmail snort[14695]:     Search-Method-Optimizations = enabled
Jun  8 23:10:27 webmail snort[14695]: Found pid path directive (/var/run/snort_eth0.pid)
Jun  8 23:10:27 webmail snort[14695]: Tagged Packet Limit: 256
Jun  8 23:10:27 webmail snort[14695]: Loading dynamic engine /usr/lib/snort_dynamicengine/libsf_engine.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]: Loading all dynamic preprocessor libs from /usr/lib/snort_dynamicpreprocessor/...
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ssh_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_sdf_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_dns_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ssl_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_ftptelnet_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_smtp_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Loading dynamic preprocessor library /usr/lib/snort_dynamicpreprocessor//libsf_dce2_preproc.so...
Jun  8 23:10:27 webmail snort[14695]: done
Jun  8 23:10:27 webmail snort[14695]:   Finished Loading all dynamic preprocessor libs from /usr/lib/snort_dynamicpreprocessor/
Jun  8 23:10:27 webmail snort[14695]: Log directory = /var/log/snort
Jun  8 23:10:27 webmail snort[14695]: Frag3 global config:
Jun  8 23:10:27 webmail snort[14695]:     Max frags: 65536
Jun  8 23:10:27 webmail snort[14695]:     Fragment memory cap: 4194304 bytes
Jun  8 23:10:27 webmail snort[14695]: Frag3 engine config:
Jun  8 23:10:27 webmail snort[14695]:     Target-based policy: WINDOWS
Jun  8 23:10:27 webmail snort[14695]:     Fragment timeout: 180 seconds
Jun  8 23:10:27 webmail snort[14695]:     Fragment min_ttl:   1
Jun  8 23:10:27 webmail snort[14695]:     Fragment Problems: 1
Jun  8 23:10:27 webmail snort[14695]:     Overlap Limit:     10
Jun  8 23:10:27 webmail snort[14695]:     Min fragment Length:     100
Jun  8 23:10:27 webmail snort[14695]: Stream5 global config:
Jun  8 23:10:27 webmail snort[14695]:     Track TCP sessions: ACTIVE
Jun  8 23:10:27 webmail snort[14695]:     Max TCP sessions: 8192
Jun  8 23:10:27 webmail snort[14695]:     Memcap (for reassembly packet storage): 8388608
Jun  8 23:10:27 webmail snort[14695]:     Track UDP sessions: ACTIVE
Jun  8 23:10:27 webmail snort[14695]:     Max UDP sessions: 131072
Jun  8 23:10:27 webmail snort[14695]:     Track ICMP sessions: INACTIVE
Jun  8 23:10:27 webmail snort[14695]:     Log info if session memory consumption exceeds 1048576
Jun  8 23:10:27 webmail snort[14695]: Stream5 TCP Policy config:
Jun  8 23:10:27 webmail snort[14695]:     Reassembly Policy: WINDOWS
Jun  8 23:10:27 webmail snort[14695]:     Timeout: 180 seconds
Jun  8 23:10:27 webmail snort[14695]:     Limit on TCP Overlaps: 10
Jun  8 23:10:27 webmail snort[14695]:     Maximum number of bytes to queue per session: 1048576
Jun  8 23:10:27 webmail snort[14695]:     Maximum number of segs to queue per session: 2621
Jun  8 23:10:27 webmail snort[14695]:     Options:
Jun  8 23:10:27 webmail snort[14695]:         Require 3-Way Handshake: YES
Jun  8 23:10:27 webmail snort[14695]:         3-Way Handshake Timeout: 180
Jun  8 23:10:27 webmail snort[14695]:         Detect Anomalies: YES
Jun  8 23:10:27 webmail snort[14695]:     Reassembly Ports:
Jun  8 23:10:27 webmail snort[14695]:       21 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       22 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       23 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       25 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       42 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       53 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       79 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       80 client (Footprint) server (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       109 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       110 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       111 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       113 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       119 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       135 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       136 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       137 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       139 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       143 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       161 client (Footprint)
Jun  8 23:10:27 webmail snort[14695]:       311 client (Footprint) server (Footprint)
Jun  8 23:10:27 webmail snort[14695]: Stream5 UDP Policy config:
Jun  8 23:10:27 webmail snort[14695]:     Timeout: 180 seconds
Jun  8 23:10:27 webmail snort[14695]: HttpInspect Config:
Jun  8 23:10:27 webmail snort[14695]:     GLOBAL CONFIG
Jun  8 23:10:27 webmail snort[14695]:       Max Pipeline Requests:    0
Jun  8 23:10:27 webmail snort[14695]:       Inspection Type:          STATELESS
Jun  8 23:10:27 webmail snort[14695]:       Detect Proxy Usage:       NO
Jun  8 23:10:27 webmail snort[14695]:       IIS Unicode Map Filename: /etc/snort/unicode.map
Jun  8 23:10:27 webmail snort[14695]:       IIS Unicode Map Codepage: 1252
Jun  8 23:10:27 webmail snort[14695]:     DEFAULT SERVER CONFIG:
Jun  8 23:10:27 webmail snort[14695]:       Server profile: All
Jun  8 23:10:27 webmail snort[14695]:       Ports: 80 311 591 593 901 1220 1414 1830 2301 2381 2809 3128 3702 5250 7001 7777 7779 8000 8008 8028 8080 8088 8118 8123 8180 8243 8280 8888 9090 9091 9443 9999 11371
Jun  8 23:10:27 webmail snort[14695]:       Server Flow Depth: 0
Jun  8 23:10:27 webmail snort[14695]:       Client Flow Depth: 0
Jun  8 23:10:27 webmail snort[14695]:       Max Chunk Length: 500000
Jun  8 23:10:27 webmail snort[14695]:       Max Header Field Length: 750
Jun  8 23:10:27 webmail snort[14695]:       Max Number Header Fields: 100
Jun  8 23:10:27 webmail snort[14695]:       Inspect Pipeline Requests: YES
Jun  8 23:10:27 webmail snort[14695]:       URI Discovery Strict Mode: NO
Jun  8 23:10:27 webmail snort[14695]:       Allow Proxy Usage: NO
Jun  8 23:10:27 webmail snort[14695]:       Disable Alerting: NO
Jun  8 23:10:27 webmail snort[14695]:       Oversize Dir Length: 500
Jun  8 23:10:27 webmail snort[14695]:       Only inspect URI: NO
Jun  8 23:10:27 webmail snort[14695]:       Normalize HTTP Headers: NO
Jun  8 23:10:27 webmail snort[14695]:       Inspect HTTP Cookies: NO
Jun  8 23:10:27 webmail snort[14695]:       Inspect HTTP Responses: NO
Jun  8 23:10:27 webmail snort[14695]:       Normalize HTTP Cookies: NO
Jun  8 23:10:27 webmail snort[14695]:       Enable XFF and True Client IP: NO
Jun  8 23:10:27 webmail snort[14695]:       Extended ASCII code support in URI: NO
Jun  8 23:10:27 webmail snort[14695]:       Ascii: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Double Decoding: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       %U Encoding: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:       Bare Byte: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Base36: OFF
Jun  8 23:10:27 webmail snort[14695]:       UTF 8: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       IIS Unicode: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Multiple Slash: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       IIS Backslash: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Directory Traversal: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Web Root Traversal: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Apache WhiteSpace: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       IIS Delimiter: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       IIS Unicode Map: GLOBAL IIS UNICODE MAP CONFIG
Jun  8 23:10:27 webmail snort[14695]:       Non-RFC Compliant Characters: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
Jun  8 23:10:27 webmail snort[14695]:       Whitespace Characters: 0x09 0x0b 0x0c 0x0d
Jun  8 23:10:27 webmail snort[14695]: rpc_decode arguments:
Jun  8 23:10:27 webmail snort[14695]:     Ports to decode RPC on: 111 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779
Jun  8 23:10:27 webmail snort[14695]:     alert_fragments: INACTIVE
Jun  8 23:10:27 webmail snort[14695]:     alert_large_fragments: INACTIVE
Jun  8 23:10:27 webmail snort[14695]:     alert_incomplete: INACTIVE
Jun  8 23:10:27 webmail snort[14695]:     alert_multiple_requests: INACTIVE
Jun  8 23:10:27 webmail snort[14695]: FTPTelnet Config:
Jun  8 23:10:27 webmail snort[14695]:     GLOBAL CONFIG
Jun  8 23:10:27 webmail snort[14695]:       Inspection Type: stateful
Jun  8 23:10:27 webmail snort[14695]:       Check for Encrypted Traffic: YES alert: NO
Jun  8 23:10:27 webmail snort[14695]:       Continue to check encrypted data: NO
Jun  8 23:10:27 webmail snort[14695]:     TELNET CONFIG:
Jun  8 23:10:27 webmail snort[14695]:       Ports: 23
Jun  8 23:10:27 webmail snort[14695]:       Are You There Threshold: 20
Jun  8 23:10:27 webmail snort[14695]:       Normalize: YES
Jun  8 23:10:27 webmail snort[14695]:       Detect Anomalies: YES
Jun  8 23:10:27 webmail snort[14695]:     FTP CONFIG:
Jun  8 23:10:27 webmail snort[14695]:       FTP Server: default
Jun  8 23:10:27 webmail snort[14695]:         Ports: 21 2100 3535
Jun  8 23:10:27 webmail snort[14695]:         Check for Telnet Cmds: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:         Ignore Telnet Cmd Operations: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:         Identify open data channels: NO
Jun  8 23:10:27 webmail snort[14695]:       FTP Client: default
Jun  8 23:10:27 webmail snort[14695]:         Check for Bounce Attacks: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:         Check for Telnet Cmds: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:         Ignore Telnet Cmd Operations: YES alert: YES
Jun  8 23:10:27 webmail snort[14695]:         Max Response Length: 256
Jun  8 23:10:27 webmail snort[14695]: SMTP Config:
Jun  8 23:10:27 webmail snort[14695]:     Ports: 25 465 587 691
Jun  8 23:10:27 webmail snort[14695]:     Inspection Type: Stateful
Jun  8 23:10:27 webmail snort[14695]:     Normalize: ATRN AUTH BDAT DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN EVFY EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND STARTTLS SOML TICK TIME TURN TURNME VERB VRFY X-EXPS XADR XAUTH XCIR XEXCH50 XGEN XLICENSE X-LINK2STATE XQUE XSTA XTRN XUSR CHUNKING X-ADAT X-DRCP X-ERCP X-EXCH50
Jun  8 23:10:27 webmail snort[14695]:     Ignore Data: No
Jun  8 23:10:27 webmail snort[14695]:     Ignore TLS Data: No
Jun  8 23:10:27 webmail snort[14695]:     Ignore SMTP Alerts: No
Jun  8 23:10:27 webmail snort[14695]:     Max Command Line Length: 512
Jun  8 23:10:27 webmail snort[14695]:     Max Specific Command Line Length:
Jun  8 23:10:27 webmail snort[14695]:        ATRN:255 AUTH:246 BDAT:255 DATA:246 DEBUG:255
Jun  8 23:10:27 webmail snort[14695]:        EHLO:500 EMAL:255 ESAM:255 ESND:255 ESOM:255
Jun  8 23:10:27 webmail snort[14695]:        ETRN:246 EVFY:255 EXPN:255 HELO:500 HELP:500
Jun  8 23:10:27 webmail snort[14695]:        IDENT:255 MAIL:260 NOOP:255 ONEX:246 QUEU:246
Jun  8 23:10:27 webmail snort[14695]:        QUIT:246 RCPT:300 RSET:246 SAML:246 SEND:246
Jun  8 23:10:27 webmail snort[14695]:        SIZE:255 STARTTLS:246 SOML:246 TICK:246 TIME:246
Jun  8 23:10:27 webmail snort[14695]:        TURN:246 TURNME:246 VERB:246 VRFY:255 X-EXPS:246
Jun  8 23:10:27 webmail snort[14695]:        XADR:246 XAUTH:246 XCIR:246 XEXCH50:246 XGEN:246
Jun  8 23:10:27 webmail snort[14695]:        XLICENSE:246 X-LINK2STATE:246 XQUE:246 XSTA:246 XTRN:246
Jun  8 23:10:27 webmail snort[14695]:        XUSR:246
Jun  8 23:10:27 webmail snort[14695]:     Max Header Line Length: 1000
Jun  8 23:10:27 webmail snort[14695]:     Max Response Line Length: 512
Jun  8 23:10:27 webmail snort[14695]:     X-Link2State Alert: Yes
Jun  8 23:10:27 webmail snort[14695]:     Drop on X-Link2State Alert: No
Jun  8 23:10:27 webmail snort[14695]:     Alert on commands: None
Jun  8 23:10:27 webmail snort[14695]: SSH config:
Jun  8 23:10:27 webmail snort[14695]:     Autodetection: ENABLED
Jun  8 23:10:27 webmail snort[14695]:     Challenge-Response Overflow Alert: ENABLED
Jun  8 23:10:27 webmail snort[14695]:     SSH1 CRC32 Alert: ENABLED
Jun  8 23:10:27 webmail snort[14695]:     Server Version String Overflow Alert: ENABLED
Jun  8 23:10:27 webmail snort[14695]:     Protocol Mismatch Alert: ENABLED
Jun  8 23:10:27 webmail snort[14695]:     Bad Message Direction Alert: DISABLED
Jun  8 23:10:27 webmail snort[14695]:     Bad Payload Size Alert: DISABLED
Jun  8 23:10:27 webmail snort[14695]:     Unrecognized Version Alert: DISABLED
Jun  8 23:10:27 webmail snort[14695]:     Max Encrypted Packets: 20 
Jun  8 23:10:27 webmail snort[14695]:     Max Server Version String Length: 100 
Jun  8 23:10:27 webmail snort[14695]:     MaxClientBytes: 19600 (Default)
Jun  8 23:10:27 webmail snort[14695]:     Ports:
Jun  8 23:10:27 webmail snort[14695]: #01122
Jun  8 23:10:27 webmail snort[14695]:
Jun  8 23:10:28 webmail snort[14695]: DCE/RPC 2 Preprocessor Configuration
Jun  8 23:10:28 webmail snort[14695]:   Global Configuration
Jun  8 23:10:28 webmail snort[14695]:     DCE/RPC Defragmentation: Enabled
Jun  8 23:10:28 webmail snort[14695]:     Memcap: 102400 KB
Jun  8 23:10:28 webmail snort[14695]:     Events: co
Jun  8 23:10:28 webmail snort[14695]: FATAL ERROR: dcerpc2: /etc/snort/snort.conf(271): "dcerpc2_server" configuration: Invalid syntax: "detect [smb [139,445], tcp 135, udp 135, rpc-over-http-server 593], autodetect [tcp 1025:, udp 1025:, rpc-over-http-server 1025:], smb_max_chain 3".  Please consult documentation.
Cumprimentos / Best Regards

André Bolinhas
Twitter: @abolinhas
User avatar
abolinhas
 
Posts: 1015
Joined: Fri Jun 19, 2009 8:50 am
Location: Portugal
Artica servers number: 4
Linux System: Ubuntu
Technical skills: A Linux System Administrator

Next

Return to IDS with Snort

Who is online

Users browsing this forum: No registered users and 1 guest

cron