]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Adds a defrag configuration example in suricata.yaml
authorGiuseppe Longo <giuseppelng@gmail.com>
Sun, 1 Dec 2013 16:46:31 +0000 (17:46 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Dec 2013 11:03:20 +0000 (12:03 +0100)
src/defrag-config.c
suricata.yaml.in

index 4ae272f26be0cea7de2dc7f37831955891d18195..69553a0d0ced6aaf7b039a35432849cd823ffca1 100644 (file)
  *
  * \author Giuseppe Longo <giuseppelng@gmail.com>
  *
- * Example config:
- * defrag:
- *    memcap: 32mb
- *    hash-size: 65536
- *    trackers: 65535
- *    max-frags: 65535
- *    prealloc: yes
- *
- *    default-config:
- *       timeout: 40
- *
- *    host-config:
- *
- *      - dmz:
- *          timeout: 30
- *          address: [192.168.1.0/24, 127.0.0.0/8, 1.1.1.0/24, 2.2.2.0/24, "1.1.1.1", "2.2.2.2", "::1"]
- *
- *      - lan:
- *          timeout: 45
- *          address:
- *            - 192.168.0.0/24
- *            - 192.168.10.0/24
- *            - 172.16.14.0/24
  */
 
 #include "suricata-common.h"
index dbbffb6cb5894ad9c3020930b4e8c6604e955a4e..4df61d493e299cb62599bdb5678187251041a2d9 100644 (file)
@@ -528,6 +528,20 @@ defrag:
   prealloc: yes
   timeout: 60
 
+# Enable defrag per host settings
+#  host-config:
+#
+#    - dmz:
+#        timeout: 30
+#        address: [192.168.1.0/24, 127.0.0.0/8, 1.1.1.0/24, 2.2.2.0/24, "1.1.1.1", "2.2.2.2", "::1"]
+#
+#    - lan:
+#        timeout: 45
+#        address:
+#          - 192.168.0.0/24
+#          - 192.168.10.0/24
+#          - 172.16.14.0/24
+
 # Flow settings:
 # By default, the reserved memory (memcap) for flows is 32MB. This is the limit
 # for flow allocation inside the engine. You can change this value to allow