[prev in list] [next in list] [prev in thread] [next in thread] 

List:       snort-users
Subject:    Re: [Snort-users] Snort-users Digest, Vol 106, Issue 43
From:       Anthony Gallina <anthonygallina1 () gmail ! com>
Date:       2015-03-23 13:51:07
Message-ID: B0439128980 () spam1 ! mmc ! org
[Download RAW message or body]

Message was discarded by filter '\Custom\Strong\PHP' on line 2

Envelope (RCP file content):
Message-ID: B0439128958@spam1.mmcdmz.mehealth.org
Return-path: snort-users-bounces@lists.sourceforge.net
Received-From-MTA: lists.sourceforge.net (unverified [216.34.181.88])
Arrival-Date: 1426697496 (Wed, 18 Mar 2015 12:51:36 -0400)
Origin-IP: 216.34.181.88
X-Modus-WasEncrypted: YES
X-Modus-BlackList: 216.34.181.88=OK;snort-users-bounces@lists.sourceforge.net=OK
X-Modus-RBL: 216.34.181.88=OK
X-Modus-Trusted: 216.34.181.88=NO
X-Modus-Audit: TRUE;5;-28051960418533861;130715886962610000
X-CustID: 687
X-Modus-BuildNumber: 214.18364
DomainKey-Status: 0
Resolved-Return-path: snort-users-bounces@lists.sourceforge.net
X-Modus-BATV: OFF
X-Modus-SRSRBL: OK
X-Sender-Origin: EXTERNAL

Recipient: brownr@mmc.org
Original-Address: brownr@mmc.org
Dsn-Original-Recipient: rfc822;brownr@mmc.org
Local-Status: Incoming


["Re: [Snort-users] Snort-users Digest, Vol 106, Issue 43" (message/rfc822)]


