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