-var EXTERNAL_NET !$HOME_NET
-var SMTP_SERVERS $HOME_NET
-var HTTP_SERVERS $HOME_NET
-var SQL_SERVERS $HOME_NET
-var TELNET_SERVERS $HOME_NET
-var HTTP_PORTS 80
-var SHELLCODE_PORTS !80
-var ORACLE_PORTS 1521
-var AIM_SERVERS [64.12.24.0/24,64.12.25.0/24,64.12.26.14/24,64.12.28.0/24,64.12.29.0/24,64.12.161.0/24,64.12.163.0/24,205.188.5.0/24,205.188.9.0/24]
-var RULE_PATH /etc/snort
-
-###################################################
-# Do NOT Edit past this line
-###################################################
-config detection: search-method lowmem
-preprocessor flow: memcap 2097152, stats_interval 0, hash 2
-preprocessor frag2: memcap 2097152
-preprocessor stream4: memcap 2097152, detect_scans, disable_evasion_alerts
-preprocessor stream4_reassemble: noalerts
-preprocessor http_inspect: global iis_unicode_map unicode.map 1252
-preprocessor http_inspect_server: server default profile all ports { 80 8080 }
-preprocessor rpc_decode: 111 32771
+
+# Setup the network addresses you are protecting
+# taken from /etc/snort vars
+#var HOME_NET any
+
+# Set up the external network addresses. A good start may be "any"
+var EXTERNAL_NET any
+
+# List of DNS servers on your network
+# taken from /etc/snort vars
+#var DNS_SERVERS $HOME_NET
+
+# List of SMTP servers on your network
+var SMTP_SERVERS $HOME_NET
+
+# List of web servers on your network
+var HTTP_SERVERS $HOME_NET
+
+# List of sql servers on your network
+var SQL_SERVERS $HOME_NET
+
+# List of telnet servers on your network
+var TELNET_SERVERS $HOME_NET
+
+# List of ports you run web servers on
+portvar HTTP_PORTS [80,2301,3128,7777,7779,8000,8008,8028,8080,8180,8888,9999]
+
+# List of ssh ports
+portvar SSH_PORTS [22,222]
+
+# 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 1521
+
+# other variables, these should not be modified
+var AIM_SERVERS [64.12.24.0/23,64.12.28.0/23,64.12.161.0/24,64.12.163.0/24,64.12.200.0/24,205.188.3.0/24,205.188.5.0/24,205.188.7.0/24,205.188.9.0/24,205.188.153.0/24,205.188.179.0/24,205.188.248.0/24]
+
+# Path to your rules files (this can be a relative path)
+# Note for Windows users: You are advised to make this an absolute path,
+# such as: c:\snort\rules
+var RULE_PATH /etc/snort/rules
+var SO_RULE_PATH /etc/snort/so_rules
+var PREPROC_RULE_PATH /etc/snort/preproc_rules
+
+
+###################################################
+# Step #2: Configure the decoder. For more information, see README.decode
+###################################################
+
+# Stop generic decode events:
+#config disable_decode_alerts
+
+# Stop Alerts on experimental TCP options
+config disable_tcpopt_experimental_alerts
+
+# Stop Alerts on obsolete TCP options
+config disable_tcpopt_obsolete_alerts
+
+# Stop Alerts on T/TCP alerts
+#config disable_tcpopt_ttcp_alerts
+
+# Stop Alerts on all other TCPOption type events:
+#config disable_tcpopt_alerts
+
+# Stop Alerts on invalid ip options
+#config disable_ipopt_alerts
+
+# Alert if value in length field (IP, TCP, UDP) is greater th elength of the packet
+# config enable_decode_oversized_alerts
+
+# Same as above, but drop packet if in Inline mode (requires enable_decode_oversized_alerts)
+# config enable_decode_oversized_drops
+
+# Configure IP / TCP checksum mode
+config checksum_mode: all
+
+# Configure maximum number of flowbit references. For more information, see README.flowbits
+# config flowbits_size: 64
+
+# Configure ports to ignore
+# config ignore_ports: tcp 21 6667:6671 1356
+# config ignore_ports: udp 1:17 53
+
+
+###################################################
+# Step #3: Configure the base detection engine. For more information, see README.decode
+###################################################
+
+# Configure PCRE match limitations
+config pcre_match_limit: 1500
+config pcre_match_limit_recursion: 1500
+
+# Configure the detection engine See the Snort Manual, Configuring Snort - Includes - Config
+config detection: search-method ac-bnfa max_queue_events 5
+
+# Configure the event queue. For more information, see README.event_queue
+config event_queue: max_queue 8 log 3 order_events content_length
+
+# Configure Inline Resets. See README.INLINE
+# config layer2resets: 00:06:76:DD:5F:E3
+
+
+###################################################
+# 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
+###################################################
+
+# Target-based IP defragmentation. For more inforation, see README.frag3
+preprocessor frag3_global: max_frags 65536
+preprocessor frag3_engine: policy windows timeout 180
+
+# Target-Based stateful inspection/stream reassembly. For more inforation, see README.stream5
+preprocessor stream5_global: max_tcp 8192, track_tcp yes, track_udp no
+preprocessor stream5_tcp: policy windows, use_static_footprint_sizes, ports client 21 22 23 25 42 53 79 80 109 110 111 113 119 135 136 137 139 143 110 111 161 445 513 514 691 1433 1521 2100 2301 3128 3306 6665 6666 6667 6668 6669 7000 8000 8080 8180 8888 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779, ports both 443 465 563 636 989 992 993 994 995 7801 7702 7900 7901 7902 7903 7904 7905 7906 6907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920
+# preprocessor stream5_udp: ignore_any_rules
+
+# performance statistics. For more information, see the Snort Manual, Configuring Snort - Preprocessors - Performance Monitor
+# preprocessor perfmonitor: time 300 file /var/snort/snort.stats pktcnt 10000
+
+# HTTP normalization and anomaly detection. For more information, see README.http_inspect
+preprocessor http_inspect: global iis_unicode_map unicode.map 1252
+
+preprocessor http_inspect_server: server default \
+ apache_whitespace no \
+ ascii no \
+ bare_byte no \
+ chunk_length 500000 \
+ flow_depth 1460 \
+ directory no \
+ double_decode no \
+ iis_backslash no \
+ iis_delimiter no \
+ iis_unicode no \
+ multi_slash no \
+ non_strict \
+ oversize_dir_length 500 \
+ ports { 80 2301 3128 7777 7779 8000 8008 8028 8080 8180 8888 9999 } \
+ u_encode yes \
+ non_rfc_char { 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 } \
+ 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.