[Attachment #5 (multipart/alternative)]


Yes Michael Steele

I think this is the version that my Ubuntu Software center installed. Is
that what is keeping me from connecting to the MySQL data base. Or is it a
configuration problem?

                                       Thank you

On Mon, Mar 16, 2015 at 1:09 PM, <snort-users-request@lists.sourceforge.net>
wrote:

> Send Snort-users mailing list submissions to
> snort-users@lists.sourceforge.net
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/snort-users
> or, via email, send a message with subject or body 'help' to
> snort-users-request@lists.sourceforge.net
> 
> You can reach the person managing the list at
> snort-users-owner@lists.sourceforge.net
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Snort-users digest..."
> 
> 
> When responding, please don't respond with the entire Digest.  Please trim
> your response.
> 
> Today's Topics:
> 
> 1. Re: I could use help getting my snort pulled      pork    barnyard2
> BASE running (Michael Steele)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 16 Mar 2015 16:09:45 -0400
> From: "Michael Steele" <michaels@winsnort.com>
> Subject: Re: [Snort-users] I could use help getting my snort pulled
> pork    barnyard2 BASE running
> To: "'Anthony Gallina'" <anthonygallina1@gmail.com>,
> <snort-users@lists.sourceforge.net>
> Message-ID: <000401d06025$263ad270$72b07750$@winsnort.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Is there a reason why you are running such an old version of Snort?
> 
> 
> 
> Best regards,
> 
> Michael...
> 
> 
> 
> WINSNORT.com Management?
> 
> --
> 
> ******************** Established ~ 2002 **********************
> 
> * FREE Windows Intrusion Detection System (WinIDS) Tutorials *
> 
> *            ~~ FREE Windows Support Forums ~~               *
> 
> *               Visit @ http://winsnort.com <http://winsnort.com/>
> *
> 
> *     Snort: Open Source Network IDS - http://snort.org <http://snort.org/>
> *
> 
> **************************************************************
> 
> 
> 
> From: Anthony Gallina [mailto:anthonygallina1@gmail.com]
> Sent: Monday, March 16, 2015 2:22 PM
> To: snort-users@lists.sourceforge.net
> Cc: anthonygallina1@gmail.com
> Subject: [Snort-users] I could use help getting my snort pulled pork
> barnyard2 BASE running
> 
> 
> 
> Hello
> 
> I am having difficulty getting my snort pulled pork barnyard2 and base
> running.
> 
> It seems as if snort and pulled pork are running good they are in
> /etc/snort that is where all of my config files are.
> 
> My version is Version 2.9.6.0 GRE (Build 47) The barnyard ver is barnyard
> 2-2-1.13. This is on a Ubuntu 14.04 system
> 
> so most commands need to be ran with sudo.  I dont seem to be getting
> anything in my MySQL data base. And not sure
> 
> how to fix this.  Assistance will be greatly appreciated.
> 
> My snort config looks like this
> 
> #--------------------------------------------------
> #   VRT Rule Packages Snort.conf
> #
> #   For more information visit us at:
> #     http://www.snort.org                   Snort Website
> #     http://vrt-blog.snort.org/    Sourcefire VRT Blog
> #
> #     Mailing list Contact:      snort-sigs@lists.sourceforge.net <mailto:
> snort-sigs@lists.sourceforge.net>
> #     False Positive reports:    fp@sourcefire.com <mailto:
> fp@sourcefire.com>
> #     Snort bugs:                bugs@snort.org <mailto:bugs@snort.org>
> #
> #     Compatible with Snort Versions:
> #     VERSIONS : 2.9.6.0
> #
> #     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:
> #     This configuration file enables active response, to run snort in
> #     test mode -T you are required to supply an interface -i <interface>
> #     or test mode will fail to fully validate the configuration and
> #     exit with a FATAL error
> #--------------------------------------------------
> 
> ###################################################
> # This file contains a sample snort configuration.
> # You should take the following steps to create your own custom
> configuration:
> #
> #  1) Set the network variables.
> #  2) Configure the decoder
> #  3) Configure the base detection engine
> #  4) Configure dynamic loaded libraries
> #  5) Configure preprocessors
> #  6) Configure output plugins
> #  7) Customize your rule set
> #  8) Customize preprocessor and decoder rule set
> #  9) Customize shared object rule set
> ###################################################
> 
> ###################################################
> # Step #1: Set the network variables.  For more information, see
> README.variables
> ###################################################
> 
> # Setup the network addresses you are protecting
> #
> # Note to Debian users: this value is overriden when starting
> # up the Snort daemon through the init.d script by the
> # value of DEBIAN_SNORT_HOME_NET s defined in the
> # /etc/snort/snort.debian.conf configuration file
> #
> ipvar HOME_NET 192.168.1.0/24 <http://192.168.1.0/24>
> 
> # Set up the external network addresses. Leave as "any" in most situations
> ipvar EXTERNAL_NET any
> # If HOME_NET is defined as something other than "any", alternative, you
> can
> # use this definition if you do not want to detect attacks from your
> internal
> # IP addresses:
> #ipvar EXTERNAL_NET !$HOME_NET
> 
> # List of DNS servers on your network
> ipvar DNS_SERVERS $HOME_NET
> 
> # List of SMTP servers on your network
> ipvar SMTP_SERVERS $HOME_NET
> 
> # List of web servers on your network
> ipvar HTTP_SERVERS $HOME_NET
> 
> # List of sql servers on your network
> ipvar SQL_SERVERS $HOME_NET
> 
> # List of telnet servers on your network
> ipvar TELNET_SERVERS $HOME_NET
> 
> # List of ssh servers on your network
> ipvar SSH_SERVERS $HOME_NET
> 
> # List of ftp servers on your network
> ipvar FTP_SERVERS $HOME_NET
> 
> # List of sip servers on your network
> ipvar SIP_SERVERS $HOME_NET
> 
> # List of ports you run web servers on
> portvar HTTP_PORTS
> [36,80,81,82,83,84,85,86,87,88,89,90,311,383,555,591,593,631,801,808,818,901,972,115 \
> 8,1220,1414,1533,1741,1830,2231,2301,2381,2809,3029,3037,3057,3128,3443,3702,4000,43 \
> 43,4848,5117,5250,6080,6173,6988,7000,7001,7144,7145,7510,7770,7777,7779,8000,8008,8 \
> 014,8028,8080,8081,8082,8085,8088,8090,8118,8123,8180,8181,8222,8243,8280,8300,8500, \
> 8509,8800,8888,8899,9000,9060,9080,9090,9091,9111,9443,9999,10000,11371,12601,15489, \
> 29991,33300,34412,34443,34444,41080,44449,50000,50002,51423,53331,55252,55555,56712]
>  
> # 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
> 
> # List of ports you run ftp servers on
> portvar FTP_PORTS [21,2100,3535]
> 
> # List of ports you run SIP servers on
> portvar SIP_PORTS [5060,5061,5600]
> 
> # List of file data ports for file inspection
> portvar FILE_DATA_PORTS [$HTTP_PORTS,110,143]
> 
> # List of GTP ports for GTP preprocessor
> portvar GTP_PORTS [2123,2152,3386]
> 
> # other variables, these should not be 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
>  <
> http://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\rules
> var RULE_PATH /etc/snort/rules
> var SO_RULE_PATH /etc/snort/so_rules
> var PREPROC_RULE_PATH /etc/snort/preproc_rules
> 
> # If you are using reputation preprocessor set these
> # Currently there is a bug with relative paths, they are relative to where
> snort is
> # not relative to snort.conf like the above variables
> # This is completely inconsistent with how other vars work, BUG 89986
> # Set the absolute path appropriately
> #var WHITE_LIST_PATH /etc/snort/rules
> var BLACK_LIST_PATH /etc/snort/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
> 
> # Configure DAQ related options for inline operation. For 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 to DAQ
> # <dir> ::= path as to where to look for DAQ module so's
> 
> # Configure specific UID and GID to run snort as after dropping privs. For
> more information see snort -h command line options
> #
> # config set_gid:
> # config set_uid:
> 
> # Configure default snaplen. Snort defaults to MTU of in use interface.
> For more information see README
> #
> # config snaplen:
> #
> 
> # Configure default bpf_file to use for filtering what traffic reaches
> snort. For more information see snort -h command line options (-F)
> #
> # config bpf_file:
> #
> 
> # Configure default log directory for snort to log to.  For more
> information see snort -h command line options (-l)
> #
> # config logdir:
> 
> 
> ###################################################
> # 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 ac-split search-optimize max-pattern-len 20
> 
> # Configure the event queue.  For more information, see README.event_queue
> config event_queue: max_queue 8 log 5 order_events content_length
> 
> ###################################################
> ## Configure GTP if it is to be used.
> ## For more information, see README.GTP
> ####################################################
> 
> # config enable_gtp
> 
> ###################################################
> # 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
> 
> ###################################################
> # Configure protocol aware flushing
> # For more information see README.stream5
> ###################################################
> config paf_max: 16000
> 
> ###################################################
> # 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
> 
> # path to dynamic rules libraries
> dynamicdetection directory /usr/lib/snort_dynamicrules
> 
> ###################################################
> # Step #5: Configure preprocessors
> # For more information, see the Snort Manual, Configuring Snort -
> Preprocessors
> ###################################################
> 
> # GTP Control Channle Preprocessor. For more information, see README.GTP
> # preprocessor gtp: ports { 2123 3386 2152 }
> 
> # Inline packet normalization. For more information, see README.normalize
> # Does 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.  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: 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 36 80 81 82 83 84 85 86 87 88 89 90 110 311 383 443 465 563
> 555 591 593 631 636 801 808 818 901 972 989 992 993 994 995 1158 1220 1414
> 1533 1741 1830 2231 2301 2381 2809 3029 3037 3057 3128 3443 3702 4000 4343
> 4848 5117 5250 6080 6173 6988 7907 7000 7001 7144 7145 7510 7802 7770 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 8081 8082 8085 8088
> 8090 8118 8123 8180 8181 8222 8243 8280 8300 8500 8509 8800 8888 8899 9000
> 9060 9080 9090 9091 9111 9443 9999 10000 11371 12601 15489 29991 33300
> 34412 34443 34444 41080 44449 50000 50002 51423 53331 55252 55555 56712
> 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
> compress_depth 65535 decompress_depth 65535 max_gzip_mem 104857600
> preprocessor http_inspect_server: server default \
> http_methods { GET 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 { 36 80 81 82 83 84 85 86 87 88 89 90 311 383 555 591 593 631
> 801 808 818 901 972 1158 1220 1414 1741 1830 2231 2301 2381 2809 3029 3037
> 3057 3128 3443 3702 4000 4343 4848 5117 5250 6080 6173 6988 7000 7001 7144
> 7145 7510 7770 7777 7779 8000 8008 8014 8028 8080 8081 8082 8085 8088 8090
> 8118 8123 8180 8181 8222 8243 8280 8300 8500 8509 8800 8888 8899 9000 9060
> 9080 9090 9091 9111 9443 9999 10000 11371 12601 15489 29991 33300 34412
> 34443 34444 41080 44449 50000 50002 51423 53331 55252 55555 56712 } \
> 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 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 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 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 \
> 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 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, smb_invalid_shares ["C$", "D$", "ADMIN$"]
> 
> # 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 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.  For more information see
> README.sensitive_data
> preprocessor sensitive_data: alert_threshold 25
> 
> # SIP Session Initiation Protocol preprocessor.  For 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 \
> do \
> 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.  For 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. For 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. For more information see README.modbus
> preprocessor modbus: ports { 502 }
> 
> # DNP3 preprocessor. For more information see README.dnp3
> preprocessor dnp3: ports { 20000 } \
> memcap 262144 \
> check_crc
> 
> #
> # Note to Debian users: this is disabled since it is an experimental
> # preprocessor. If you want to use it you have to create the rules files
> # referenced below in the /etc/snort/rules directory
> #
> # Reputation preprocessor. For 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
> # For more information, see Snort Manual, Configuring Snort - Output
> Modules
> ###################################################
> 
> #unified2
> #unified2:pcap_and_alert
> # Recommended for most installs
> 
> # output unified2: filename merged.log, limit 128, nostamp,
> mpls_event_types, vlan_event_types
> #CHANGED THIS ONE
> output unified2: filename snort.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_AUTH LOG_ALERT
> 
> # pcap
> # output log_tcpdump: tcpdump.log
> 
> # 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
> ###################################################
> 
> # Note to Debian users: The rules preinstalled in the system
> # can be *very* out of date. For more information please read
> # the /usr/share/doc/snort-rules-default/README.Debian file
> 
> #
> # If you install the official VRT Sourcefire rules please review this
> # configuration file and re-enable (remove the comment in the first line)
> those
> # rules files that are available in your system (in the /etc/snort/rules
> # directory)
> 
> # site specific rules
> include $RULE_PATH/local.rules
> 
> #include $RULE_PATH/app-detect.rules
> include $RULE_PATH/attack-responses.rules
> include $RULE_PATH/backdoor.rules
> include $RULE_PATH/bad-traffic.rules
> #include $RULE_PATH/blacklist.rules
> #include $RULE_PATH/botnet-cnc.rules
> #include $RULE_PATH/browser-chrome.rules
> #include $RULE_PATH/browser-firefox.rules
> #include $RULE_PATH/browser-ie.rules
> #include $RULE_PATH/browser-other.rules
> #include $RULE_PATH/browser-plugins.rules
> #include $RULE_PATH/browser-webkit.rules
> include $RULE_PATH/chat.rules
> #include $RULE_PATH/content-replace.rules
> include $RULE_PATH/ddos.rules
> include $RULE_PATH/dns.rules
> include $RULE_PATH/dos.rules
> include $RULE_PATH/experimental.rules
> #include $RULE_PATH/exploit-kit.rules
> include $RULE_PATH/exploit.rules
> #include $RULE_PATH/file-executable.rules
> #include $RULE_PATH/file-flash.rules
> #include $RULE_PATH/file-identify.rules
> #include $RULE_PATH/file-image.rules
> #include $RULE_PATH/file-java.rules
> #include $RULE_PATH/file-multimedia.rules
> #include $RULE_PATH/file-office.rules
> #include $RULE_PATH/file-other.rules
> #include $RULE_PATH/file-pdf.rules
> include $RULE_PATH/finger.rules
> include $RULE_PATH/ftp.rules
> include $RULE_PATH/icmp-info.rules
> include $RULE_PATH/icmp.rules
> include $RULE_PATH/imap.rules
> #include $RULE_PATH/indicator-compromise.rules
> #include $RULE_PATH/indicator-obfuscation.rules
> #include $RULE_PATH/indicator-scan.rules
> #include $RULE_PATH/indicator-shellcode.rules
> include $RULE_PATH/info.rules
> #include $RULE_PATH/malware-backdoor.rules
> #include $RULE_PATH/malware-cnc.rules
> #include $RULE_PATH/malware-other.rules
> #include $RULE_PATH/malware-tools.rules
> include $RULE_PATH/misc.rules
> include $RULE_PATH/multimedia.rules
> include $RULE_PATH/mysql.rules
> include $RULE_PATH/netbios.rules
> include $RULE_PATH/nntp.rules
> include $RULE_PATH/oracle.rules
> #include $RULE_PATH/os-linux.rules
> #include $RULE_PATH/os-mobile.rules
> #include $RULE_PATH/os-other.rules
> #include $RULE_PATH/os-solaris.rules
> #include $RULE_PATH/os-windows.rules
> include $RULE_PATH/other-ids.rules
> include $RULE_PATH/p2p.rules
> #include $RULE_PATH/phishing-spam.rules
> #include $RULE_PATH/policy-multimedia.rules
> #include $RULE_PATH/policy-other.rules
> include $RULE_PATH/policy.rules
> #include $RULE_PATH/policy-social.rules
> #include $RULE_PATH/policy-spam.rules
> include $RULE_PATH/pop2.rules
> include $RULE_PATH/pop3.rules
> #include $RULE_PATH/protocol-dns.rules
> #include $RULE_PATH/protocol-finger.rules
> #include $RULE_PATH/protocol-ftp.rules
> #include $RULE_PATH/protocol-icmp.rules
> #include $RULE_PATH/protocol-imap.rules
> #include $RULE_PATH/protocol-nntp.rules
> #include $RULE_PATH/protocol-pop.rules
> #include $RULE_PATH/protocol-rpc.rules
> #include $RULE_PATH/protocol-scada.rules
> #include $RULE_PATH/protocol-services.rules
> #include $RULE_PATH/protocol-snmp.rules
> #include $RULE_PATH/protocol-telnet.rules
> #include $RULE_PATH/protocol-tftp.rules
> #include $RULE_PATH/protocol-voip.rules
> #include $RULE_PATH/pua-adware.rules
> #include $RULE_PATH/pua-other.rules
> #include $RULE_PATH/pua-p2p.rules
> #include $RULE_PATH/pua-toolbars.rules
> include $RULE_PATH/rpc.rules
> include $RULE_PATH/rservices.rules
> #include $RULE_PATH/scada.rules
> include $RULE_PATH/scan.rules
> #include $RULE_PATH/server-apache.rules
> #include $RULE_PATH/server-iis.rules
> #include $RULE_PATH/server-mail.rules
> #include $RULE_PATH/server-mssql.rules
> #include $RULE_PATH/server-mysql.rules
> #include $RULE_PATH/server-oracle.rules
> #include $RULE_PATH/server-other.rules
> #include $RULE_PATH/server-samba.rules
> #include $RULE_PATH/server-webapp.rules
> #
> # Note: These rules are disable by default as they are
> # too coarse grained. Enabling them causes a large
> # performance impact
> #include $RULE_PATH/shellcode.rules
> include $RULE_PATH/smtp.rules
> include $RULE_PATH/snmp.rules
> #include $RULE_PATH/specific-threats.rules
> #include $RULE_PATH/spyware-put.rules
> include $RULE_PATH/sql.rules
> include $RULE_PATH/telnet.rules
> include $RULE_PATH/tftp.rules
> include $RULE_PATH/virus.rules
> #include $RULE_PATH/voip.rules
> #include $RULE_PATH/web-activex.rules
> include $RULE_PATH/web-attacks.rules
> include $RULE_PATH/web-cgi.rules
> include $RULE_PATH/web-client.rules
> include $RULE_PATH/web-coldfusion.rules
> include $RULE_PATH/web-frontpage.rules
> include $RULE_PATH/web-iis.rules
> include $RULE_PATH/web-misc.rules
> include $RULE_PATH/web-php.rules
> include $RULE_PATH/x11.rules
> include $RULE_PATH/community-sql-injection.rules
> include $RULE_PATH/community-web-client.rules
> include $RULE_PATH/community-web-dos.rules
> include $RULE_PATH/community-web-iis.rules
> include $RULE_PATH/community-web-misc.rules
> include $RULE_PATH/community-web-php.rules
> include $RULE_PATH/community-sql-injection.rules
> include $RULE_PATH/community-web-client.rules
> include $RULE_PATH/community-web-dos.rules
> include $RULE_PATH/community-web-iis.rules
> include $RULE_PATH/community-web-misc.rules
> include $RULE_PATH/community-web-php.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-blog.snort.org/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/snmp.rules
> # include $SO_RULE_PATH/specific-threats.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
> include $RULE_PATH/snort.rules
> 
> 
> 
> And barnyard2 looks like this
> 
> 
> 
> #
> #  Barnyard2 example configuration file
> #
> 
> #
> # This file contains a sample barnyard2 configuration.
> # You can take the following steps to create your own custom configuration:
> #
> #   1) Configure the variable declarations
> #   2) Setup the input plugins
> #   3) Setup the output plugins
> #
> 
> #
> # Step 1: configure the variable declarations
> #
> 
> # in order to keep from having a commandline that uses every letter in the
> # alphabet most configuration options are set here.
> 
> # use UTC for timestamps
> #
> #config utc
> 
> # set the appropriate paths to the file(s) your Snort process is using.
> #
> config reference_file:      /etc/snort/reference.config
> config classification_file: /etc/snort/classification.config
> config gen_file:            /etc/snort/gen-msg.map
> config sid_file:            /etc/snort/sid-msg.map
> 
> 
> # Configure signature suppression at the spooler level see
> doc/README.sig_suppress
> #
> #
> #config sig_suppress: 1:10
> 
> 
> # Set the event cache size to defined max value before recycling of event
> occur.
> #
> #
> #config event_cache_size: 4096
> 
> # define dedicated references similar to that of snort.
> #
> #config reference: mybugs http://www.mybugs.com/?s=
> 
> # define explicit classifications similar to that of snort.
> #
> #config classification: shortname, short description, priority
> 
> # set the directory for any output logging
> #
> config logdir: /var/log/snort
> 
> # to ensure that any plugins requiring some level of uniqueness in their
> output
> # the alert_with_interface_name, interface and hostname directives are
> provided.
> # An example of usage would be to configure them to the values of the
> associated
> # snort process whose unified files you are reading.
> #
> # Example:
> #   For a snort process as follows:
> #     snort -i eth0 -c /etc/snort.conf
> #
> #   Typical options would be:
> #     config hostname:  thor
> #     config interface: eth0
> #     config alert_with_interface_name
> #
> #config hostname:   thor
> config interface:  eth0
> 
> # enable printing of the interface name when alerting.
> #
> #config alert_with_interface_name
> 
> # at times snort will alert on a packet within a stream and dump that
> stream to
> # the unified output. barnyard2 can generate output on each packet of that
> # stream or the first packet only.
> #
> #config alert_on_each_packet_in_stream
> 
> # enable daemon mode
> #
> config daemon
> 
> # make barnyard2 process chroot to directory after initialisation.
> #
> #config chroot: /var/spool/barnyard2
> 
> # specifiy the group or GID for barnyard2 to run as after initialisation.
> #
> #config set_gid: 999
> 
> # specifiy the user or UID for barnyard2 to run as after initialisation.
> #
> #config set_uid: 999
> 
> # specify the directory for the barnyard2 PID file.
> #
> #config pidpath: /var/run/by2.pid
> 
> # enable decoding of the data link (or second level headers).
> #
> #config decode_data_link
> 
> # dump the application data
> #
> #config dump_payload
> 
> # dump the application data as chars only
> #
> #config dump_chars_only
> 
> # enable verbose dumping of payload information in log style output
> plugins.
> #
> #config dump_payload_verbose
> 
> # enable obfuscation of logged IP addresses.
> #
> #config obfuscate
> 
> # enable the year being shown in timestamps
> #
> #config show_year
> 
> # set the umask for all files created by the barnyard2 process (eg. log
> files).
> #
> #config umask: 066
> 
> # enable verbose logging
> #
> #config verbose
> 
> # quiet down some of the output
> #
> #config quiet
> 
> # define the full waldo filepath.
> #
> #config waldo_file: /var/log/snort
> 
> # specificy the maximum length of the MPLS label chain
> #
> #config max_mpls_labelchain_len: 64
> 
> # specify the protocol (ie ipv4, ipv6, ethernet) that is encapsulated by
> MPLS.
> #
> #config mpls_payload_type: ipv4
> 
> # set the reference network or homenet which is predominantly used by the
> # log_ascii plugin.
> #
> #config reference_net: 192.168.0.0/24 <http://192.168.0.0/24>
> 
> #
> # CONTINOUS MODE
> #
> 
> # set the archive directory for use with continous mode
> #
> #config archivedir: /tmp
> 
> # when in operating in continous mode, only process new records and ignore
> any
> # existing unified files
> #
> #config process_new_records_only
> 
> 
> #
> # Step 2: setup the input plugins
> #
> 
> # this is not hard, only unified2 is supported ;)
> 
> input unified2:
> 
> 
> 
> 
> #
> # Step 3: setup the output plugins
> #
> 
> # alert_cef
> #
> ----------------------------------------------------------------------------
> #
> # Purpose:
> #  This output module provides the abilty to output alert information to a
> # remote network host as well as the local host using the open standard
> # Common Event Format (CEF).
> #
> # Arguments: host=hostname[:port], severity facility
> #            arguments should be comma delimited.
> #   host        - specify a remote hostname or IP with optional port number
> #                 this is only specific to WIN32 (and is not yet fully
> supported)
> #   severity    - as defined in RFC 3164 (eg. LOG_WARN, LOG_INFO)
> #   facility    - as defined in RFC 3164 (eg. LOG_AUTH, LOG_LOCAL0)
> #
> # Examples:
> #   output alert_cef
> #   output alert_cef: host=192.168.10.1
> #   output alert_cef: host=sysserver.com:1001 <http://sysserver.com:1001>
> #   output alert_cef: LOG_AUTH LOG_INFO
> #
> 
> # alert_bro
> #
> ----------------------------------------------------------------------------
> #
> # Purpose: Send alerts to a Bro-IDS instance.
> #
> # Arguments: hostname:port
> #
> # Examples:
> #   output alert_bro: 127.0.0.1:47757 <http://127.0.0.1:47757>
> 
> # alert_fast
> #
> ----------------------------------------------------------------------------
> # Purpose: Converts data to an approximation of Snort's "fast alert" mode.
> #
> # Arguments: file <file>, stdout
> #            arguments should be comma delimited.
> #   file - specifiy alert file
> #   stdout - no alert file, just print to screen
> #
> # Examples:
> #   output alert_fast
> #   output alert_fast: stdout
> #
> output alert_fast
> 
> 
> # prelude: log to the Prelude Hybrid IDS system
> #
> ----------------------------------------------------------------------------
> #
> # Purpose:
> #  This output module provides logging to the Prelude Hybrid IDS system
> #
> # Arguments: profile=snort-profile
> #   snort-profile   - name of the Prelude profile to use (default is
> snort).
> #
> # Snort priority to IDMEF severity mappings:
> # high < medium < low < info
> #
> # These are the default mapped from classification.config:
> # info   = 4
> # low    = 3
> # medium = 2
> # high   = anything below medium
> #
> # Examples:
> #   output alert_prelude
> #   output alert_prelude: profile=snort-profile-name
> #
> 
> 
> # alert_syslog
> #
> ----------------------------------------------------------------------------
> #
> # Purpose:
> #  This output module provides the abilty to output alert information to
> local syslog
> #
> #   severity    - as defined in RFC 3164 (eg. LOG_WARN, LOG_INFO)
> #   facility    - as defined in RFC 3164 (eg. LOG_AUTH, LOG_LOCAL0)
> #
> # Examples:
> #   output alert_syslog
> #   output alert_syslog: LOG_AUTH LOG_INFO
> #
> 
> # syslog_full
> #-------------------------------
> # Available as both a log and alert output plugin.  Used to output data
> via TCP/UDP or LOCAL ie(syslog())
> # Arguments:
> #      sensor_name $sensor_name         - unique sensor name
> #      server $server                   - server the device will report to
> #      local                            - if defined, ignore all remote
> information and use syslog() to send message.
> #      protocol $protocol               - protocol device will report over
> (tcp/udp)
> #      port $port                       - destination port device will
> report to (default: 514)
> #      delimiters $delimiters           - define a character that will
> delimit message sections ex:  "|", will use | as message section
> delimiters. (default: |)
> #      separators $separators           - define field separator included
> in each message ex: " " ,  will use space as field separator.
> (default: [:space:])
> #      operation_mode $operaion_mode    - default | complete : default
> mode is compatible with default snort syslog message, complete prints more
> information such as the raw packet (hexed)
> #      log_priority   $log_priority     - used by local option for syslog
> priority call. (man syslog(3) for supported options) (default: LOG_INFO)
> #      log_facility  $log_facility      - used by local option for syslog
> facility call. (man syslog(3) for supported options) (default: LOG_USER)
> #      payload_encoding                 - (default: hex)  support
> hex/ascii/base64 for log_syslog_full using operation_mode complete only.
> 
> # Usage Examples:
> # output alert_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode default
> # output alert_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode complete
> # output log_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode default
> # output log_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode complete
> # output alert_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514
> # output log_syslog_full: sensor_name snortIds1-eth2, server
> xxx.xxx.xxx.xxx, protocol udp, port 514
> # output alert_syslog_full: sensor_name snortIds1-eth2, local
> # output log_syslog_full: sensor_name snortIds1-eth2, local, log_priority
> LOG_CRIT,log_facility LOG_CRON
> 
> # log_ascii
> #
> ----------------------------------------------------------------------------
> #
> # Purpose: This output module provides the default packet logging
> funtionality
> #
> # Arguments: None.
> #
> # Examples:
> #   output log_ascii
> #
> 
> 
> # log_tcpdump
> #
> ----------------------------------------------------------------------------
> #
> # Purpose
> #  This output module logs packets in binary tcpdump format
> #
> # Arguments:
> #   The only argument is the output file name.
> #
> # Examples:
> #   output log_tcpdump: tcpdump.log
> #
> 
> 
> # sguil
> #
> ----------------------------------------------------------------------------
> #
> # Purpose: This output module provides logging ability for the sguil
> interface
> # See doc/README.sguil
> #
> # Arguments: agent_port <port>, sensor_name <name>
> #            arguments should be comma delimited.
> #   agent_port  - explicitly set the sguil agent listening port
> #                 (default: 7736)
> #   sensor_name - explicitly set the sensor name
> #                 (default: machine hostname)
> #
> # Examples:
> #   output sguil
> #   output sguil: agent_port=7000
> #   output sguil: sensor_name=argyle
> #   output sguil: agent_port=7000, sensor_name=argyle
> #
> 
> 
> # database: log to a variety of databases
> #
> ----------------------------------------------------------------------------
> #
> # Purpose: This output module provides logging ability to a variety of
> databases
> # See doc/README.database for additional information.
> #
> # Examples:
> output database: log, mysql, user=uniquename password=thepassword
> dbname=databasenamehere host=localhost
> #   output database: log, mysql, user=root password=test dbname=db
> host=localhost
> #   output database: alert, postgresql, user=snort dbname=snort
> #   output database: log, odbc, user=snort dbname=snort
> #   output database: log, mssql, dbname=snort user=snort password=test
> #   output database: log, oracle, dbname=snort user=snort password=test
> #
> 
> 
> # alert_fwsam: allow blocking of IP's through remote services
> #
> ----------------------------------------------------------------------------
> # output alert_fwsam: <SnortSam Station>:<port>/<key>
> #
> #  <FW Mgmt Station>:  IP address or host name of the host running
> SnortSam.
> #  <port>:         Port the remote SnortSam service listens on (default
> 898).
> #  <key>:              Key used for authentication (encryption really)
> #              of the communication to the remote service.
> #
> # Examples:
> #
> # output alert_fwsam: snortsambox/idspassword
> # output alert_fwsam: fw1.domain.tld:898/mykey
> # output alert_fwsam: 192.168.0.1/borderfw <http://192.168.0.1/borderfw>
> 192.168.1.254/wanfw <http://192.168.1.254/wanfw>
> #
> 
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> 
> ------------------------------
> 
> _______________________________________________
> Snort-users mailing list
> Snort-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/snort-users
> 
> 
> End of Snort-users Digest, Vol 106, Issue 43
> ********************************************
> 


