]> git.ipfire.org Git - ipfire-2.x.git/blob - config/suricata/suricata.yaml
suricata: Update to 4.1.3
[ipfire-2.x.git] / config / suricata / suricata.yaml
1 %YAML 1.1
2 ---
3
4 ##
5 ## IPFire specific configuration file - an untouched example configuration
6 ## can be found in suricata-example.yaml.
7 ##
8
9 vars:
10 address-groups:
11 # Include HOME_NET declaration from external file.
12 include: /var/ipfire/suricata/suricata-homenet.yaml
13
14 EXTERNAL_NET: "!$HOME_NET"
15 #EXTERNAL_NET: "any"
16
17 HTTP_SERVERS: "$HOME_NET"
18 SMTP_SERVERS: "$HOME_NET"
19 SQL_SERVERS: "$HOME_NET"
20 DNS_SERVERS: "$HOME_NET"
21 TELNET_SERVERS: "$HOME_NET"
22 AIM_SERVERS: "$EXTERNAL_NET"
23 DC_SERVERS: "$HOME_NET"
24 DNP3_SERVER: "$HOME_NET"
25 DNP3_CLIENT: "$HOME_NET"
26 MODBUS_CLIENT: "$HOME_NET"
27 MODBUS_SERVER: "$HOME_NET"
28 ENIP_CLIENT: "$HOME_NET"
29 ENIP_SERVER: "$HOME_NET"
30
31 port-groups:
32 HTTP_PORTS: "80"
33 SHELLCODE_PORTS: "!80"
34 ORACLE_PORTS: 1521
35 SSH_PORTS: "[22,222]"
36 DNP3_PORTS: 20000
37 MODBUS_PORTS: 502
38 FILE_DATA_PORTS: "[$HTTP_PORTS,110,143]"
39 FTP_PORTS: 21
40
41 ##
42 ## Ruleset specific options.
43 ##
44 default-rule-path: /var/lib/suricata
45 rule-files:
46 # Include enabled ruleset files from external file.
47 include: /var/ipfire/suricata/suricata-used-rulefiles.yaml
48
49 classification-file: /var/lib/suricata/classification.config
50 reference-config-file: /var/lib/suricata/reference.config
51 threshold-file: /var/lib/suricata/threshold.config
52
53
54 ##
55 ## Logging options.
56 ##
57 default-log-dir: /var/log/suricata/
58
59 # global stats configuration
60 stats:
61 enabled: yes
62 # The interval field (in seconds) controls at what interval
63 # the loggers are invoked.
64 interval: 8
65
66 # Add decode events as stats.
67 #decoder-events: true
68 # Decoder event prefix in stats. Has been 'decoder' before, but that leads
69 # to missing events in the eve.stats records. See issue #2225.
70 decoder-events-prefix: "decoder.event"
71 # Add stream events as stats.
72 #stream-events: false
73
74 # Configure the type of alert (and other) logging you would like.
75 outputs:
76 # a line based alerts log similar to Snort's fast.log
77 - fast:
78 enabled: yes
79 filename: fast.log
80 append: yes
81 #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
82
83 # Stats.log contains data from various counters of the suricata engine.
84 - stats:
85 enabled: yes
86 filename: stats.log
87 append: no # append to file (yes) or overwrite it (no)
88 totals: yes # stats for all threads merged together
89 threads: no # per thread stats
90 #null-values: yes # print counters that have value 0
91
92 logging:
93 # The default log level, can be overridden in an output section.
94 # Note that debug level logging will only be emitted if Suricata was
95 # compiled with the --enable-debug configure option.
96 #
97 # This value is overriden by the SC_LOG_LEVEL env var.
98 default-log-level: notice
99
100 # A regex to filter output. Can be overridden in an output section.
101 # Defaults to empty (no filter).
102 #
103 # This value is overriden by the SC_LOG_OP_FILTER env var.
104 default-output-filter:
105
106 # Define your logging outputs. If none are defined, or they are all
107 # disabled you will get the default - console output.
108 outputs:
109 - console:
110 enabled: no
111 # type: json
112 - file:
113 enabled: no
114 level: info
115 filename: /var/log/suricata/suricata.log
116 # type: json
117 - syslog:
118 enabled: yes
119 facility: local5
120 format: ""
121 # type: json
122
123 ##
124 ## Netfilter configuration
125 ##
126
127 nfq:
128 mode: repeat
129 repeat-mark: 1879048192
130 repeat-mask: 1879048192
131 # bypass-mark: 1
132 # bypass-mask: 1
133 # route-queue: 2
134 # batchcount: 20
135 fail-open: yes
136
137 ##
138 ## Step 5: App Layer Protocol Configuration
139 ##
140
141 # Configure the app-layer parsers. The protocols section details each
142 # protocol.
143 #
144 # The option "enabled" takes 3 values - "yes", "no", "detection-only".
145 # "yes" enables both detection and the parser, "no" disables both, and
146 # "detection-only" enables protocol detection only (parser disabled).
147 app-layer:
148 protocols:
149 krb5:
150 enabled: no # Requires rust
151 ikev2:
152 enabled: yes
153 tls:
154 enabled: yes
155 detection-ports:
156 dp: "[443,444,465,853,993,995]"
157
158 # Completely stop processing TLS/SSL session after the handshake
159 # completed. If bypass is enabled this will also trigger flow
160 # bypass. If disabled (the default), TLS/SSL session is still
161 # tracked for Heartbleed and other anomalies.
162 #no-reassemble: yes
163 dcerpc:
164 enabled: yes
165 ftp:
166 enabled: yes
167 ssh:
168 enabled: yes
169 smtp:
170 enabled: yes
171 # Configure SMTP-MIME Decoder
172 mime:
173 # Decode MIME messages from SMTP transactions
174 # (may be resource intensive)
175 # This field supercedes all others because it turns the entire
176 # process on or off
177 decode-mime: yes
178
179 # Decode MIME entity bodies (ie. base64, quoted-printable, etc.)
180 decode-base64: yes
181 decode-quoted-printable: yes
182
183 # Maximum bytes per header data value stored in the data structure
184 # (default is 2000)
185 header-value-depth: 2000
186
187 # Extract URLs and save in state data structure
188 extract-urls: yes
189 # Set to yes to compute the md5 of the mail body. You will then
190 # be able to journalize it.
191 body-md5: no
192 # Configure inspected-tracker for file_data keyword
193 inspected-tracker:
194 content-limit: 100000
195 content-inspect-min-size: 32768
196 content-inspect-window: 4096
197 imap:
198 enabled: yes
199 msn:
200 enabled: yes
201 smb:
202 enabled: yes
203 detection-ports:
204 dp: 139, 445
205 # smb2 detection is disabled internally inside the engine.
206 #smb2:
207 # enabled: yes
208 dns:
209 # memcaps. Globally and per flow/state.
210 global-memcap: 32mb
211 state-memcap: 512kb
212
213 # How many unreplied DNS requests are considered a flood.
214 # If the limit is reached, app-layer-event:dns.flooded; will match.
215 request-flood: 512
216
217 tcp:
218 enabled: yes
219 detection-ports:
220 dp: 53
221 udp:
222 enabled: yes
223 detection-ports:
224 dp: 53
225 http:
226 enabled: yes
227 memcap: 256mb
228
229 # default-config: Used when no server-config matches
230 # personality: List of personalities used by default
231 # request-body-limit: Limit reassembly of request body for inspection
232 # by http_client_body & pcre /P option.
233 # response-body-limit: Limit reassembly of response body for inspection
234 # by file_data, http_server_body & pcre /Q option.
235 # double-decode-path: Double decode path section of the URI
236 # double-decode-query: Double decode query section of the URI
237 # response-body-decompress-layer-limit:
238 # Limit to how many layers of compression will be
239 # decompressed. Defaults to 2.
240 #
241 # Currently Available Personalities:
242 # Minimal, Generic, IDS (default), IIS_4_0, IIS_5_0, IIS_5_1, IIS_6_0,
243 # IIS_7_0, IIS_7_5, Apache_2
244 libhtp:
245 default-config:
246 personality: IDS
247
248 # Can be specified in kb, mb, gb. Just a number indicates
249 # it's in bytes.
250 request-body-limit: 0
251 response-body-limit: 0
252
253 # response body decompression (0 disables)
254 response-body-decompress-layer-limit: 2
255
256 # auto will use http-body-inline mode in IPS mode, yes or no set it statically
257 http-body-inline: auto
258
259 # Take a random value for inspection sizes around the specified value.
260 # This lower the risk of some evasion technics but could lead
261 # detection change between runs. It is set to 'yes' by default.
262 randomize-inspection-sizes: yes
263 # If randomize-inspection-sizes is active, the value of various
264 # inspection size will be choosen in the [1 - range%, 1 + range%]
265 # range
266 # Default value of randomize-inspection-range is 10.
267 randomize-inspection-range: 10
268
269 # decoding
270 double-decode-path: no
271 double-decode-query: no
272
273
274 # Limit for the maximum number of asn1 frames to decode (default 256)
275 asn1-max-frames: 256
276
277
278 ##############################################################################
279 ##
280 ## Advanced settings below
281 ##
282 ##############################################################################
283
284 # Suricata core dump configuration. Limits the size of the core dump file to
285 # approximately max-dump. The actual core dump size will be a multiple of the
286 # page size. Core dumps that would be larger than max-dump are truncated. On
287 # Linux, the actual core dump size may be a few pages larger than max-dump.
288 # Setting max-dump to 0 disables core dumping.
289 # Setting max-dump to 'unlimited' will give the full core dump file.
290 # On 32-bit Linux, a max-dump value >= ULONG_MAX may cause the core dump size
291 # to be 'unlimited'.
292
293 coredump:
294 max-dump: unlimited
295
296 # If suricata box is a router for the sniffed networks, set it to 'router'. If
297 # it is a pure sniffing setup, set it to 'sniffer-only'.
298 # If set to auto, the variable is internally switch to 'router' in IPS mode
299 # and 'sniffer-only' in IDS mode.
300 # This feature is currently only used by the reject* keywords.
301 host-mode: auto
302
303 # Number of packets preallocated per thread. The default is 1024. A higher number
304 # will make sure each CPU will be more easily kept busy, but may negatively
305 # impact caching.
306 max-pending-packets: 1024
307
308 # Runmode the engine should use. Please check --list-runmodes to get the available
309 # runmodes for each packet acquisition method. Defaults to "autofp" (auto flow pinned
310 # load balancing).
311 #runmode: autofp
312
313 # Specifies the kind of flow load balancer used by the flow pinned autofp mode.
314 #
315 # Supported schedulers are:
316 #
317 # round-robin - Flows assigned to threads in a round robin fashion.
318 # active-packets - Flows assigned to threads that have the lowest number of
319 # unprocessed packets (default).
320 # hash - Flow alloted usihng the address hash. More of a random
321 # technique. Was the default in Suricata 1.2.1 and older.
322 #
323 #autofp-scheduler: active-packets
324
325 # Preallocated size for packet. Default is 1514 which is the classical
326 # size for pcap on ethernet. You should adjust this value to the highest
327 # packet size (MTU + hardware header) on your system.
328 default-packet-size: 1514
329
330 # Unix command socket can be used to pass commands to suricata.
331 # An external tool can then connect to get information from suricata
332 # or trigger some modifications of the engine. Set enabled to yes
333 # to activate the feature. In auto mode, the feature will only be
334 # activated in live capture mode. You can use the filename variable to set
335 # the file name of the socket.
336 unix-command:
337 enabled: no
338 #filename: custom.socket
339
340 # Magic file
341 magic-file: /usr/share/misc/magic.mgc
342
343 legacy:
344 uricontent: enabled
345
346 ##
347 ## Detection settings
348 ##
349
350 # Set the order of alerts bassed on actions
351 # The default order is pass, drop, reject, alert
352 # action-order:
353 # - pass
354 # - drop
355 # - reject
356 # - alert
357
358 # When run with the option --engine-analysis, the engine will read each of
359 # the parameters below, and print reports for each of the enabled sections
360 # and exit. The reports are printed to a file in the default log dir
361 # given by the parameter "default-log-dir", with engine reporting
362 # subsection below printing reports in its own report file.
363 engine-analysis:
364 # enables printing reports for fast-pattern for every rule.
365 rules-fast-pattern: yes
366 # enables printing reports for each rule
367 rules: yes
368
369 #recursion and match limits for PCRE where supported
370 pcre:
371 match-limit: 3500
372 match-limit-recursion: 1500
373
374 ##
375 ## Advanced Traffic Tracking and Reconstruction Settings
376 ##
377
378 # Host specific policies for defragmentation and TCP stream
379 # reassembly. The host OS lookup is done using a radix tree, just
380 # like a routing table so the most specific entry matches.
381 host-os-policy:
382 # Make the default policy windows.
383 windows: [0.0.0.0/0]
384 bsd: []
385 bsd-right: []
386 old-linux: []
387 linux: []
388 old-solaris: []
389 solaris: []
390 hpux10: []
391 hpux11: []
392 irix: []
393 macos: []
394 vista: []
395 windows2k3: []
396
397 # Defrag settings:
398
399 defrag:
400 memcap: 64mb
401 hash-size: 65536
402 trackers: 65535 # number of defragmented flows to follow
403 max-frags: 65535 # number of fragments to keep (higher than trackers)
404 prealloc: yes
405 timeout: 60
406
407 # Flow settings:
408 # By default, the reserved memory (memcap) for flows is 32MB. This is the limit
409 # for flow allocation inside the engine. You can change this value to allow
410 # more memory usage for flows.
411 # The hash-size determine the size of the hash used to identify flows inside
412 # the engine, and by default the value is 65536.
413 # At the startup, the engine can preallocate a number of flows, to get a better
414 # performance. The number of flows preallocated is 10000 by default.
415 # emergency-recovery is the percentage of flows that the engine need to
416 # prune before unsetting the emergency state. The emergency state is activated
417 # when the memcap limit is reached, allowing to create new flows, but
418 # prunning them with the emergency timeouts (they are defined below).
419 # If the memcap is reached, the engine will try to prune flows
420 # with the default timeouts. If it doens't find a flow to prune, it will set
421 # the emergency bit and it will try again with more agressive timeouts.
422 # If that doesn't work, then it will try to kill the last time seen flows
423 # not in use.
424 # The memcap can be specified in kb, mb, gb. Just a number indicates it's
425 # in bytes.
426
427 flow:
428 memcap: 256mb
429 hash-size: 65536
430 prealloc: 10000
431 emergency-recovery: 30
432 managers: 1
433 recyclers: 1
434
435 # This option controls the use of vlan ids in the flow (and defrag)
436 # hashing. Normally this should be enabled, but in some (broken)
437 # setups where both sides of a flow are not tagged with the same vlan
438 # tag, we can ignore the vlan id's in the flow hashing.
439 vlan:
440 use-for-tracking: true
441
442 # Specific timeouts for flows. Here you can specify the timeouts that the
443 # active flows will wait to transit from the current state to another, on each
444 # protocol. The value of "new" determine the seconds to wait after a hanshake or
445 # stream startup before the engine free the data of that flow it doesn't
446 # change the state to established (usually if we don't receive more packets
447 # of that flow). The value of "established" is the amount of
448 # seconds that the engine will wait to free the flow if it spend that amount
449 # without receiving new packets or closing the connection. "closed" is the
450 # amount of time to wait after a flow is closed (usually zero). "bypassed"
451 # timeout controls locally bypassed flows. For these flows we don't do any other
452 # tracking. If no packets have been seen after this timeout, the flow is discarded.
453 #
454 # There's an emergency mode that will become active under attack circumstances,
455 # making the engine to check flow status faster. This configuration variables
456 # use the prefix "emergency-" and work similar as the normal ones.
457 # Some timeouts doesn't apply to all the protocols, like "closed", for udp and
458 # icmp.
459
460 flow-timeouts:
461
462 default:
463 new: 30
464 established: 300
465 closed: 0
466 bypassed: 100
467 emergency-new: 10
468 emergency-established: 100
469 emergency-closed: 0
470 emergency-bypassed: 50
471 tcp:
472 new: 60
473 established: 600
474 closed: 60
475 bypassed: 100
476 emergency-new: 5
477 emergency-established: 100
478 emergency-closed: 10
479 emergency-bypassed: 50
480 udp:
481 new: 30
482 established: 300
483 bypassed: 100
484 emergency-new: 10
485 emergency-established: 100
486 emergency-bypassed: 50
487 icmp:
488 new: 30
489 established: 300
490 bypassed: 100
491 emergency-new: 10
492 emergency-established: 100
493 emergency-bypassed: 50
494
495 # Stream engine settings. Here the TCP stream tracking and reassembly
496 # engine is configured.
497 #
498 # stream:
499 # memcap: 32mb # Can be specified in kb, mb, gb. Just a
500 # # number indicates it's in bytes.
501 # checksum-validation: yes # To validate the checksum of received
502 # # packet. If csum validation is specified as
503 # # "yes", then packet with invalid csum will not
504 # # be processed by the engine stream/app layer.
505 # # Warning: locally generated trafic can be
506 # # generated without checksum due to hardware offload
507 # # of checksum. You can control the handling of checksum
508 # # on a per-interface basis via the 'checksum-checks'
509 # # option
510 # prealloc-sessions: 2k # 2k sessions prealloc'd per stream thread
511 # midstream: false # don't allow midstream session pickups
512 # async-oneside: false # don't enable async stream handling
513 # inline: no # stream inline mode
514 # drop-invalid: yes # in inline mode, drop packets that are invalid with regards to streaming engine
515 # max-synack-queued: 5 # Max different SYN/ACKs to queue
516 # bypass: no # Bypass packets when stream.depth is reached
517 #
518 # reassembly:
519 # memcap: 64mb # Can be specified in kb, mb, gb. Just a number
520 # # indicates it's in bytes.
521 # depth: 1mb # Can be specified in kb, mb, gb. Just a number
522 # # indicates it's in bytes.
523 # toserver-chunk-size: 2560 # inspect raw stream in chunks of at least
524 # # this size. Can be specified in kb, mb,
525 # # gb. Just a number indicates it's in bytes.
526 # toclient-chunk-size: 2560 # inspect raw stream in chunks of at least
527 # # this size. Can be specified in kb, mb,
528 # # gb. Just a number indicates it's in bytes.
529 # randomize-chunk-size: yes # Take a random value for chunk size around the specified value.
530 # # This lower the risk of some evasion technics but could lead
531 # # detection change between runs. It is set to 'yes' by default.
532 # randomize-chunk-range: 10 # If randomize-chunk-size is active, the value of chunk-size is
533 # # a random value between (1 - randomize-chunk-range/100)*toserver-chunk-size
534 # # and (1 + randomize-chunk-range/100)*toserver-chunk-size and the same
535 # # calculation for toclient-chunk-size.
536 # # Default value of randomize-chunk-range is 10.
537 #
538 # raw: yes # 'Raw' reassembly enabled or disabled.
539 # # raw is for content inspection by detection
540 # # engine.
541 #
542 # segment-prealloc: 2048 # number of segments preallocated per thread
543 #
544 # check-overlap-different-data: true|false
545 # # check if a segment contains different data
546 # # than what we've already seen for that
547 # # position in the stream.
548 # # This is enabled automatically if inline mode
549 # # is used or when stream-event:reassembly_overlap_different_data;
550 # # is used in a rule.
551 #
552 stream:
553 memcap: 256mb
554 prealloc-sessions: 4096
555 checksum-validation: yes # reject wrong csums
556 inline: auto # auto will use inline mode in IPS mode, yes or no set it statically
557 reassembly:
558 memcap: 256mb
559 depth: 1mb # reassemble 1mb into a stream
560 toserver-chunk-size: 2560
561 toclient-chunk-size: 2560
562 randomize-chunk-size: yes
563 raw: yes
564 segment-prealloc: 2048
565 check-overlap-different-data: true
566
567 # Host table:
568 #
569 # Host table is used by tagging and per host thresholding subsystems.
570 #
571 host:
572 hash-size: 4096
573 prealloc: 1000
574 memcap: 32mb
575
576 # IP Pair table:
577 #
578 # Used by xbits 'ippair' tracking.
579 #
580 #ippair:
581 # hash-size: 4096
582 # prealloc: 1000
583 # memcap: 32mb
584
585 # Decoder settings
586
587 decoder:
588 # Teredo decoder is known to not be completely accurate
589 # it will sometimes detect non-teredo as teredo.
590 teredo:
591 enabled: false
592
593
594 ##
595 ## Performance tuning and profiling
596 ##
597
598 # The detection engine builds internal groups of signatures. The engine
599 # allow us to specify the profile to use for them, to manage memory on an
600 # efficient way keeping a good performance. For the profile keyword you
601 # can use the words "low", "medium", "high" or "custom". If you use custom
602 # make sure to define the values at "- custom-values" as your convenience.
603 # Usually you would prefer medium/high/low.
604 #
605 # "sgh mpm-context", indicates how the staging should allot mpm contexts for
606 # the signature groups. "single" indicates the use of a single context for
607 # all the signature group heads. "full" indicates a mpm-context for each
608 # group head. "auto" lets the engine decide the distribution of contexts
609 # based on the information the engine gathers on the patterns from each
610 # group head.
611 #
612 # The option inspection-recursion-limit is used to limit the recursive calls
613 # in the content inspection code. For certain payload-sig combinations, we
614 # might end up taking too much time in the content inspection code.
615 # If the argument specified is 0, the engine uses an internally defined
616 # default limit. On not specifying a value, we use no limits on the recursion.
617 detect:
618 profile: high
619 custom-values:
620 toclient-groups: 3
621 toserver-groups: 25
622 sgh-mpm-context: auto
623 inspection-recursion-limit: 3000
624
625 # If set to yes, the loading of signatures will be made after the capture
626 # is started. This will limit the downtime in IPS mode.
627 delayed-detect: yes
628
629 prefilter:
630 # default prefiltering setting. "mpm" only creates MPM/fast_pattern
631 # engines. "auto" also sets up prefilter engines for other keywords.
632 # Use --list-keywords=all to see which keywords support prefiltering.
633 default: mpm
634
635 # the grouping values above control how many groups are created per
636 # direction. Port whitelisting forces that port to get it's own group.
637 # Very common ports will benefit, as well as ports with many expensive
638 # rules.
639 grouping:
640 #tcp-whitelist: 53, 80, 139, 443, 445, 1433, 3306, 3389, 6666, 6667, 8080
641 #udp-whitelist: 53, 135, 5060
642
643 profiling:
644 # Log the rules that made it past the prefilter stage, per packet
645 # default is off. The threshold setting determines how many rules
646 # must have made it past pre-filter for that rule to trigger the
647 # logging.
648 #inspect-logging-threshold: 200
649 grouping:
650 dump-to-disk: false
651 include-rules: false # very verbose
652 include-mpm-stats: false
653
654 # Select the multi pattern algorithm you want to run for scan/search the
655 # in the engine.
656 #
657 # The supported algorithms are:
658 # "ac" - Aho-Corasick, default implementation
659 # "ac-bs" - Aho-Corasick, reduced memory implementation
660 # "ac-cuda" - Aho-Corasick, CUDA implementation
661 # "ac-ks" - Aho-Corasick, "Ken Steele" variant
662 # "hs" - Hyperscan, available when built with Hyperscan support
663 #
664 # The default mpm-algo value of "auto" will use "hs" if Hyperscan is
665 # available, "ac" otherwise.
666 #
667 # The mpm you choose also decides the distribution of mpm contexts for
668 # signature groups, specified by the conf - "detect.sgh-mpm-context".
669 # Selecting "ac" as the mpm would require "detect.sgh-mpm-context"
670 # to be set to "single", because of ac's memory requirements, unless the
671 # ruleset is small enough to fit in one's memory, in which case one can
672 # use "full" with "ac". Rest of the mpms can be run in "full" mode.
673 #
674 # There is also a CUDA pattern matcher (only available if Suricata was
675 # compiled with --enable-cuda: b2g_cuda. Make sure to update your
676 # max-pending-packets setting above as well if you use b2g_cuda.
677
678 mpm-algo: auto
679
680 # Select the matching algorithm you want to use for single-pattern searches.
681 #
682 # Supported algorithms are "bm" (Boyer-Moore) and "hs" (Hyperscan, only
683 # available if Suricata has been built with Hyperscan support).
684 #
685 # The default of "auto" will use "hs" if available, otherwise "bm".
686
687 spm-algo: auto
688
689 # Suricata is multi-threaded. Here the threading can be influenced.
690 threading:
691 set-cpu-affinity: no
692 # Tune cpu affinity of threads. Each family of threads can be bound
693 # on specific CPUs.
694 #
695 # These 2 apply to the all runmodes:
696 # management-cpu-set is used for flow timeout handling, counters
697 # worker-cpu-set is used for 'worker' threads
698 #
699 # Additionally, for autofp these apply:
700 # receive-cpu-set is used for capture threads
701 # verdict-cpu-set is used for IPS verdict threads
702 #
703 cpu-affinity:
704 - management-cpu-set:
705 cpu: [ 0 ] # include only these cpus in affinity settings
706 - receive-cpu-set:
707 cpu: [ 0 ] # include only these cpus in affinity settings
708 - worker-cpu-set:
709 cpu: [ "all" ]
710 mode: "exclusive"
711 # Use explicitely 3 threads and don't compute number by using
712 # detect-thread-ratio variable:
713 # threads: 3
714 prio:
715 low: [ 0 ]
716 medium: [ "1-2" ]
717 high: [ 3 ]
718 default: "medium"
719 #- verdict-cpu-set:
720 # cpu: [ 0 ]
721 # prio:
722 # default: "high"
723 #
724 # By default Suricata creates one "detect" thread per available CPU/CPU core.
725 # This setting allows controlling this behaviour. A ratio setting of 2 will
726 # create 2 detect threads for each CPU/CPU core. So for a dual core CPU this
727 # will result in 4 detect threads. If values below 1 are used, less threads
728 # are created. So on a dual core CPU a setting of 0.5 results in 1 detect
729 # thread being created. Regardless of the setting at a minimum 1 detect
730 # thread will always be created.
731 #
732 detect-thread-ratio: 1.0