snort was alive, but now she's dead. no clue. :( -
i got snort , running other , since attempt barnyard2 working, snort no longer sniffing. fires error free, port monitoring still blasting traffic @ her, no errors in logs. custom google access rule fails fire off in buffer. went seeing seeing nothing overnight , didn't compiled barnyard2 mysql support last worked??? new server, new install.
#-------------------------------------------------- # vrt rule packages snort.conf # # more information visit at: # http://www.snort.org snort website # http://vrt-blog.snort.org/ sourcefire vrt blog # # mailing list contact: snort-sigs@lists.sourceforge.net # false positive reports: fp@sourcefire.com # snort bugs: bugs@snort.org # # compatible snort versions: # versions : 2.9.5.3 # # snort build options: # options : --enable-gre --enable-mpls --enable-targetbased --enable-ppm --enable-perfprofiling --enable-zlib --enable-active-response --enable-normalizer --enable-reload --enable-react --enable-flexresp3 # # additional information: # configuration file enables active response, run snort in # test mode -t required supply interface -i <interface> # or test mode fail validate configuration , # exit fatal error #-------------------------------------------------- ################################################### # file contains sample snort configuration. # should take following steps create own custom configuration: # # 1) set network variables. # 2) configure decoder # 3) configure base detection engine # 4) configure dynamic loaded libraries # 5) configure preprocessors # 6) configure output plugins # 7) customize rule set # 8) customize preprocessor , decoder rule set # 9) customize shared object rule set ################################################### ################################################### # step #1: set network variables. more information, see readme.variables ################################################### # setup network addresses protecting ipvar home_net # set external network addresses. leave "any" in situations ipvar external_net # list of dns servers on network ipvar dns_servers $home_net # list of smtp servers on network ipvar smtp_servers $home_net # list of web servers on network ipvar http_servers $home_net # list of sql servers on network ipvar sql_servers $home_net # list of telnet servers on network ipvar telnet_servers $home_net # list of ssh servers on network ipvar ssh_servers $home_net # list of ftp servers on network ipvar ftp_servers $home_net # list of sip servers on network ipvar sip_servers $home_net # list of ports run web servers on portvar http_ports [80,81,82,83,84,85,86,87,88,89,90,311,383,591,593,631,901,1220,1414,1741,1830,2301,2381,2809,3037,3057,3128,3443,3702,4343,4848,5250,6080,6988,7000,7001,7144,7145,7510,7777,7779,8000,8008,8014,8028,8080,8085,8088,8090,8118,8123,8180,8181,8222,8243,8280,8300,8500,8800,8888,8899,9000,9060,9080,9090,9091,9443,9999,10000,11371,34443,34444,41080,50000,50002,55555] # list of ports want shellcode on. portvar shellcode_ports !80 # list of ports might see oracle attacks on portvar oracle_ports 1024: # list of ports want ssh connections on: portvar ssh_ports 22 # list of ports run ftp servers on portvar ftp_ports [21,2100,3535] # list of ports run sip servers on portvar sip_ports [5060,5061,5600] # list of file data ports file inspection portvar file_data_ports [$http_ports,110,143] # list of gtp ports gtp preprocessor portvar gtp_ports [2123,2152,3386] # other variables, these should not modified ipvar 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 rules files (this can relative path) # note windows users: advised make absolute path, # such as: c:\snort\rules var rule_path /etc/snort/rules/rules var so_rule_path /etc/snort/rules/so_rules var preproc_rule_path /etc/snort/rules/preproc_rules # if using reputation preprocessor set these # there bug relative paths, relative snort # not relative snort.conf above variables # inconsistent how other vars work, bug 89986 # set absolute path appropriately var white_list_path /etc/snort/rules/rules var black_list_path /etc/snort/rules/rules ################################################### # step #2: configure decoder. 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 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) greater th elength of packet # config enable_decode_oversized_alerts # same above, drop packet if in inline mode (requires enable_decode_oversized_alerts) # config enable_decode_oversized_drops # configure ip / tcp checksum mode config checksum_mode: # configure maximum number of flowbit references. more information, see readme.flowbits # config flowbits_size: 64 # configure ports ignore # config ignore_ports: tcp 21 6667:6671 1356 # config ignore_ports: udp 1:17 53 # configure active response non inline operation. more information, see reamde.active # config response: eth0 attempts 2 # configure daq related options inline operation. more information, see readme.daq # # config daq: <type> # config daq_dir: <dir> # config daq_mode: <mode> # config daq_var: <var> # # <type> ::= pcap | afpacket | dump | nfq | ipq | ipfw # <mode> ::= read-file | passive | inline # <var> ::= arbitrary <name>=<value passed daq # <dir> ::= path daq module so's # configure specific uid , gid run snort after dropping privs. more information see snort -h command line options # # config set_gid: # config set_uid: # configure default snaplen. snort defaults mtu of in use interface. more information see readme # # config snaplen: # # configure default bpf_file use filtering traffic reaches snort. more information see snort -h command line options (-f) # # config bpf_file: # # configure default log directory snort log to. more information see snort -h command line options (-l) # # config logdir: ################################################### # step #3: configure base detection engine. more information, see readme.decode ################################################### # configure pcre match limitations config pcre_match_limit: 3500 config pcre_match_limit_recursion: 1500 # configure detection engine see snort manual, configuring snort - includes - config config detection: search-method ac-split search-optimize max-pattern-len 20 # configure event queue. more information, see readme.event_queue config event_queue: max_queue 8 log 5 order_events content_length ################################################### ## configure gtp if used. ## more information, see readme.gtp #################################################### # config enable_gtp ################################################### # per packet , rule latency enforcement # 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 debugging # more information see readme.perfprofiling ################################################### #config profile_rules: print all, sort avg_ticks #config profile_preprocs: print all, sort avg_ticks ################################################### # configure protocol aware flushing # more information see readme.stream5 ################################################### config paf_max: 16000 ################################################### # step #4: configure dynamic loaded libraries. # more information, see snort manual, configuring snort - dynamic modules ################################################### # path dynamic preprocessor libraries dynamicpreprocessor directory /usr/local/lib/snort_dynamicpreprocessor/ # path base preprocessor engine dynamicengine /usr/local/lib/snort_dynamicengine/libsf_engine.so # path dynamic rules libraries dynamicdetection directory /usr/local/lib/snort_dynamicrules ################################################### # step #5: configure preprocessors # more information, see snort manual, configuring snort - preprocessors ################################################### # gtp control channle preprocessor. more information, see readme.gtp # preprocessor gtp: ports { 2123 3386 2152 } # inline packet normalization. more information, see readme.normalize # nothing in ids mode preprocessor normalize_ip4 preprocessor normalize_tcp: ips ecn stream preprocessor normalize_icmp4 preprocessor normalize_ip6 preprocessor normalize_icmp6 # target-based ip defragmentation. 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. more inforation, see readme.stream5 preprocessor stream5_global: track_tcp yes, \ track_udp yes, \ track_icmp no, \ max_tcp 262144, \ max_udp 131072, \ 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 70 79 109 110 111 113 119 135 136 137 139 143 \ 161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666 6667 6668 6669 \ 7000 8181 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \ ports both 80 81 82 83 84 85 86 87 88 89 90 110 311 383 443 465 563 591 593 631 636 901 989 992 993 994 995 1220 1414 1830 2301 2381 2809 3037 3057 3128 3443 3702 4343 4848 5250 6080 6988 7907 7000 7001 7144 7145 7510 7802 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 8014 8028 8080 8085 8088 8090 8118 8123 8180 8222 8243 8280 8300 8500 8800 8888 8899 9000 9060 9080 9090 9091 9443 9999 10000 11371 34443 34444 41080 50000 50002 55555 preprocessor stream5_udp: timeout 180 # performance statistics. more information, see snort manual, configuring snort - preprocessors - performance monitor # preprocessor perfmonitor: time 300 file /var/snort/snort.stats pktcnt 10000 # http normalization , anomaly detection. more information, see readme.http_inspect preprocessor http_inspect: global iis_unicode_map unicode.map 1252 compress_depth 65535 decompress_depth 65535 preprocessor http_inspect_server: server default \ http_methods { post put search mkcol copy move lock unlock notify poll bcopy bdelete bmove link unlink options head delete trace track connect source subscribe unsubscribe propfind proppatch bpropfind bproppatch rpc_connect proxy_success bits_post ccm_post sms_post rpc_in_data rpc_out_data rpc_echo_data } \ 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 \ max_spaces 200 \ small_chunk_length { 10 5 } \ ports { 80 81 82 83 84 85 86 87 88 89 90 311 383 591 593 631 901 1220 1414 1741 1830 2301 2381 2809 3037 3057 3128 3443 3702 4343 4848 5250 6080 6988 7000 7001 7144 7145 7510 7777 7779 8000 8008 8014 8028 8080 8085 8088 8090 8118 8123 8180 8181 8222 8243 8280 8300 8500 8800 8888 8899 9000 9060 9080 9090 9091 9443 9999 10000 11371 34443 34444 41080 50000 50002 55555 } \ non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \ enable_cookie \ extended_response_inspection \ inspect_gzip \ normalize_utf \ unlimited_decompress \ normalize_javascript \ apache_whitespace no \ ascii no \ bare_byte 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 , anomaly detection. more information, see 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 # orifice detection. preprocessor bo # ftp / telnet normalization , anomaly detection. more information, see readme.ftptelnet preprocessor ftp_telnet: global inspection_type stateful encrypted_traffic no check_encrypted 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 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 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 } \ 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 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 | 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 , anomaly detection. more information, see readme.smtp preprocessor smtp: ports { 25 465 587 691 } \ inspection_type stateful \ b64_decode_depth 0 \ qp_decode_depth 0 \ bitenc_decode_depth 0 \ uu_decode_depth 0 \ log_mailfrom \ log_rcptto \ log_filename \ log_email_hdrs \ normalize cmds \ normalize_cmds { atrn auth bdat chunking data debug ehlo emal esam esnd esom etrn evfy } \ normalize_cmds { expn helo 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 { 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 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. more information, see readme.sfportscan # preprocessor sfportscan: proto { } memcap { 10000000 } sense_level { low } # arp spoof detection. more information, see 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. 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 , anomaly detection. 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, smb_invalid_shares ["c$", "d$", "admin$"] # dns anomaly detection. more information, see readme.dns preprocessor dns: ports { 53 } enable_rdata_overflow # ssl anomaly detection , traffic bypass. more information, see readme.ssl preprocessor ssl: ports { 443 465 563 636 989 992 993 994 995 7801 7802 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 }, trustservers, noinspect_encrypted # sdf sensitive data preprocessor. more information see readme.sensitive_data preprocessor sensitive_data: alert_threshold 25 # sip session initiation protocol preprocessor. more information see readme.sip preprocessor sip: max_sessions 40000, \ ports { 5060 5061 5600 }, \ methods { invite \ cancel \ ack \ bye \ register \ options \ refer \ subscribe \ update \ join \ info \ message \ notify \ benotify \ \ qauth \ sprack \ publish \ service \ unsubscribe \ prack }, \ max_uri_len 512, \ max_call_id_len 80, \ max_requestname_len 20, \ max_from_len 256, \ max_to_len 256, \ max_via_len 1024, \ max_contact_len 512, \ max_content_len 2048 # imap preprocessor. more information see readme.imap preprocessor imap: \ ports { 143 } \ b64_decode_depth 0 \ qp_decode_depth 0 \ bitenc_decode_depth 0 \ uu_decode_depth 0 # pop preprocessor. more information see readme.pop preprocessor pop: \ ports { 110 } \ b64_decode_depth 0 \ qp_decode_depth 0 \ bitenc_decode_depth 0 \ uu_decode_depth 0 # modbus preprocessor. more information see readme.modbus preprocessor modbus: ports { 502 } # dnp3 preprocessor. more information see readme.dnp3 preprocessor dnp3: ports { 20000 } \ memcap 262144 \ check_crc # reputation preprocessor. more information see readme.reputation preprocessor reputation: \ memcap 500, \ priority whitelist, \ nested_ip inner, \ whitelist $white_list_path/white_list.rules, \ blacklist $black_list_path/black_list.rules ################################################### # step #6: configure output plugins # more information, see snort manual, configuring snort - output modules ################################################### # unified2 # recommended installs output unified2: filename merged.log, limit 128, nostamp, mpls_event_types, vlan_event_types # additional configuration 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_auth log_alert # pcap # #output log_tcpdump: tcpdump.log # metadata reference data. not modify these lines include classification.config include reference.config
had chop due size restrictions.
my complete snort.conf here -> http://www.bpaste.net/show/k4ioli86w5fdsorweq0m/
my complete startup here -> http://www.bpaste.net/show/uovvegnwhfytwznmbezi/
internal network issues cause
Comments
Post a Comment