[Attachment #8 (text/html)]

<div dir="ltr"><span style="font-size:19.2000007629395px">Yes Michael \
Steele</span><br><div><span \
style="font-size:19.2000007629395px"><br></span></div><div><span \
style="font-size:19.2000007629395px">I think this is the version that my Ubuntu \
Software center installed. Is that what is keeping me from connecting to the MySQL \
data base. Or is it a configuration problem?</span></div><div><span \
style="font-size:19.2000007629395px"><br></span></div><div><span \
style="font-size:19.2000007629395px">                                                 \
Thank you</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Mon, Mar 16, 2015 at 1:09 PM,  <span dir="ltr">&lt;<a \
href="mailto:snort-users-request@lists.sourceforge.net" \
target="_blank">snort-users-request@lists.sourceforge.net</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
                #ccc solid;padding-left:1ex">Send Snort-users mailing list \
                submissions to<br>
            <a href="mailto:snort-users@lists.sourceforge.net">snort-users@lists.sourceforge.net</a><br>
 <br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
            <a href="https://lists.sourceforge.net/lists/listinfo/snort-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/snort-users</a><br> or, \
                via email, send a message with subject or body &#39;help&#39; to<br>
            <a href="mailto:snort-users-request@lists.sourceforge.net">snort-users-request@lists.sourceforge.net</a><br>
 <br>
You can reach the person managing the list at<br>
            <a href="mailto:snort-users-owner@lists.sourceforge.net">snort-users-owner@lists.sourceforge.net</a><br>
 <br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Snort-users digest...&quot;<br>
<br>
<br>
When responding, please don&#39;t respond with the entire Digest.   Please trim your \
response.<br> <br>
Today&#39;s Topics:<br>
<br>
     1. Re: I could use help getting my snort pulled         pork      barnyard2<br>
         BASE running (Michael Steele)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 16 Mar 2015 16:09:45 -0400<br>
From: &quot;Michael Steele&quot; &lt;<a \
                href="mailto:michaels@winsnort.com">michaels@winsnort.com</a>&gt;<br>
Subject: Re: [Snort-users] I could use help getting my snort pulled<br>
            pork      barnyard2 BASE running<br>
To: &quot;&#39;Anthony Gallina&#39;&quot; &lt;<a \
                href="mailto:anthonygallina1@gmail.com">anthonygallina1@gmail.com</a>&gt;,<br>
                
            &lt;<a href="mailto:snort-users@lists.sourceforge.net">snort-users@lists.sourceforge.net</a>&gt;<br>
                
Message-ID: &lt;000401d06025$263ad270$72b07750$@<a href="http://winsnort.com" \
                target="_blank">winsnort.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
Is there a reason why you are running such an old version of Snort?<br>
<br>
<br>
<br>
Best regards,<br>
<br>
Michael...<br>
<br>
<br>
<br>
WINSNORT.com Management?<br>
<br>
--<br>
<br>
******************** Established ~ 2002 **********************<br>
<br>
* FREE Windows Intrusion Detection System (WinIDS) Tutorials *<br>
<br>
*                  ~~ FREE Windows Support Forums ~~                       *<br>
<br>
*                       Visit @ <a href="http://winsnort.com" \
target="_blank">http://winsnort.com</a> &lt;<a href="http://winsnort.com/" \
target="_blank">http://winsnort.com/</a>&gt;                             *<br> <br>
*        Snort: Open Source Network IDS - <a href="http://snort.org" \
target="_blank">http://snort.org</a> &lt;<a href="http://snort.org/" \
target="_blank">http://snort.org/</a>&gt;           *<br> <br>
**************************************************************<br>
<br>
<br>
<br>
From: Anthony Gallina [mailto:<a \
                href="mailto:anthonygallina1@gmail.com">anthonygallina1@gmail.com</a>]<br>
                
Sent: Monday, March 16, 2015 2:22 PM<br>
To: <a href="mailto:snort-users@lists.sourceforge.net">snort-users@lists.sourceforge.net</a><br>
                
Cc: <a href="mailto:anthonygallina1@gmail.com">anthonygallina1@gmail.com</a><br>
Subject: [Snort-users] I could use help getting my snort pulled pork barnyard2 BASE \
running<br> <br>
<br>
<br>
Hello<br>
<br>
I am having difficulty getting my snort pulled pork barnyard2 and base running.<br>
<br>
It seems as if snort and pulled pork are running good they are in /etc/snort that is \
where all of my config files are.<br> <br>
My version is Version 2.9.6.0 GRE (Build 47) The barnyard ver is barnyard 2-2-1.13. \
This is on a Ubuntu 14.04 system<br> <br>
so most commands need to be ran with sudo.   I dont seem to be getting anything in my \
MySQL data base. And not sure<br> <br>
how to fix this.   Assistance will be greatly appreciated.<br>
<br>
My snort config looks like this<br>
<br>
#--------------------------------------------------<br>
#     VRT Rule Packages Snort.conf<br>
#<br>
#     For more information visit us at:<br>
#        <a href="http://www.snort.org" target="_blank">http://www.snort.org</a>      \
Snort Website<br> #        <a href="http://vrt-blog.snort.org/" \
target="_blank">http://vrt-blog.snort.org/</a>      Sourcefire VRT Blog<br> #<br>
#        Mailing list Contact:         <a \
href="mailto:snort-sigs@lists.sourceforge.net">snort-sigs@lists.sourceforge.net</a> \
&lt;mailto:<a href="mailto:snort-sigs@lists.sourceforge.net">snort-sigs@lists.sourceforge.net</a>&gt;<br>
 #        False Positive reports:      <a \
href="mailto:fp@sourcefire.com">fp@sourcefire.com</a> &lt;mailto:<a \
href="mailto:fp@sourcefire.com">fp@sourcefire.com</a>&gt;<br> #        Snort bugs:    \
<a href="mailto:bugs@snort.org">bugs@snort.org</a> &lt;mailto:<a \
href="mailto:bugs@snort.org">bugs@snort.org</a>&gt;<br> #<br>
#        Compatible with Snort Versions:<br>
#        VERSIONS : 2.9.6.0<br>
#<br>
#        Snort build options:<br>
#        OPTIONS : --enable-gre --enable-mpls --enable-targetbased --enable-ppm \
--enable-perfprofiling --enable-zlib --enable-active-response --enable-normalizer \
--enable-reload --enable-react --enable-flexresp3<br> #<br>
#        Additional information:<br>
#        This configuration file enables active response, to run snort in<br>
#        test mode -T you are required to supply an interface -i \
&lt;interface&gt;<br> #        or test mode will fail to fully validate the \
configuration and<br> #        exit with a FATAL error<br>
#--------------------------------------------------<br>
<br>
###################################################<br>
# This file contains a sample snort configuration.<br>
# You should take the following steps to create your own custom configuration:<br>
#<br>
#   1) Set the network variables.<br>
#   2) Configure the decoder<br>
#   3) Configure the base detection engine<br>
#   4) Configure dynamic loaded libraries<br>
#   5) Configure preprocessors<br>
#   6) Configure output plugins<br>
#   7) Customize your rule set<br>
#   8) Customize preprocessor and decoder rule set<br>
#   9) Customize shared object rule set<br>
###################################################<br>
<br>
###################################################<br>
# Step #1: Set the network variables.   For more information, see \
README.variables<br> ###################################################<br>
<br>
# Setup the network addresses you are protecting<br>
#<br>
# Note to Debian users: this value is overriden when starting<br>
# up the Snort daemon through the init.d script by the<br>
# value of DEBIAN_SNORT_HOME_NET s defined in the<br>
# /etc/snort/snort.debian.conf configuration file<br>
#<br>
ipvar HOME_NET <a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> \
&lt;<a href="http://192.168.1.0/24" target="_blank">http://192.168.1.0/24</a>&gt;<br> \
<br> # Set up the external network addresses. Leave as &quot;any&quot; in most \
situations<br> ipvar EXTERNAL_NET any<br>
# If HOME_NET is defined as something other than &quot;any&quot;, alternative, you \
can<br> # use this definition if you do not want to detect attacks from your \
internal<br> # IP addresses:<br>
#ipvar EXTERNAL_NET !$HOME_NET<br>
<br>
# List of DNS servers on your network<br>
ipvar DNS_SERVERS $HOME_NET<br>
<br>
# List of SMTP servers on your network<br>
ipvar SMTP_SERVERS $HOME_NET<br>
<br>
# List of web servers on your network<br>
ipvar HTTP_SERVERS $HOME_NET<br>
<br>
# List of sql servers on your network<br>
ipvar SQL_SERVERS $HOME_NET<br>
<br>
# List of telnet servers on your network<br>
ipvar TELNET_SERVERS $HOME_NET<br>
<br>
# List of ssh servers on your network<br>
ipvar SSH_SERVERS $HOME_NET<br>
<br>
# List of ftp servers on your network<br>
ipvar FTP_SERVERS $HOME_NET<br>
<br>
# List of sip servers on your network<br>
ipvar SIP_SERVERS $HOME_NET<br>
<br>
# List of ports you run web servers on<br>
portvar HTTP_PORTS [36,80,81,82,83,84,85,86,87,88,89,90,311,383,555,591,593,631,801,80 \
8,818,901,972,1158,1220,1414,1533,1741,1830,2231,2301,2381,2809,3029,3037,3057,3128,34 \
43,3702,4000,4343,4848,5117,5250,6080,6173,6988,7000,7001,7144,7145,7510,7770,7777,777 \
9,8000,8008,8014,8028,8080,8081,8082,8085,8088,8090,8118,8123,8180,8181,8222,8243,8280 \
,8300,8500,8509,8800,8888,8899,9000,9060,9080,9090,9091,9111,9443,9999,10000,11371,126 \
01,15489,29991,33300,34412,34443,34444,41080,44449,50000,50002,51423,53331,55252,55555,56712]<br>
 <br>
# List of ports you want to look for SHELLCODE on.<br>
portvar SHELLCODE_PORTS !80<br>
<br>
# List of ports you might see oracle attacks on<br>
portvar ORACLE_PORTS 1024:<br>
<br>
# List of ports you want to look for SSH connections on:<br>
portvar SSH_PORTS 22<br>
<br>
# List of ports you run ftp servers on<br>
portvar FTP_PORTS [21,2100,3535]<br>
<br>
# List of ports you run SIP servers on<br>
portvar SIP_PORTS [5060,5061,5600]<br>
<br>
# List of file data ports for file inspection<br>
portvar FILE_DATA_PORTS [$HTTP_PORTS,110,143]<br>
<br>
# List of GTP ports for GTP preprocessor<br>
portvar GTP_PORTS [2123,2152,3386]<br>
<br>
# other variables, these should not be modified<br>
ipvar AIM_SERVERS [<a \
href="http://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" \
target="_blank">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</a> \
&lt;<a href="http://64.12.24.0/23,64.12.28.0/23,64.12.161.0/24,64.12.163.0/24,64.12.20 \
0.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" \
target="_blank">http://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</a>&gt; \
]<br> <br>
# Path to your rules files (this can be a relative path)<br>
# Note for Windows users:   You are advised to make this an absolute path,<br>
# such as:   c:\snort\rules<br>
var RULE_PATH /etc/snort/rules<br>
var SO_RULE_PATH /etc/snort/so_rules<br>
var PREPROC_RULE_PATH /etc/snort/preproc_rules<br>
<br>
# If you are using reputation preprocessor set these<br>
# Currently there is a bug with relative paths, they are relative to where snort \
is<br> # not relative to snort.conf like the above variables<br>
# This is completely inconsistent with how other vars work, BUG 89986<br>
# Set the absolute path appropriately<br>
#var WHITE_LIST_PATH /etc/snort/rules<br>
var BLACK_LIST_PATH /etc/snort/rules<br>
<br>
###################################################<br>
# Step #2: Configure the decoder.   For more information, see README.decode<br>
###################################################<br>
<br>
# Stop generic decode events:<br>
config disable_decode_alerts<br>
<br>
# Stop Alerts on experimental TCP options<br>
config disable_tcpopt_experimental_alerts<br>
<br>
# Stop Alerts on obsolete TCP options<br>
config disable_tcpopt_obsolete_alerts<br>
<br>
# Stop Alerts on T/TCP alerts<br>
config disable_tcpopt_ttcp_alerts<br>
<br>
# Stop Alerts on all other TCPOption type events:<br>
config disable_tcpopt_alerts<br>
<br>
# Stop Alerts on invalid ip options<br>
config disable_ipopt_alerts<br>
<br>
# Alert if value in length field (IP, TCP, UDP) is greater th elength of the \
packet<br> # config enable_decode_oversized_alerts<br>
<br>
# Same as above, but drop packet if in Inline mode (requires \
enable_decode_oversized_alerts)<br> # config enable_decode_oversized_drops<br>
<br>
# Configure IP / TCP checksum mode<br>
config checksum_mode: all<br>
<br>
# Configure maximum number of flowbit references.   For more information, see \
README.flowbits<br> # config flowbits_size: 64<br>
<br>
# Configure ports to ignore<br>
# config ignore_ports: tcp 21 6667:6671 1356<br>
# config ignore_ports: udp 1:17 53<br>
<br>
# Configure active response for non inline operation. For more information, see \
REAMDE.active<br> # config response: eth0 attempts 2<br>
<br>
# Configure DAQ related options for inline operation. For more information, see \
README.daq<br> #<br>
# config daq: &lt;type&gt;<br>
# config daq_dir: &lt;dir&gt;<br>
# config daq_mode: &lt;mode&gt;<br>
# config daq_var: &lt;var&gt;<br>
#<br>
# &lt;type&gt; ::= pcap | afpacket | dump | nfq | ipq | ipfw<br>
# &lt;mode&gt; ::= read-file | passive | inline<br>
# &lt;var&gt; ::= arbitrary &lt;name&gt;=&lt;value passed to DAQ<br>
# &lt;dir&gt; ::= path as to where to look for DAQ module so&#39;s<br>
<br>
# Configure specific UID and GID to run snort as after dropping privs. For more \
information see snort -h command line options<br> #<br>
# config set_gid:<br>
# config set_uid:<br>
<br>
# Configure default snaplen. Snort defaults to MTU of in use interface. For more \
information see README<br> #<br>
# config snaplen:<br>
#<br>
<br>
# Configure default bpf_file to use for filtering what traffic reaches snort. For \
more information see snort -h command line options (-F)<br> #<br>
# config bpf_file:<br>
#<br>
<br>
# Configure default log directory for snort to log to.   For more information see \
snort -h command line options (-l)<br> #<br>
# config logdir:<br>
<br>
<br>
###################################################<br>
# Step #3: Configure the base detection engine.   For more information, see   \
README.decode<br> ###################################################<br>
<br>
# Configure PCRE match limitations<br>
config pcre_match_limit: 3500<br>
config pcre_match_limit_recursion: 1500<br>
<br>
# Configure the detection engine   See the Snort Manual, Configuring Snort - Includes \
- Config<br> config detection: search-method ac-split search-optimize max-pattern-len \
20<br> <br>
# Configure the event queue.   For more information, see README.event_queue<br>
config event_queue: max_queue 8 log 5 order_events content_length<br>
<br>
###################################################<br>
## Configure GTP if it is to be used.<br>
## For more information, see README.GTP<br>
####################################################<br>
<br>
# config enable_gtp<br>
<br>
###################################################<br>
# Per packet and rule latency enforcement<br>
# For more information see README.ppm<br>
###################################################<br>
<br>
# Per Packet latency configuration<br>
#config ppm: max-pkt-time 250, \<br>
#     fastpath-expensive-packets, \<br>
#     pkt-log<br>
<br>
# Per Rule latency configuration<br>
#config ppm: max-rule-time 200, \<br>
#     threshold 3, \<br>
#     suspend-expensive-rules, \<br>
#     suspend-timeout 20, \<br>
#     rule-log alert<br>
<br>
###################################################<br>
# Configure Perf Profiling for debugging<br>
# For more information see README.PerfProfiling<br>
###################################################<br>
<br>
#config profile_rules: print all, sort avg_ticks<br>
#config profile_preprocs: print all, sort avg_ticks<br>
<br>
###################################################<br>
# Configure protocol aware flushing<br>
# For more information see README.stream5<br>
###################################################<br>
config paf_max: 16000<br>
<br>
###################################################<br>
# Step #4: Configure dynamic loaded libraries.<br>
# For more information, see Snort Manual, Configuring Snort - Dynamic Modules<br>
###################################################<br>
<br>
# path to dynamic preprocessor libraries<br>
dynamicpreprocessor directory /usr/lib/snort_dynamicpreprocessor/<br>
<br>
# path to base preprocessor engine<br>
dynamicengine /usr/lib/snort_dynamicengine/libsf_engine.so<br>
<br>
# path to dynamic rules libraries<br>
dynamicdetection directory /usr/lib/snort_dynamicrules<br>
<br>
###################################################<br>
# Step #5: Configure preprocessors<br>
# For more information, see the Snort Manual, Configuring Snort - Preprocessors<br>
###################################################<br>
<br>
# GTP Control Channle Preprocessor. For more information, see README.GTP<br>
# preprocessor gtp: ports { 2123 3386 2152 }<br>
<br>
# Inline packet normalization. For more information, see README.normalize<br>
# Does nothing in IDS mode<br>
preprocessor normalize_ip4<br>
preprocessor normalize_tcp: ips ecn stream<br>
preprocessor normalize_icmp4<br>
preprocessor normalize_ip6<br>
preprocessor normalize_icmp6<br>
<br>
# Target-based IP defragmentation.   For more inforation, see README.frag3<br>
preprocessor frag3_global: max_frags 65536<br>
preprocessor frag3_engine: policy windows detect_anomalies overlap_limit 10 \
min_fragment_length 100 timeout 180<br> <br>
# Target-Based stateful inspection/stream reassembly.   For more inforation, see \
README.stream5<br> preprocessor stream5_global: track_tcp yes, \<br>
     track_udp yes, \<br>
     track_icmp no, \<br>
     max_tcp 262144, \<br>
     max_udp 131072, \<br>
     max_active_responses 2, \<br>
     min_response_seconds 5<br>
