flow:
memcap: 33554432 #The maximum amount of bytes the flow-engine will make use of.
memcap-policy: bypass #How to handle the flow if memcap is reached (IPS mode)
- hash_size: 65536 #Flows will be organized in a hash-table. With this option you can set the
+ hash-size: 65536 #Flows will be organized in a hash-table. With this option you can set the
#size of the hash-table.
Prealloc: 10000 #The amount of flows Suricata has to keep ready in memory.
new: 30 #Time-out in seconds after the last activity in this flow in a New state.
established: 300 #Time-out in seconds after the last activity in this flow in a Established
#state.
- emergency_new: 10 #Time-out in seconds after the last activity in this flow in a New state
+ emergency-new: 10 #Time-out in seconds after the last activity in this flow in a New state
#during the emergency mode.
- emergency_established: 100 #Time-out in seconds after the last activity in this flow in a Established
+ emergency-established: 100 #Time-out in seconds after the last activity in this flow in a Established
#state in the emergency mode.
tcp:
new: 60
established: 3600
closed: 120
- emergency_new: 10
- emergency_established: 300
- emergency_closed: 20
+ emergency-new: 10
+ emergency-established: 300
+ emergency-closed: 20
udp:
new: 30
established: 300
- emergency_new: 10
- emergency_established: 100
+ emergency-new: 10
+ emergency-established: 100
icmp:
new: 30
established: 300
- emergency_new: 10
- emergency_established: 100
+ emergency-new: 10
+ emergency-established: 100
Stream-engine
~~~~~~~~~~~~~
stream:
memcap: 64mb # Max memory usage (in bytes) for TCP session tracking
memcap-policy: ignore # In IPS mode, call memcap policy if memcap is reached
- checksum_validation: yes # Validate packet checksum, reject packets with invalid checksums.
+ checksum-validation: yes # Validate packet checksum, reject packets with invalid checksums.
To mitigate Suricata from being overloaded by fast session creation,
-the option prealloc_sessions instructs Suricata to keep a number of
+the option prealloc-sessions instructs Suricata to keep a number of
sessions ready in memory.
A TCP-session starts with the three-way-handshake. After that, data
::
- prealloc_sessions: 32768 # 32k sessions prealloc'd
+ prealloc-sessions: 32768 # 32k sessions prealloc'd
midstream: false # do not allow midstream session pickups
midstream-policy: drop-flow # in IPS mode, drop flows that start midstream
- async_oneside: false # do not enable async stream handling
+ async-oneside: false # do not enable async stream handling
inline: no # stream inline mode
drop-invalid: yes # drop invalid packets
bypass: no
parsers that do file extraction.
Inspection of reassembled data is done in chunks. The size of these
-chunks is set with ``toserver_chunk_size`` and ``toclient_chunk_size``.
+chunks is set with ``toserver-chunk-size`` and ``toclient-chunk-size``.
To avoid making the borders predictable, the sizes can be varied by
adding in a random factor.
memcap: 256mb # Memory reserved for stream data reconstruction (in bytes)
memcap-policy: ignore # What to do when memcap for reassembly is hit
depth: 1mb # The depth of the reassembling.
- toserver_chunk_size: 2560 # inspect raw stream in chunks of at least this size
- toclient_chunk_size: 2560 # inspect raw stream in chunks of at least
+ toserver-chunk-size: 2560 # inspect raw stream in chunks of at least this size
+ toclient-chunk-size: 2560 # inspect raw stream in chunks of at least
randomize-chunk-size: yes
#randomize-chunk-range: 10
<http://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One>`_) is a
standard notation to structure and describe data.
-Within Asn1_max_frames there are several frames. To protect itself,
+Within Asn1-max-frames there are several frames. To protect itself,
Suricata will inspect a maximum of 256. You can set this amount
differently if wanted.
::
- asn1_max_frames: 256
+ asn1-max-frames: 256
.. _suricata-yaml-configure-ftp:
nfq:
mode: accept #By default the packet will be accepted or dropped by Suricata
- repeat_mark: 1 #If the mode is set to 'repeat', the packets will be marked after being
+ repeat-mark: 1 #If the mode is set to 'repeat', the packets will be marked after being
#processed by Suricata.
- repeat_mask: 1
- route_queue: 2 #Here you can assign the queue-number of the tool that Suricata has to
+ repeat-mask: 1
+ route-queue: 2 #Here you can assign the queue-number of the tool that Suricata has to
#send the packets to after processing them.
*Example 1 NFQ1*
host-os-policy:
windows: [0.0.0.0/0]
bsd: []
- bsd_right: []
- old_linux: []
+ bsd-right: []
+ old-linux: []
linux: [10.0.0.0/8, 192.168.1.100, "8762:2352:6241:7245:E000:0000:0000:0000"]
- old_solaris: []
+ old-solaris: []
solaris: ["::1"]
hpux10: []
hpux11: []