preprocessor stream5_tcp: policy windows, detect_anomalies, require_3whs 180, \<br>
     overlap_limit 10, small_segments 3 bytes 150, timeout 180, \<br>
      ports client 21 22 23 25 42 53 70 79 109 110 111 113 119 135 136 137 139 143 \
                \<br>
            161 445 513 514 587 593 691 1433 1521 1741 2100 3306 6070 6665 6666 6667 \
                6668 6669 \<br>
            7000 8181 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, \
\<br>  ports both 36 80 81 82 83 84 85 86 87 88 89 90 110 311 383 443 465 563 555 591 \
593 631 636 801 808 818 901 972 989 992 993 994 995 1158 1220 1414 1533 1741 1830 \
2231 2301 2381 2809 3029 3037 3057 3128 3443 3702 4000 4343 4848 5117 5250 6080 6173 \
                6988 7907 7000 7001 7144 7145 7510 7802 7770 7777 7779 \<br>
            7801 7900 7901 7902 7903 7904 7905 7906 7908 7909 7910 7911 7912 7913 \
7914 7915 7916 \<br>  7917 7918 7919 7920 8000 8008 8014 8028 8080 8081 8082 8085 \
8088 8090 8118 8123 8180 8181 8222 8243 8280 8300 8500 8509 8800 8888 8899 9000 9060 \
9080 9090 9091 9111 9443 9999 10000 11371 12601 15489 29991 33300 34412 34443 34444 \
41080 44449 50000 50002 51423 53331 55252 55555 56712<br> preprocessor stream5_udp: \
timeout 180<br> <br>
# performance statistics.   For more information, see the Snort Manual, Configuring \
Snort - Preprocessors - Performance Monitor<br> # preprocessor perfmonitor: time 300 \
file /var/snort/snort.stats pktcnt 10000<br> <br>
# HTTP normalization and anomaly detection.   For more information, see \
README.http_inspect<br> preprocessor http_inspect: global iis_unicode_map unicode.map \
1252 compress_depth 65535 decompress_depth 65535 max_gzip_mem 104857600<br> \
preprocessor http_inspect_server: server default \<br>  http_methods { GET 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 } \<br>  chunk_length 500000 \<br>
      server_flow_depth 0 \<br>
      client_flow_depth 0 \<br>
      post_depth 65495 \<br>
      oversize_dir_length 500 \<br>
      max_header_length 750 \<br>
      max_headers 100 \<br>
      max_spaces 200 \<br>
      small_chunk_length { 10 5 } \<br>
      ports { 36 80 81 82 83 84 85 86 87 88 89 90 311 383 555 591 593 631 801 808 818 \
901 972 1158 1220 1414 1741 1830 2231 2301 2381 2809 3029 3037 3057 3128 3443 3702 \
4000 4343 4848 5117 5250 6080 6173 6988 7000 7001 7144 7145 7510 7770 7777 7779 8000 \
8008 8014 8028 8080 8081 8082 8085 8088 8090 8118 8123 8180 8181 8222 8243 8280 8300 \
8500 8509 8800 8888 8899 9000 9060 9080 9090 9091 9111 9443 9999 10000 11371 12601 \
15489 29991 33300 34412 34443 34444 41080 44449 50000 50002 51423 53331 55252 55555 \
56712 } \<br>  non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \<br>
      enable_cookie \<br>
      extended_response_inspection \<br>
      inspect_gzip \<br>
      normalize_utf \<br>
      unlimited_decompress \<br>
      normalize_javascript \<br>
      apache_whitespace no \<br>
      ascii no \<br>
      bare_byte no \<br>
      directory no \<br>
      double_decode no \<br>
      iis_backslash no \<br>
      iis_delimiter no \<br>
      iis_unicode no \<br>
      multi_slash no \<br>
      utf_8 no \<br>
      u_encode yes \<br>
      webroot no<br>
<br>
# ONC-RPC normalization and anomaly detection.   For more information, see the Snort \
Manual, Configuring Snort - Preprocessors - RPC Decode<br> 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<br> <br>
# Back Orifice detection.<br>
preprocessor bo<br>
<br>
# FTP / Telnet normalization and anomaly detection.   For more information, see \
README.ftptelnet<br> preprocessor ftp_telnet: global inspection_type stateful \
encrypted_traffic no check_encrypted<br> preprocessor ftp_telnet_protocol: telnet \
\<br>  ayt_attack_thresh 20 \<br>
      normalize ports { 23 } \<br>
      detect_anomalies<br>
preprocessor ftp_telnet_protocol: ftp server default \<br>
      def_max_param_len 100 \<br>
      ports { 21 2100 3535 } \<br>
      telnet_cmds yes \<br>
      ignore_telnet_erase_cmds yes \<br>
      ftp_cmds { ABOR ACCT ADAT ALLO APPE AUTH CCC CDUP } \<br>
      ftp_cmds { CEL CLNT CMD CONF CWD DELE ENC EPRT } \<br>
      ftp_cmds { EPSV ESTA ESTP FEAT HELP LANG LIST LPRT } \<br>
      ftp_cmds { LPSV MACB MAIL MDTM MIC MKD MLSD MLST } \<br>
      ftp_cmds { MODE NLST NOOP OPTS PASS PASV PBSZ PORT } \<br>
      ftp_cmds { PROT PWD QUIT REIN REST RETR RMD RNFR } \<br>
      ftp_cmds { RNTO SDUP SITE SIZE SMNT STAT STOR STOU } \<br>
      ftp_cmds { STRU SYST TEST TYPE USER XCUP XCRC XCWD } \<br>
      ftp_cmds { XMAS XMD5 XMKD XPWD XRCP XRMD XRSQ XSEM } \<br>
      ftp_cmds { XSEN XSHA1 XSHA256 } \<br>
      alt_max_param_len 0 { ABOR CCC CDUP ESTA FEAT LPSV NOOP PASV PWD QUIT REIN STOU \
                SYST XCUP XPWD } \<br>
      alt_max_param_len 200 { ALLO APPE CMD HELP NLST RETR RNFR STOR STOU XMKD } \
\<br>  alt_max_param_len 256 { CWD RNTO } \<br>
      alt_max_param_len 400 { PORT } \<br>
      alt_max_param_len 512 { SIZE } \<br>
      chk_str_fmt { ACCT ADAT ALLO APPE AUTH CEL CLNT CMD } \<br>
      chk_str_fmt { CONF CWD DELE ENC EPRT EPSV ESTP HELP } \<br>
      chk_str_fmt { LANG LIST LPRT MACB MAIL MDTM MIC MKD } \<br>
      chk_str_fmt { MLSD MLST MODE NLST OPTS PASS PBSZ PORT } \<br>
      chk_str_fmt { PROT REST RETR RMD RNFR RNTO SDUP SITE } \<br>
      chk_str_fmt { SIZE SMNT STAT STOR STRU TEST TYPE USER } \<br>
      chk_str_fmt { XCRC XCWD XMAS XMD5 XMKD XRCP XRMD XRSQ } \<br>
      chk_str_fmt { XSEM XSEN XSHA1 XSHA256 } \<br>
      cmd_validity ALLO &lt; int [ char R int ] &gt; \<br>
      cmd_validity EPSV &lt; [ { char 12 | char A char L char L } ] &gt; \<br>
      cmd_validity MACB &lt; string &gt; \<br>
      cmd_validity MDTM &lt; [ date nnnnnnnnnnnnnn[.n[n[n]]] ] string &gt; \<br>
      cmd_validity MODE &lt; char ASBCZ &gt; \<br>
      cmd_validity PORT &lt; host_port &gt; \<br>
      cmd_validity PROT &lt; char CSEP &gt; \<br>
      cmd_validity STRU &lt; char FRPO [ string ] &gt; \<br>
      cmd_validity TYPE &lt; { char AE [ char NTC ] | char I | char L [ number ] } \
&gt;<br> preprocessor ftp_telnet_protocol: ftp client default \<br>
      max_resp_len 256 \<br>
      bounce yes \<br>
      ignore_telnet_erase_cmds yes \<br>
      telnet_cmds yes<br>
<br>
<br>
# SMTP normalization and anomaly detection.   For more information, see \
README.SMTP<br> preprocessor smtp: ports { 25 465 587 691 } \<br>
      inspection_type stateful \<br>
      b64_decode_depth 0 \<br>
      qp_decode_depth 0 \<br>
      bitenc_decode_depth 0 \<br>
      uu_decode_depth 0 \<br>
      log_mailfrom \<br>
      log_rcptto \<br>
      log_filename \<br>
      log_email_hdrs \<br>
      normalize cmds \<br>
      normalize_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM \
                ETRN EVFY } \<br>
      normalize_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML \
                SEND SOML } \<br>
      normalize_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP \
                X-EXCH50 } \<br>
      normalize_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE \
XSTA XTRN XUSR } \<br>  max_command_line_len 512 \<br>
      max_header_line_len 1000 \<br>
      max_response_line_len 512 \<br>
      alt_max_command_line_len 260 { MAIL } \<br>
      alt_max_command_line_len 300 { RCPT } \<br>
      alt_max_command_line_len 500 { HELP HELO ETRN EHLO } \<br>
      alt_max_command_line_len 255 { EXPN VRFY ATRN SIZE BDAT DEBUG EMAL ESAM ESND \
ESOM EVFY IDENT NOOP RSET } \<br>  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 } \<br>
      valid_cmds { ATRN AUTH BDAT CHUNKING DATA DEBUG EHLO EMAL ESAM ESND ESOM ETRN \
                EVFY } \<br>
      valid_cmds { EXPN HELO HELP IDENT MAIL NOOP ONEX QUEU QUIT RCPT RSET SAML SEND \
                SOML } \<br>
      valid_cmds { STARTTLS TICK TIME TURN TURNME VERB VRFY X-ADAT X-DRCP X-ERCP \
                X-EXCH50 } \<br>
      valid_cmds { X-EXPS X-LINK2STATE XADR XAUTH XCIR XEXCH50 XGEN XLICENSE XQUE \
XSTA XTRN XUSR } \<br>  xlink2state { enabled }<br>
<br>
# Portscan detection.   For more information, see README.sfportscan<br>
# preprocessor sfportscan: proto   { all } memcap { 10000000 } sense_level { low \
}<br> <br>
# ARP spoof detection.   For more information, see the Snort Manual - Configuring \
Snort - Preprocessors - ARP Spoof Preprocessor<br> # preprocessor arpspoof<br>
# preprocessor arpspoof_detect_host: 192.168.40.1 f0:0f:00:f0:0f:00<br>
<br>
# SSH anomaly detection.   For more information, see README.ssh<br>
preprocessor ssh: server_ports { 22 } \<br>
                           autodetect \<br>
                           max_client_bytes 19600 \<br>
                           max_encrypted_packets 20 \<br>
                           max_server_version_len 100 \<br>
                           enable_respoverflow enable_ssh1crc32 \<br>
                           enable_srvoverflow enable_protomismatch<br>
<br>
# SMB / DCE-RPC normalization and anomaly detection.   For more information, see \
README.dcerpc2<br> preprocessor dcerpc2: memcap 102400, events [co ]<br>
preprocessor dcerpc2_server: default, policy WinXP, \<br>
      detect [smb [139,445], tcp 135, udp 135, rpc-over-http-server 593], \<br>
      autodetect [tcp 1025:, udp 1025:, rpc-over-http-server 1025:], \<br>
      smb_max_chain 3, smb_invalid_shares [&quot;C$&quot;, &quot;D$&quot;, \
&quot;ADMIN$&quot;]<br> <br>
# DNS anomaly detection.   For more information, see README.dns<br>
preprocessor dns: ports { 53 } enable_rdata_overflow<br>
<br>
# SSL anomaly detection and traffic bypass.   For more information, see \
README.ssl<br> 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<br> <br>
# SDF sensitive data preprocessor.   For more information see \
README.sensitive_data<br> preprocessor sensitive_data: alert_threshold 25<br>
<br>
# SIP Session Initiation Protocol preprocessor.   For more information see \
README.sip<br> preprocessor sip: max_sessions 40000, \<br>
     ports { 5060 5061 5600 }, \<br>
     methods { invite \<br>
                    cancel \<br>
                    ack \<br>
                    bye \<br>
                    register \<br>
                    options \<br>
                    refer \<br>
                    subscribe \<br>
                    update \<br>
                    join \<br>
                    info \<br>
                    message \<br>
                    notify \<br>
                    benotify \<br>
                    do \<br>
                    qauth \<br>
                    sprack \<br>
                    publish \<br>
                    service \<br>
                    unsubscribe \<br>
                    prack }, \<br>
     max_uri_len 512, \<br>
     max_call_id_len 80, \<br>
     max_requestName_len 20, \<br>
     max_from_len 256, \<br>
     max_to_len 256, \<br>
     max_via_len 1024, \<br>
     max_contact_len 512, \<br>
     max_content_len 2048<br>
<br>
# IMAP preprocessor.   For more information see README.imap<br>
preprocessor imap: \<br>
     ports { 143 } \<br>
     b64_decode_depth 0 \<br>
     qp_decode_depth 0 \<br>
     bitenc_decode_depth 0 \<br>
     uu_decode_depth 0<br>
<br>
# POP preprocessor. For more information see README.pop<br>
preprocessor pop: \<br>
     ports { 110 } \<br>
     b64_decode_depth 0 \<br>
     qp_decode_depth 0 \<br>
     bitenc_decode_depth 0 \<br>
     uu_decode_depth 0<br>
<br>
# Modbus preprocessor. For more information see README.modbus<br>
preprocessor modbus: ports { 502 }<br>
<br>
# DNP3 preprocessor. For more information see README.dnp3<br>
preprocessor dnp3: ports { 20000 } \<br>
     memcap 262144 \<br>
     check_crc<br>
<br>
#<br>
# Note to Debian users: this is disabled since it is an experimental<br>
# preprocessor. If you want to use it you have to create the rules files<br>
# referenced below in the /etc/snort/rules directory<br>
#<br>
# Reputation preprocessor. For more information see README.reputation<br>
#preprocessor reputation: \<br>
#     memcap 500, \<br>
#     priority whitelist, \<br>
#     nested_ip inner, \<br>
#     whitelist $WHITE_LIST_PATH/white_list.rules, \<br>
#     blacklist $BLACK_LIST_PATH/black_list.rules<br>
<br>
###################################################<br>
# Step #6: Configure output plugins<br>
# For more information, see Snort Manual, Configuring Snort - Output Modules<br>
###################################################<br>
<br>
#unified2<br>
#unified2:pcap_and_alert<br>
# Recommended for most installs<br>
<br>
# output unified2: filename merged.log, limit 128, nostamp, mpls_event_types, \
vlan_event_types<br> #CHANGED THIS ONE<br>
output unified2: filename snort.log, limit 128, nostamp, mpls_event_types, \
vlan_event_types<br> <br>
# Additional configuration for specific types of installs<br>
#output alert_unified2: filename snort.alert, limit 128, nostamp<br>
# output log_unified2: filename snort.log, limit 128, nostamp<br>
<br>
# syslog<br>
# output alert_syslog: LOG_AUTH LOG_ALERT<br>
<br>
# pcap<br>
# output log_tcpdump: tcpdump.log<br>
<br>
# metadata reference data.   do not modify these lines<br>
include classification.config<br>
include reference.config<br>
<br>
<br>
###################################################<br>
# Step #7: Customize your rule set<br>
# For more information, see Snort Manual, Writing Snort Rules<br>
#<br>
# NOTE: All categories are enabled in this conf file<br>
###################################################<br>
<br>
# Note to Debian users: The rules preinstalled in the system<br>
# can be *very* out of date. For more information please read<br>
# the /usr/share/doc/snort-rules-default/README.Debian file<br>
<br>
#<br>
# If you install the official VRT Sourcefire rules please review this<br>
# configuration file and re-enable (remove the comment in the first line) those<br>
# rules files that are available in your system (in the /etc/snort/rules<br>
# directory)<br>
<br>
# site specific rules<br>
include $RULE_PATH/local.rules<br>
<br>
#include $RULE_PATH/app-detect.rules<br>
include $RULE_PATH/attack-responses.rules<br>
include $RULE_PATH/backdoor.rules<br>
include $RULE_PATH/bad-traffic.rules<br>
#include $RULE_PATH/blacklist.rules<br>
#include $RULE_PATH/botnet-cnc.rules<br>
#include $RULE_PATH/browser-chrome.rules<br>
#include $RULE_PATH/browser-firefox.rules<br>
#include $RULE_PATH/browser-ie.rules<br>
#include $RULE_PATH/browser-other.rules<br>
#include $RULE_PATH/browser-plugins.rules<br>
#include $RULE_PATH/browser-webkit.rules<br>
include $RULE_PATH/chat.rules<br>
#include $RULE_PATH/content-replace.rules<br>
include $RULE_PATH/ddos.rules<br>
include $RULE_PATH/dns.rules<br>
include $RULE_PATH/dos.rules<br>
include $RULE_PATH/experimental.rules<br>
#include $RULE_PATH/exploit-kit.rules<br>
include $RULE_PATH/exploit.rules<br>
#include $RULE_PATH/file-executable.rules<br>
#include $RULE_PATH/file-flash.rules<br>
#include $RULE_PATH/file-identify.rules<br>
#include $RULE_PATH/file-image.rules<br>
#include $RULE_PATH/file-java.rules<br>
#include $RULE_PATH/file-multimedia.rules<br>
#include $RULE_PATH/file-office.rules<br>
#include $RULE_PATH/file-other.rules<br>
#include $RULE_PATH/file-pdf.rules<br>
include $RULE_PATH/finger.rules<br>
include $RULE_PATH/ftp.rules<br>
include $RULE_PATH/icmp-info.rules<br>
include $RULE_PATH/icmp.rules<br>
include $RULE_PATH/imap.rules<br>
#include $RULE_PATH/indicator-compromise.rules<br>
#include $RULE_PATH/indicator-obfuscation.rules<br>
#include $RULE_PATH/indicator-scan.rules<br>
#include $RULE_PATH/indicator-shellcode.rules<br>
include $RULE_PATH/info.rules<br>
#include $RULE_PATH/malware-backdoor.rules<br>
#include $RULE_PATH/malware-cnc.rules<br>
#include $RULE_PATH/malware-other.rules<br>
#include $RULE_PATH/malware-tools.rules<br>
include $RULE_PATH/misc.rules<br>
include $RULE_PATH/multimedia.rules<br>
include $RULE_PATH/mysql.rules<br>
include $RULE_PATH/netbios.rules<br>
include $RULE_PATH/nntp.rules<br>
include $RULE_PATH/oracle.rules<br>
#include $RULE_PATH/os-linux.rules<br>
#include $RULE_PATH/os-mobile.rules<br>
#include $RULE_PATH/os-other.rules<br>
#include $RULE_PATH/os-solaris.rules<br>
#include $RULE_PATH/os-windows.rules<br>
include $RULE_PATH/other-ids.rules<br>
include $RULE_PATH/p2p.rules<br>
#include $RULE_PATH/phishing-spam.rules<br>
#include $RULE_PATH/policy-multimedia.rules<br>
#include $RULE_PATH/policy-other.rules<br>
include $RULE_PATH/policy.rules<br>
#include $RULE_PATH/policy-social.rules<br>
#include $RULE_PATH/policy-spam.rules<br>
include $RULE_PATH/pop2.rules<br>
include $RULE_PATH/pop3.rules<br>
#include $RULE_PATH/protocol-dns.rules<br>
#include $RULE_PATH/protocol-finger.rules<br>
#include $RULE_PATH/protocol-ftp.rules<br>
#include $RULE_PATH/protocol-icmp.rules<br>
#include $RULE_PATH/protocol-imap.rules<br>
#include $RULE_PATH/protocol-nntp.rules<br>
#include $RULE_PATH/protocol-pop.rules<br>
#include $RULE_PATH/protocol-rpc.rules<br>
#include $RULE_PATH/protocol-scada.rules<br>
#include $RULE_PATH/protocol-services.rules<br>
#include $RULE_PATH/protocol-snmp.rules<br>
#include $RULE_PATH/protocol-telnet.rules<br>
#include $RULE_PATH/protocol-tftp.rules<br>
#include $RULE_PATH/protocol-voip.rules<br>
#include $RULE_PATH/pua-adware.rules<br>
#include $RULE_PATH/pua-other.rules<br>
#include $RULE_PATH/pua-p2p.rules<br>
#include $RULE_PATH/pua-toolbars.rules<br>
include $RULE_PATH/rpc.rules<br>
include $RULE_PATH/rservices.rules<br>
#include $RULE_PATH/scada.rules<br>
include $RULE_PATH/scan.rules<br>
#include $RULE_PATH/server-apache.rules<br>
#include $RULE_PATH/server-iis.rules<br>
#include $RULE_PATH/server-mail.rules<br>
#include $RULE_PATH/server-mssql.rules<br>
#include $RULE_PATH/server-mysql.rules<br>
#include $RULE_PATH/server-oracle.rules<br>
#include $RULE_PATH/server-other.rules<br>
#include $RULE_PATH/server-samba.rules<br>
#include $RULE_PATH/server-webapp.rules<br>
#<br>
# Note: These rules are disable by default as they are<br>
# too coarse grained. Enabling them causes a large<br>
# performance impact<br>
#include $RULE_PATH/shellcode.rules<br>
include $RULE_PATH/smtp.rules<br>
include $RULE_PATH/snmp.rules<br>
#include $RULE_PATH/specific-threats.rules<br>
#include $RULE_PATH/spyware-put.rules<br>
include $RULE_PATH/sql.rules<br>
include $RULE_PATH/telnet.rules<br>
include $RULE_PATH/tftp.rules<br>
include $RULE_PATH/virus.rules<br>
#include $RULE_PATH/voip.rules<br>
#include $RULE_PATH/web-activex.rules<br>
include $RULE_PATH/web-attacks.rules<br>
include $RULE_PATH/web-cgi.rules<br>
include $RULE_PATH/web-client.rules<br>
include $RULE_PATH/web-coldfusion.rules<br>
include $RULE_PATH/web-frontpage.rules<br>
include $RULE_PATH/web-iis.rules<br>
include $RULE_PATH/web-misc.rules<br>
include $RULE_PATH/web-php.rules<br>
include $RULE_PATH/x11.rules<br>
include $RULE_PATH/community-sql-injection.rules<br>
include $RULE_PATH/community-web-client.rules<br>
include $RULE_PATH/community-web-dos.rules<br>
include $RULE_PATH/community-web-iis.rules<br>
include $RULE_PATH/community-web-misc.rules<br>
include $RULE_PATH/community-web-php.rules<br>
include $RULE_PATH/community-sql-injection.rules<br>
include $RULE_PATH/community-web-client.rules<br>
include $RULE_PATH/community-web-dos.rules<br>
include $RULE_PATH/community-web-iis.rules<br>
include $RULE_PATH/community-web-misc.rules<br>
include $RULE_PATH/community-web-php.rules<br>
<br>
<br>
###################################################<br>
# Step #8: Customize your preprocessor and decoder alerts<br>
# For more information, see README.decoder_preproc_rules<br>
###################################################<br>
<br>
# decoder and preprocessor event rules<br>
# include $PREPROC_RULE_PATH/preprocessor.rules<br>
# include $PREPROC_RULE_PATH/decoder.rules<br>
# include $PREPROC_RULE_PATH/sensitive-data.rules<br>
<br>
###################################################<br>
# Step #9: Customize your Shared Object Snort Rules<br>
# For more information, see <a \
href="http://vrt-blog.snort.org/2009/01/using-vrt-certified-shared-object-rules.html" \
target="_blank">http://vrt-blog.snort.org/2009/01/using-vrt-certified-shared-object-rules.html</a><br>
 ###################################################<br>
<br>
# dynamic library rules<br>
# include $SO_RULE_PATH/bad-traffic.rules<br>
# include $SO_RULE_PATH/chat.rules<br>
# include $SO_RULE_PATH/dos.rules<br>
# include $SO_RULE_PATH/exploit.rules<br>
# include $SO_RULE_PATH/icmp.rules<br>
# include $SO_RULE_PATH/imap.rules<br>
# include $SO_RULE_PATH/misc.rules<br>
# include $SO_RULE_PATH/multimedia.rules<br>
# include $SO_RULE_PATH/netbios.rules<br>
# include $SO_RULE_PATH/nntp.rules<br>
# include $SO_RULE_PATH/p2p.rules<br>
# include $SO_RULE_PATH/smtp.rules<br>
# include $SO_RULE_PATH/snmp.rules<br>
# include $SO_RULE_PATH/specific-threats.rules<br>
# include $SO_RULE_PATH/web-activex.rules<br>
# include $SO_RULE_PATH/web-client.rules<br>
# include $SO_RULE_PATH/web-iis.rules<br>
# include $SO_RULE_PATH/web-misc.rules<br>
<br>
# Event thresholding or suppression commands. See threshold.conf<br>
include threshold.conf<br>
include $RULE_PATH/snort.rules<br>
<br>
<br>
<br>
And barnyard2 looks like this<br>
<br>
<br>
<br>
#<br>
#   Barnyard2 example configuration file<br>
#<br>
<br>
#<br>
# This file contains a sample barnyard2 configuration.<br>
# You can take the following steps to create your own custom configuration:<br>
#<br>
#     1) Configure the variable declarations<br>
#     2) Setup the input plugins<br>
#     3) Setup the output plugins<br>
#<br>
<br>
#<br>
# Step 1: configure the variable declarations<br>
#<br>
<br>
# in order to keep from having a commandline that uses every letter in the<br>
# alphabet most configuration options are set here.<br>
<br>
# use UTC for timestamps<br>
#<br>
#config utc<br>
<br>
# set the appropriate paths to the file(s) your Snort process is using.<br>
#<br>
config reference_file:         /etc/snort/reference.config<br>
config classification_file: /etc/snort/classification.config<br>
config gen_file:                  /etc/snort/gen-msg.map<br>
config sid_file:                  /etc/snort/sid-msg.map<br>
<br>
<br>
# Configure signature suppression at the spooler level see \
doc/README.sig_suppress<br> #<br>
#<br>
#config sig_suppress: 1:10<br>
<br>
<br>
# Set the event cache size to defined max value before recycling of event occur.<br>
#<br>
#<br>
#config event_cache_size: 4096<br>
<br>
# define dedicated references similar to that of snort.<br>
#<br>
#config reference: mybugs <a href="http://www.mybugs.com/?s=" \
target="_blank">http://www.mybugs.com/?s=</a><br> <br>
# define explicit classifications similar to that of snort.<br>
#<br>
#config classification: shortname, short description, priority<br>
<br>
# set the directory for any output logging<br>
#<br>
config logdir: /var/log/snort<br>
<br>
# to ensure that any plugins requiring some level of uniqueness in their output<br>
# the alert_with_interface_name, interface and hostname directives are provided.<br>
# An example of usage would be to configure them to the values of the associated<br>
# snort process whose unified files you are reading.<br>
#<br>
# Example:<br>
#     For a snort process as follows:<br>
#        snort -i eth0 -c /etc/snort.conf<br>
#<br>
#     Typical options would be:<br>
#        config hostname:   thor<br>
#        config interface: eth0<br>
#        config alert_with_interface_name<br>
#<br>
#config hostname:     thor<br>
config interface:   eth0<br>
<br>
# enable printing of the interface name when alerting.<br>
#<br>
#config alert_with_interface_name<br>
<br>
# at times snort will alert on a packet within a stream and dump that stream to<br>
# the unified output. barnyard2 can generate output on each packet of that<br>
# stream or the first packet only.<br>
#<br>
#config alert_on_each_packet_in_stream<br>
<br>
# enable daemon mode<br>
#<br>
config daemon<br>
<br>
# make barnyard2 process chroot to directory after initialisation.<br>
#<br>
#config chroot: /var/spool/barnyard2<br>
<br>
# specifiy the group or GID for barnyard2 to run as after initialisation.<br>
#<br>
#config set_gid: 999<br>
<br>
# specifiy the user or UID for barnyard2 to run as after initialisation.<br>
#<br>
#config set_uid: 999<br>
<br>
# specify the directory for the barnyard2 PID file.<br>
#<br>
#config pidpath: /var/run/by2.pid<br>
<br>
# enable decoding of the data link (or second level headers).<br>
#<br>
#config decode_data_link<br>
<br>
# dump the application data<br>
#<br>
#config dump_payload<br>
<br>
# dump the application data as chars only<br>
#<br>
#config dump_chars_only<br>
<br>
# enable verbose dumping of payload information in log style output plugins.<br>
#<br>
#config dump_payload_verbose<br>
<br>
# enable obfuscation of logged IP addresses.<br>
#<br>
#config obfuscate<br>
<br>
# enable the year being shown in timestamps<br>
#<br>
#config show_year<br>
<br>
# set the umask for all files created by the barnyard2 process (eg. log files).<br>
#<br>
#config umask: 066<br>
<br>
# enable verbose logging<br>
#<br>
#config verbose<br>
<br>
# quiet down some of the output<br>
#<br>
#config quiet<br>
<br>
# define the full waldo filepath.<br>
#<br>
#config waldo_file: /var/log/snort<br>
<br>
# specificy the maximum length of the MPLS label chain<br>
#<br>
#config max_mpls_labelchain_len: 64<br>
<br>
# specify the protocol (ie ipv4, ipv6, ethernet) that is encapsulated by MPLS.<br>
#<br>
#config mpls_payload_type: ipv4<br>
<br>
# set the reference network or homenet which is predominantly used by the<br>
# log_ascii plugin.<br>
#<br>
#config reference_net: <a href="http://192.168.0.0/24" \
target="_blank">192.168.0.0/24</a> &lt;<a href="http://192.168.0.0/24" \
target="_blank">http://192.168.0.0/24</a>&gt;<br> <br>
#<br>
# CONTINOUS MODE<br>
#<br>
<br>
# set the archive directory for use with continous mode<br>
#<br>
#config archivedir: /tmp<br>
<br>
# when in operating in continous mode, only process new records and ignore any<br>
# existing unified files<br>
#<br>
#config process_new_records_only<br>
<br>
<br>
#<br>
# Step 2: setup the input plugins<br>
#<br>
<br>
# this is not hard, only unified2 is supported ;)<br>
<br>
input unified2:<br>
<br>
<br>
<br>
<br>
#<br>
# Step 3: setup the output plugins<br>
#<br>
<br>
# alert_cef<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose:<br>
#   This output module provides the abilty to output alert information to a<br>
# remote network host as well as the local host using the open standard<br>
# Common Event Format (CEF).<br>
#<br>
# Arguments: host=hostname[:port], severity facility<br>
#                  arguments should be comma delimited.<br>
#     host            - specify a remote hostname or IP with optional port number<br>
#                          this is only specific to WIN32 (and is not yet fully \
supported)<br> #     severity      - as defined in RFC 3164 (eg. LOG_WARN, \
LOG_INFO)<br> #     facility      - as defined in RFC 3164 (eg. LOG_AUTH, \
LOG_LOCAL0)<br> #<br>
# Examples:<br>
#     output alert_cef<br>
#     output alert_cef: host=192.168.10.1<br>
#     output alert_cef: host=<a href="http://sysserver.com:1001" \
target="_blank">sysserver.com:1001</a> &lt;<a href="http://sysserver.com:1001" \
target="_blank">http://sysserver.com:1001</a>&gt;<br> #     output alert_cef: \
LOG_AUTH LOG_INFO<br> #<br>
<br>
# alert_bro<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose: Send alerts to a Bro-IDS instance.<br>
#<br>
# Arguments: hostname:port<br>
#<br>
# Examples:<br>
#     output alert_bro: <a href="http://127.0.0.1:47757" \
target="_blank">127.0.0.1:47757</a> &lt;<a href="http://127.0.0.1:47757" \
target="_blank">http://127.0.0.1:47757</a>&gt;<br> <br>
# alert_fast<br>
# ----------------------------------------------------------------------------<br>
# Purpose: Converts data to an approximation of Snort&#39;s &quot;fast alert&quot; \
mode.<br> #<br>
# Arguments: file &lt;file&gt;, stdout<br>
#                  arguments should be comma delimited.<br>
#     file - specifiy alert file<br>
#     stdout - no alert file, just print to screen<br>
#<br>
# Examples:<br>
#     output alert_fast<br>
#     output alert_fast: stdout<br>
#<br>
output alert_fast<br>
<br>
<br>
# prelude: log to the Prelude Hybrid IDS system<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose:<br>
#   This output module provides logging to the Prelude Hybrid IDS system<br>
#<br>
# Arguments: profile=snort-profile<br>
#     snort-profile     - name of the Prelude profile to use (default is snort).<br>
#<br>
# Snort priority to IDMEF severity mappings:<br>
# high &lt; medium &lt; low &lt; info<br>
#<br>
# These are the default mapped from classification.config:<br>
# info     = 4<br>
# low      = 3<br>
# medium = 2<br>
# high     = anything below medium<br>
#<br>
# Examples:<br>
#     output alert_prelude<br>
#     output alert_prelude: profile=snort-profile-name<br>
#<br>
<br>
<br>
# alert_syslog<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose:<br>
#   This output module provides the abilty to output alert information to local \
syslog<br> #<br>
#     severity      - as defined in RFC 3164 (eg. LOG_WARN, LOG_INFO)<br>
#     facility      - as defined in RFC 3164 (eg. LOG_AUTH, LOG_LOCAL0)<br>
#<br>
# Examples:<br>
#     output alert_syslog<br>
#     output alert_syslog: LOG_AUTH LOG_INFO<br>
#<br>
<br>
# syslog_full<br>
#-------------------------------<br>
# Available as both a log and alert output plugin.   Used to output data via TCP/UDP \
or LOCAL ie(syslog())<br> # Arguments:<br>
#         sensor_name $sensor_name              - unique sensor name<br>
#         server $server                             - server the device will report \
to<br> #         local                                          - if defined, ignore \
all remote information and use syslog() to send message.<br> #         protocol \
$protocol                       - protocol device will report over (tcp/udp)<br> #    \
port $port                                   - destination port device will report to \
(default: 514)<br> #         delimiters $delimiters                 - define a \
character that will delimit message sections ex:   &quot;|&quot;, will use | as \
message section delimiters. (default: |)<br> #         separators $separators         \
- define field separator included in each message ex: &quot; &quot; ,   will use \
space as field separator.                    (default: [:space:])<br> #         \
operation_mode $operaion_mode      - default | complete : default mode is compatible \
with default snort syslog message, complete prints more information such as the raw \
packet (hexed)<br> #         log_priority     $log_priority        - used by local \
option for syslog priority call. (man syslog(3) for supported options) (default: \
LOG_INFO)<br> #         log_facility   $log_facility         - used by local option \
for syslog facility call. (man syslog(3) for supported options) (default: \
LOG_USER)<br> #         payload_encoding                          - (default: hex)   \
support hex/ascii/base64 for log_syslog_full using operation_mode complete only.<br> \
<br> # Usage Examples:<br>
# output alert_syslog_full: sensor_name snortIds1-eth2, server xxx.xxx.xxx.xxx, \
protocol udp, port 514, operation_mode default<br> # output alert_syslog_full: \
sensor_name snortIds1-eth2, server xxx.xxx.xxx.xxx, protocol udp, port 514, \
operation_mode complete<br> # output log_syslog_full: sensor_name snortIds1-eth2, \
server xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode default<br> # output \
log_syslog_full: sensor_name snortIds1-eth2, server xxx.xxx.xxx.xxx, protocol udp, \
port 514, operation_mode complete<br> # output alert_syslog_full: sensor_name \
snortIds1-eth2, server xxx.xxx.xxx.xxx, protocol udp, port 514<br> # output \
log_syslog_full: sensor_name snortIds1-eth2, server xxx.xxx.xxx.xxx, protocol udp, \
port 514<br> # output alert_syslog_full: sensor_name snortIds1-eth2, local<br>
# output log_syslog_full: sensor_name snortIds1-eth2, local, log_priority \
LOG_CRIT,log_facility LOG_CRON<br> <br>
# log_ascii<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose: This output module provides the default packet logging funtionality<br>
#<br>
# Arguments: None.<br>
#<br>
# Examples:<br>
#     output log_ascii<br>
#<br>
<br>
<br>
# log_tcpdump<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose<br>
#   This output module logs packets in binary tcpdump format<br>
#<br>
# Arguments:<br>
#     The only argument is the output file name.<br>
#<br>
# Examples:<br>
#     output log_tcpdump: tcpdump.log<br>
#<br>
<br>
<br>
# sguil<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose: This output module provides logging ability for the sguil interface<br>
# See doc/README.sguil<br>
#<br>
# Arguments: agent_port &lt;port&gt;, sensor_name &lt;name&gt;<br>
#                  arguments should be comma delimited.<br>
#     agent_port   - explicitly set the sguil agent listening port<br>
#                          (default: 7736)<br>
#     sensor_name - explicitly set the sensor name<br>
#                          (default: machine hostname)<br>
#<br>
# Examples:<br>
#     output sguil<br>
#     output sguil: agent_port=7000<br>
#     output sguil: sensor_name=argyle<br>
#     output sguil: agent_port=7000, sensor_name=argyle<br>
#<br>
<br>
<br>
# database: log to a variety of databases<br>
# ----------------------------------------------------------------------------<br>
#<br>
# Purpose: This output module provides logging ability to a variety of databases<br>
# See doc/README.database for additional information.<br>
#<br>
# Examples:<br>
     output database: log, mysql, user=uniquename password=thepassword \
dbname=databasenamehere host=localhost<br> #     output database: log, mysql, \
user=root password=test dbname=db host=localhost<br> #     output database: alert, \
postgresql, user=snort dbname=snort<br> #     output database: log, odbc, user=snort \
dbname=snort<br> #     output database: log, mssql, dbname=snort user=snort \
password=test<br> #     output database: log, oracle, dbname=snort user=snort \
password=test<br> #<br>
<br>
<br>
# alert_fwsam: allow blocking of IP&#39;s through remote services<br>
# ----------------------------------------------------------------------------<br>
# output alert_fwsam: &lt;SnortSam Station&gt;:&lt;port&gt;/&lt;key&gt;<br>
#<br>
#   &lt;FW Mgmt Station&gt;:   IP address or host name of the host running \
SnortSam.<br> #   &lt;port&gt;:              Port the remote SnortSam service listens \
on (default 898).<br> #   &lt;key&gt;:                     Key used for \
authentication (encryption really)<br> #                     of the communication to \
the remote service.<br> #<br>
# Examples:<br>
#<br>
# output alert_fwsam: snortsambox/idspassword<br>
# output alert_fwsam: fw1.domain.tld:898/mykey<br>
# output alert_fwsam: <a href="http://192.168.0.1/borderfw" \
target="_blank">192.168.0.1/borderfw</a> &lt;<a href="http://192.168.0.1/borderfw" \
target="_blank">http://192.168.0.1/borderfw</a>&gt;     <a \
href="http://192.168.1.254/wanfw" target="_blank">192.168.1.254/wanfw</a> &lt;<a \
href="http://192.168.1.254/wanfw" \
target="_blank">http://192.168.1.254/wanfw</a>&gt;<br> #<br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
------------------------------------------------------------------------------<br>
Dive into the World of Parallel Programming The Go Parallel Website, sponsored<br>
by Intel and developed in partnership with Slashdot Media, is your hub for all<br>
things parallel software development, from weekly thought leadership blogs to<br>
news, videos, case studies, tutorials and more. Take a look and join the<br>
conversation now. <a href="http://goparallel.sourceforge.net/" \
target="_blank">http://goparallel.sourceforge.net/</a><br> <br>
------------------------------<br>
<br>
_______________________________________________<br>
Snort-users mailing list<br>
<a href="mailto:Snort-users@lists.sourceforge.net">Snort-users@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/snort-users" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/snort-users</a><br> <br>
<br>
End of Snort-users Digest, Vol 106, Issue 43<br>
********************************************<br>
</blockquote></div><br></div>



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
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://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
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://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic