Advertisement
Guest User

suricata.yaml

a guest
Jan 29th, 2012
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.62 KB | None | 0 0
  1. %YAML 1.1
  2. ---
  3.  
  4. # Suricata configuration file. In addition to the comments describing all
  5. # options in this file, full documentation can be found at:
  6. # https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricatayaml
  7.  
  8.  
  9. # Number of packets allowed to be processed simultaneously. Default is a
  10. # conservative 50. a higher number will make sure CPU's/CPU cores will be
  11. # more easily kept busy, but will negatively impact caching.
  12. #
  13. # If you are using the CUDA pattern matcher (b2g_cuda below), different rules
  14. # apply. In that case try something like 4000 or more. This is because the CUDA
  15. # pattern matcher scans many packets in parallel.
  16. #max-pending-packets: 50
  17.  
  18. # Runmode custom mode the engine should run in. Please check --list-runmodes
  19. # to get the runmode custom modes that can be used here for a particular runmode.
  20. #runmode: auto
  21.  
  22. # Default pid file.
  23. # Will use this file if no --pidfile in command options.
  24. #pid-file: /var/run/suricata.pid
  25.  
  26. # Preallocated size for packet. Default is 1514 which is the classical
  27. # size for pcap on ethernet. You should adjust this value to the highest
  28. # packet size (MTU + hardware header) on your system.
  29. #default-packet-size: 1514
  30.  
  31. # Set the order of alerts bassed on actions
  32. # The default order is pass, drop, reject, alert
  33. action-order:
  34. - pass
  35. - drop
  36. - reject
  37. - alert
  38.  
  39.  
  40. # The default logging directory. Any log or output file will be
  41. # placed here if its not specified with a full path name. This can be
  42. # overridden with the -l command line parameter.
  43. default-log-dir: /var/log/suricata
  44.  
  45. # Configure the type of alert (and other) logging you would like.
  46. outputs:
  47.  
  48. # a line based alerts log similar to Snort's fast.log
  49. - fast:
  50. enabled: yes
  51. filename: fast.log
  52. append: yes
  53. #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
  54.  
  55. # alert output for use with Barnyard2
  56. - unified2-alert:
  57. enabled: no
  58. filename: unified2.alert
  59.  
  60. # File size limit. Can be specified in kb, mb, gb. Just a number
  61. # is parsed as bytes.
  62. #limit: 32mb
  63.  
  64. # a line based log of HTTP requests (no alerts)
  65. - http-log:
  66. enabled: yes
  67. filename: http.log
  68. append: yes
  69. #extended: yes # enable this for extended logging information
  70. #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
  71.  
  72. # a line based log to used with pcap file study.
  73. # this module is dedicated to offline pcap parsing (empty output
  74. # if used with an other kind of input). It can interoperate with
  75. # pcap parser like wireshark via the suriwire plugin.
  76. - pcap-info:
  77. enabled: no
  78.  
  79. # Packet log... log packets in pcap format. 2 modes of operation: "normal"
  80. # and "sguil".
  81. #
  82. # In normal mode a pcap file "filename" is created in the default-log-dir,
  83. # or are as specified by "dir". In Sguil mode "dir" indicates the base directory.
  84. # In this base dir the pcaps are created in th directory structure Sguil expects:
  85. #
  86. # $sguil_base_dir/YYYY-MM-DD/$filename.<timestamp>
  87. #
  88. # By default all packets are logged except:
  89. # - TCP streams beyond stream.reassembly.depth
  90. # - encrypted streams after the key exchange
  91. #
  92. - pcap-log:
  93. enabled: no
  94. filename: log.pcap
  95.  
  96. # File size limit. Can be specified in kb, mb, gb. Just a number
  97. # is parsed as bytes.
  98. limit: 1000mb
  99.  
  100. # If set to a value will enable ring buffer mode. Will keep Maximum of "max_files" of size "limit"
  101. max_files: 2000
  102.  
  103. mode: normal # normal or sguil.
  104. #sguil-base-dir: /nsm_data/
  105. #ts_format: usec # sec or usec second format (default) is filename.sec usec is filename.sec.usec
  106. use_stream_depth: no #If set to "yes" packets seen after reaching stream inspection depth are ignored. "no" logs all packets
  107.  
  108. # a full alerts log containing much information for signature writers
  109. # or for investigating suspected false positives.
  110. - alert-debug:
  111. enabled: no
  112. filename: alert-debug.log
  113. append: yes
  114. #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
  115.  
  116. # alert output to prelude (http://www.prelude-technologies.com/) only
  117. # available if Suricata has been compiled with --enable-prelude
  118. - alert-prelude:
  119. enabled: no
  120. profile: suricata
  121. log_packet_content: no
  122. log_packet_header: yes
  123.  
  124. # Stats.log contains data from various counters of the suricata engine.
  125. # The interval field (in seconds) tells after how long output will be written
  126. # on the log file.
  127. - stats:
  128. enabled: yes
  129. filename: stats.log
  130. interval: 60 # 1 minuto
  131.  
  132. # a line based alerts log similar to fast.log into syslog
  133. - syslog:
  134. enabled: no
  135. # reported identity to syslog. If ommited the program name (usually
  136. # suricata) will be used.
  137. #identity: "suricata"
  138. facility: local5
  139. #level: Info ## possible levels: Emergency, Alert, Critical,
  140. ## Error, Warning, Notice, Info, Debug
  141.  
  142. # a line based information for dropped packets in IPS mode
  143. - drop:
  144. enabled: no
  145. filename: drop.log
  146. append: yes
  147. #filetype: regular # 'regular', 'unix_stream' or 'unix_dgram'
  148.  
  149. # output module to store extracted files to disk
  150. #
  151. # The files are stored to the log-dir in a format "file.<id>" where <id> is
  152. # an incrementing number starting at 1. For each file "file.<id>" a meta
  153. # file "file.<id>.meta" is created.
  154. #
  155. # File extraction depends on a lot of things to be fully done:
  156. # - stream reassembly depth. For optimal results, set this to 0 (unlimited)
  157. # - http request / response body sizes. Again set to 0 for optimal results.
  158. # - rules that contain the "filestore" keyword.
  159. - file:
  160. enabled: no # set to yes to enable
  161. log-dir: files # directory to store the files
  162. force-magic: no # force logging magic on all stored files
  163. #waldo: file.waldo # waldo file to store the file_id across runs
  164.  
  165. # Magic file. The extension .mgc is added to the value here.
  166. #magic-file: /usr/share/file/magic
  167.  
  168. # When running in NFQ inline mode, it is possible to use a simulated
  169. # non-terminal NFQUEUE verdict.
  170. # This permit to do send all needed packet to suricata via this a rule:
  171. # iptables -I FORWARD -m mark ! --mark $MARK/$MASK -j NFQUEUE
  172. # And below, you can have your standard filtering ruleset. To activate
  173. # this mode, you need to set mode to 'repeat'
  174. # If you want packet to be sent to another queue after an ACCEPT decision
  175. # set mode to 'route' and set next_queue value.
  176. nfq:
  177. # mode: accept
  178. # repeat_mark: 1
  179. # repeat_mask: 1
  180. # route_queue: 2
  181.  
  182. # af-packet support
  183. # Set threads to > 1 to use PACKET_FANOUT support
  184. af-packet:
  185. - interface: eth0
  186. # Number of receive threads (>1 will enable experimental flow pinned
  187. # runmode)
  188. threads: 1
  189. # Default clusterid. AF_PACKET will load balance packets based on flow.
  190. # All threads/processes that will participate need to have the same
  191. # clusterid.
  192. cluster-id: 99
  193. # Default AF_PACKET cluster type. AF_PACKET can load balance per flow or per hash.
  194. # This is only supported for Linux kernel > 3.1
  195. # possible value are:
  196. # * cluster_round_robin: round robin load balancing
  197. # * cluster_flow: all packets of a given flow are send to the same socket
  198. # * cluster_cpu: all packets treated in kernel by a CPU are send to the same socket
  199. cluster-type: cluster_round_robin
  200. # In some fragmentation case, the hash can not be computed. If "defrag" is set
  201. # to yes, the kernel will do the needed defragmentation before sending the packets.
  202. defrag: yes
  203. # recv buffer size, increase value could improve performance
  204. # buffer-size: 32768
  205. # Set to yes to disable promiscuous mode
  206. # disable-promisc: no
  207. # Choose checksum verification mode for the interface. At the moment
  208. # of the capture, some packets may be with an invalid checksum due to
  209. # offloading to the network card of the checksum computation.
  210. # Possible values are:
  211. # - kernel: use indication sent by kernel for each packet (default)
  212. # - yes: checksum validation is forced
  213. # - no: checksum validation is disabled
  214. # - auto: suricata uses a statistical approach to detect when
  215. # checksum off-loading is used.
  216. # Warning: 'checksum_validation' must be set to yes to have any validation
  217. #checksum-checks: kernel
  218. - interface: eth1
  219. threads: 1
  220. cluster-id: 98
  221. cluster-type: cluster_round_robin
  222. defrag: yes
  223. # buffer-size: 32768
  224. # disable-promisc: no
  225.  
  226. defrag:
  227. max-frags: 65535
  228. prealloc: yes
  229. timeout: 60
  230.  
  231. # When run with the option --engine-analysis, the engine will read each of
  232. # the parameters below, and print reports for each of the enabled sections
  233. # and exit. The reports are printed to a file in the default log dir
  234. # given by the parameter "default-log-dir", with engine reporting
  235. # subsection below printing reports in its own report file.
  236. engine-analysis:
  237. # enables printing reports for fast-pattern for every rule.
  238. rules-fast-pattern: yes
  239.  
  240. #recursion and match limits for PCRE where supported
  241. pcre:
  242. match-limit: 3500
  243. match-limit-recursion: 1500
  244.  
  245. # You can specify a threshold config file by setting "threshold-file"
  246. # to the path of the threshold config file:
  247. # threshold-file: /etc/suricata/threshold.config
  248.  
  249. # The detection engine builds internal groups of signatures. The engine
  250. # allow us to specify the profile to use for them, to manage memory on an
  251. # efficient way keeping a good performance. For the profile keyword you
  252. # can use the words "low", "medium", "high" or "custom". If you use custom
  253. # make sure to define the values at "- custom-values" as your convenience.
  254. # Usually you would prefer medium/high/low.
  255. #
  256. # "sgh mpm-context", indicates how the staging should allot mpm contexts for
  257. # the signature groups. "single" indicates the use of a single context for
  258. # all the signature group heads. "full" indicates a mpm_context for each
  259. # group head. "auto" lets the engine decide the distribution of contexts
  260. # based on the information the engine gathers on the patterns from each
  261. # group head.
  262. #
  263. # The option inspection_recursion_limit is used to limit the recursive calls
  264. # in the content inspection code. For certain payload-sig combinations, we
  265. # might end up taking too much time in the content inspection code.
  266. # If the argument specified is 0, the engine uses an internally defined
  267. # default limit. On not specifying a value, we use no limits on the recursion.
  268. detect-engine:
  269. - profile: medium
  270. - custom-values:
  271. toclient_src_groups: 2
  272. toclient_dst_groups: 2
  273. toclient_sp_groups: 2
  274. toclient_dp_groups: 3
  275. toserver_src_groups: 2
  276. toserver_dst_groups: 4
  277. toserver_sp_groups: 2
  278. toserver_dp_groups: 25
  279. - sgh-mpm-context: auto
  280. - inspection-recursion-limit: 3000
  281.  
  282. # Suricata is multi-threaded. Here the threading can be influenced.
  283. threading:
  284. # On some cpu's/architectures it is beneficial to tie individual threads
  285. # to specific CPU's/CPU cores. In this case all threads are tied to CPU0,
  286. # and each extra CPU/core has one "detect" thread.
  287. #
  288. # On Intel Core2 and Nehalem CPU's enabling this will degrade performance.
  289. #
  290. set_cpu_affinity: no
  291. # Tune cpu affinity of suricata threads. Each family of threads can be bound
  292. # on specific CPUs.
  293. cpu_affinity:
  294. - management_cpu_set:
  295. cpu: [ 0 ] # include only these cpus in affinity settings
  296. - receive_cpu_set:
  297. cpu: [ 0 ] # include only these cpus in affinity settings
  298. - decode_cpu_set:
  299. cpu: [ 0, 1 ]
  300. mode: "balanced"
  301. - stream_cpu_set:
  302. cpu: [ "0-1" ]
  303. - detect_cpu_set:
  304. cpu: [ "all" ]
  305. mode: "exclusive" # run detect threads in these cpus
  306. # Use explicitely 3 threads and don't compute number by using
  307. # detect_thread_ratio variable:
  308. # threads: 3
  309. prio:
  310. low: [ 0 ]
  311. medium: [ "1-2" ]
  312. high: [ 3 ]
  313. default: "medium"
  314. - verdict_cpu_set:
  315. cpu: [ 0 ]
  316. prio:
  317. default: "high"
  318. - reject_cpu_set:
  319. cpu: [ 0 ]
  320. prio:
  321. default: "low"
  322. - output_cpu_set:
  323. cpu: [ "all" ]
  324. prio:
  325. default: "medium"
  326. #
  327. # By default Suricata creates one "detect" thread per available CPU/CPU core.
  328. # This setting allows controlling this behaviour. A ratio setting of 2 will
  329. # create 2 detect threads for each CPU/CPU core. So for a dual core CPU this
  330. # will result in 4 detect threads. If values below 1 are used, less threads
  331. # are created. So on a dual core CPU a setting of 0.5 results in 1 detect
  332. # thread being created. Regardless of the setting at a minimum 1 detect
  333. # thread will always be created.
  334. #
  335. detect_thread_ratio: 1.5
  336.  
  337. # Cuda configuration.
  338. cuda:
  339. # The "mpm" profile. On not specifying any of these parameters, the engine's
  340. # internal default values are used, which are same as the ones specified here.
  341. - mpm:
  342. # Threshold limit for no of packets buffered to the GPU. Once we hit this
  343. # limit, we pass the buffer to the gpu.
  344. packet_buffer_limit: 2400
  345. # The maximum length for a packet that we would buffer to the gpu.
  346. # Anything over this is MPM'ed on the CPU. All entries > 0 are valid.
  347. # Can be specified in kb, mb, gb. Just a number indicates it's in bytes.
  348. packet_size_limit: 1500
  349. # No of packet buffers we initialize. All entries > 0 are valid.
  350. packet_buffers: 10
  351. # The timeout limit for batching of packets in secs. If we don't fill the
  352. # buffer within this timeout limit, we pass the currently filled buffer to the gpu.
  353. # All entries > 0 are valid.
  354. batching_timeout: 1
  355. # Specifies whether to use page_locked memory whereever possible. Accepted values
  356. # are "enabled" and "disabled".
  357. page_locked: enabled
  358. # The device to use for the mpm. Currently we don't support load balancing
  359. # on multiple gpus. In case you have multiple devices on your system, you
  360. # can specify the device to use, using this conf. By default we hold 0, to
  361. # specify the first device cuda sees. To find out device_id associated with
  362. # the card(s) on the system run "suricata --list-cuda-cards".
  363. device_id: 0
  364. # No of Cuda streams used for asynchronous processing. All values > 0 are valid.
  365. # For this option you need a device with Compute Capability > 1.0 and
  366. # page_locked enabled to have any effect.
  367. cuda_streams: 2
  368.  
  369. # Select the multi pattern algorithm you want to run for scan/search the
  370. # in the engine. The supported algorithms are b2g, b2gc, b2gm, b3g, wumanber,
  371. # ac and ac-gfbs.
  372. #
  373. # The mpm you choose also decides the distribution of mpm contexts for
  374. # signature groups, specified by the conf - "detect-engine.sgh_mpm_context".
  375. # Selecting "ac" as the mpm would require "detect-engine.sgh_mpm_context"
  376. # to be set to "single", because of ac's memory requirements, unless the
  377. # ruleset is small enough to fit in one's memory, in which case one can
  378. # use "full" with "ac". Rest of the mpms can be run in "full" mode.
  379. #
  380. # There is also a CUDA pattern matcher (only available if Suricata was
  381. # compiled with --enable-cuda: b2g_cuda. Make sure to update your
  382. # max-pending-packets setting above as well if you use b2g_cuda.
  383.  
  384. mpm-algo: ac
  385.  
  386. # The memory settings for hash size of these algorithms can vary from lowest
  387. # (2048) - low (4096) - medium (8192) - high (16384) - higher (32768) - max
  388. # (65536). The bloomfilter sizes of these algorithms can vary from low (512) -
  389. # medium (1024) - high (2048).
  390. #
  391. # For B2g/B3g algorithms, there is a support for two different scan/search
  392. # algorithms. For B2g the scan algorithms are B2gScan & B2gScanBNDMq, and
  393. # search algorithms are B2gSearch & B2gSearchBNDMq. For B3g scan algorithms
  394. # are B3gScan & B3gScanBNDMq, and search algorithms are B3gSearch &
  395. # B3gSearchBNDMq.
  396. #
  397. # For B2g the different scan/search algorithms and, hash and bloom
  398. # filter size settings. For B3g the different scan/search algorithms and, hash
  399. # and bloom filter size settings. For wumanber the hash and bloom filter size
  400. # settings.
  401.  
  402. pattern-matcher:
  403. - b2gc:
  404. search_algo: B2gSearchBNDMq
  405. hash_size: low
  406. bf_size: medium
  407. - b2gm:
  408. search_algo: B2gSearchBNDMq
  409. hash_size: low
  410. bf_size: medium
  411. - b2g:
  412. search_algo: B2gSearchBNDMq
  413. hash_size: low
  414. bf_size: medium
  415. - b3g:
  416. search_algo: B3gSearchBNDMq
  417. hash_size: low
  418. bf_size: medium
  419. - wumanber:
  420. hash_size: low
  421. bf_size: medium
  422.  
  423. # Flow settings:
  424. # By default, the reserved memory (memcap) for flows is 32MB. This is the limit
  425. # for flow allocation inside the engine. You can change this value to allow
  426. # more memory usage for flows.
  427. # The hash_size determine the size of the hash used to identify flows inside
  428. # the engine, and by default the value is 65536.
  429. # At the startup, the engine can preallocate a number of flows, to get a better
  430. # performance. The number of flows preallocated is 10000 by default.
  431. # emergency_recovery is the percentage of flows that the engine need to
  432. # prune before unsetting the emergency state. The emergency state is activated
  433. # when the memcap limit is reached, allowing to create new flows, but
  434. # prunning them with the emergency timeouts (they are defined below).
  435. # If the memcap is reached, the engine will try to prune prune_flows
  436. # with the default timeouts. If it doens't find a flow to prune, it will set
  437. # the emergency bit and it will try again with more agressive timeouts.
  438. # If that doesn't work, then it will try to kill the last time seen flows
  439. # not in use.
  440. # The memcap can be specified in kb, mb, gb. Just a number indicates it's
  441. # in bytes.
  442.  
  443. flow:
  444. memcap: 64mb #32mb
  445. hash_size: 65536
  446. prealloc: 10000
  447. emergency_recovery: 30
  448. prune_flows: 5
  449.  
  450. # Specific timeouts for flows. Here you can specify the timeouts that the
  451. # active flows will wait to transit from the current state to another, on each
  452. # protocol. The value of "new" determine the seconds to wait after a hanshake or
  453. # stream startup before the engine free the data of that flow it doesn't
  454. # change the state to established (usually if we don't receive more packets
  455. # of that flow). The value of "established" is the amount of
  456. # seconds that the engine will wait to free the flow if it spend that amount
  457. # without receiving new packets or closing the connection. "closed" is the
  458. # amount of time to wait after a flow is closed (usually zero).
  459. #
  460. # There's an emergency mode that will become active under attack circumstances,
  461. # making the engine to check flow status faster. This configuration variables
  462. # use the prefix "emergency_" and work similar as the normal ones.
  463. # Some timeouts doesn't apply to all the protocols, like "closed", for udp and
  464. # icmp.
  465.  
  466. flow-timeouts:
  467.  
  468. default:
  469. new: 30
  470. established: 300
  471. closed: 0
  472. emergency_new: 10
  473. emergency_established: 100
  474. emergency_closed: 0
  475. tcp:
  476. new: 60
  477. established: 3600
  478. closed: 120
  479. emergency_new: 10
  480. emergency_established: 300
  481. emergency_closed: 20
  482. udp:
  483. new: 30
  484. established: 300
  485. emergency_new: 10
  486. emergency_established: 100
  487. icmp:
  488. new: 30
  489. established: 300
  490. emergency_new: 10
  491. emergency_established: 100
  492.  
  493. # Stream engine settings. Here the TCP stream tracking and reaasembly
  494. # engine is configured.
  495. #
  496. # stream:
  497. # memcap: 32mb # Can be specified in kb, mb, gb. Just a
  498. # # number indicates it's in bytes.
  499. # checksum_validation: yes # To validate the checksum of received
  500. # # packet. If csum validation is specified as
  501. # # "yes", then packet with invalid csum will not
  502. # # be processed by the engine stream/app layer.
  503. # # Warning: locally generated trafic can be
  504. # # generated without checksum due to hardware offload
  505. # # of checksum. You can control the handling of checksum
  506. # # on a per-interface basis via the 'checksum-checks'
  507. # # option
  508. # max_sessions: 262144 # 256k concurrent sessions
  509. # prealloc_sessions: 32768 # 32k sessions prealloc'd
  510. # midstream: false # don't allow midstream session pickups
  511. # async_oneside: false # don't enable async stream handling
  512. # inline: no # stream inline mode
  513. #
  514. # reassembly:
  515. # memcap: 64mb # Can be specified in kb, mb, gb. Just a number
  516. # # indicates it's in bytes.
  517. # depth: 1mb # Can be specified in kb, mb, gb. Just a number
  518. # # indicates it's in bytes.
  519. # toserver_chunk_size: 2560 # inspect raw stream in chunks of at least
  520. # # this size. Can be specified in kb, mb,
  521. # # gb. Just a number indicates it's in bytes.
  522. # toclient_chunk_size: 2560 # inspect raw stream in chunks of at least
  523. # # this size. Can be specified in kb, mb,
  524. # # gb. Just a number indicates it's in bytes.
  525.  
  526. stream:
  527. memcap: 128mb #32mb
  528. checksum_validation: yes # reject wrong csums
  529. inline: no # no inline mode
  530. reassembly:
  531. memcap: 256mb #64mb
  532. depth: 2mb #1mb # reassemble 1mb into a stream
  533. toserver_chunk_size: 2560
  534. toclient_chunk_size: 2560
  535.  
  536. # Logging configuration. This is not about logging IDS alerts, but
  537. # IDS output about what its doing, errors, etc.
  538. logging:
  539.  
  540. # The default log level, can be overridden in an output section.
  541. # Note that debug level logging will only be emitted if Suricata was
  542. # compiled with the --enable-debug configure option.
  543. #
  544. # This value is overriden by the SC_LOG_LEVEL env var.
  545. default-log-level: info
  546.  
  547. # The default output format. Optional parameter, should default to
  548. # something reasonable if not provided. Can be overriden in an
  549. # output section. You can leave this out to get the default.
  550. #
  551. # This value is overriden by the SC_LOG_FORMAT env var.
  552. #default-log-format: "[%i] %t - (%f:%l) <%d> (%n) -- "
  553.  
  554. # A regex to filter output. Can be overridden in an output section.
  555. # Defaults to empty (no filter).
  556. #
  557. # This value is overriden by the SC_LOG_OP_FILTER env var.
  558. default-output-filter:
  559.  
  560. # Define your logging outputs. If none are defined, or they are all
  561. # disabled you will get the default - console output.
  562. outputs:
  563. - console:
  564. enabled: yes
  565. - file:
  566. enabled: no
  567. filename: /var/log/suricata.log
  568. - syslog:
  569. enabled: no
  570. facility: local5
  571. format: "[%i] <%d> -- "
  572.  
  573. # PF_RING configuration. for use with native PF_RING support
  574. # for more info see http://www.ntop.org/PF_RING.html
  575. pfring:
  576. - interface: eth0
  577. # Number of receive threads (>1 will enable experimental flow pinned
  578. # runmode)
  579. threads: 1
  580.  
  581. # Default interface we will listen on.
  582. interface: eth0
  583.  
  584. # Default clusterid. PF_RING will load balance packets based on flow.
  585. # All threads/processes that will participate need to have the same
  586. # clusterid.
  587. cluster-id: 99
  588.  
  589. # Default PF_RING cluster type. PF_RING can load balance per flow or per hash.
  590. # This is only supported in versions of PF_RING > 4.1.1.
  591. cluster-type: cluster_round_robin
  592. # bpf filter for this interface
  593. #bpf-filter: tcp
  594. # Choose checksum verification mode for the interface. At the moment
  595. # of the capture, some packets may be with an invalid checksum due to
  596. # offloading to the network card of the checksum computation.
  597. # Possible values are:
  598. # - rxonly: only compute checksum for packets received by network card.
  599. # - yes: checksum validation is forced
  600. # - no: checksum validation is disabled
  601. # - auto: suricata uses a statistical approach to detect when
  602. # checksum off-loading is used. (default)
  603. # Warning: 'checksum_validation' must be set to yes to have any validation
  604. #checksum-checks: auto
  605. # Second interface
  606. #- interface: eth1
  607. # threads: 3
  608. # cluster-id: 93
  609. # cluster-type: cluster_flow
  610.  
  611. pcap:
  612. - interface: eth0
  613. #buffer-size: 32768
  614. #bpf-filter: "tcp and port 25"
  615. # Choose checksum verification mode for the interface. At the moment
  616. # of the capture, some packets may be with an invalid checksum due to
  617. # offloading to the network card of the checksum computation.
  618. # Possible values are:
  619. # - yes: checksum validation is forced
  620. # - no: checksum validation is disabled
  621. # - auto: suricata uses a statistical approach to detect when
  622. # checksum off-loading is used. (default)
  623. # Warning: 'checksum_validation' must be set to yes to have any validation
  624. #checksum-checks: auto
  625.  
  626. # For FreeBSD ipfw(8) divert(4) support.
  627. # Please make sure you have ipfw_load="YES" and ipdivert_load="YES"
  628. # in /etc/loader.conf or kldload'ing the appropriate kernel modules.
  629. # Additionally, you need to have an ipfw rule for the engine to see
  630. # the packets from ipfw. For Example:
  631. #
  632. # ipfw add 100 divert 8000 ip from any to any
  633. #
  634. # The 8000 above should be the same number you passed on the command
  635. # line, i.e. -d 8000
  636. #
  637. ipfw:
  638.  
  639. # Reinject packets at the specified ipfw rule number. This config
  640. # option is the ipfw rule number AT WHICH rule processing continues
  641. # in the ipfw processing system after the engine has finished
  642. # inspecting the packet for acceptance. If no rule number is specified,
  643. # accepted packets are reinjected at the divert rule which they entered
  644. # and IPFW rule processing continues. No check is done to verify
  645. # this will rule makes sense so care must be taken to avoid loops in ipfw.
  646. #
  647. ## The following example tells the engine to reinject packets
  648. # back into the ipfw firewall AT rule number 5500:
  649. #
  650. # ipfw-reinjection-rule-number: 5500
  651.  
  652. # Set the default rule path here to search for the files.
  653. # if not set, it will look at the current working dir
  654. default-rule-path: /etc/suricata/rules/
  655. rule-files:
  656. - attack-responses.rules
  657. - backdoor.rules
  658. - bad-traffic.rules
  659. - blacklist.rules
  660. - botnet-cnc.rules
  661. - chat.rules
  662. - content-replace.rules
  663. - ddos.rules
  664. - dns.rules
  665. - dos.rules
  666. - experimental.rules
  667. - exploit.rules
  668. - file-identify.rules
  669. - finger.rules
  670. - ftp.rules
  671. - icmp-info.rules
  672. - icmp.rules
  673. - imap.rules
  674. - info.rules
  675. - misc.rules
  676. - multimedia.rules
  677. - mysql.rules
  678. - netbios.rules
  679. - nntp.rules
  680. - open-test.conf
  681. - oracle.rules
  682. - other-ids.rules
  683. - p2p.rules
  684. - phishing-spam.rules
  685. - policy.rules
  686. - pop2.rules
  687. - pop3.rules
  688. - rpc.rules
  689. - rservices.rules
  690. - scada.rules
  691. - scan.rules
  692. - shellcode.rules
  693. - smtp.rules
  694. - snmp.rules
  695. - specific-threats.rules
  696. - spyware-put.rules
  697. - sql.rules
  698. - telnet.rules
  699. - tftp.rules
  700. - virus.rules
  701. - voip.rules
  702. - VRT-License.txt
  703. - web-activex.rules
  704. - web-attacks.rules
  705. - web-cgi.rules
  706. - web-client.rules
  707. - web-coldfusion.rules
  708. - web-frontpage.rules
  709. - web-iis.rules
  710. - web-misc.rules
  711. - web-php.rules
  712. - x11.rules
  713. # - decoder-events.rules #available in suricata sources under rules dir
  714. # - stream-events.rules #available in suricata sources under rules dir
  715. # - http-events.rules
  716. # - smtp-events.rules
  717.  
  718. classification-file: /etc/suricata/classification.config
  719. reference-config-file: /etc/suricata/reference.config
  720.  
  721. # Holds variables that would be used by the engine.
  722. vars:
  723.  
  724. # Holds the address group vars that would be passed in a Signature.
  725. # These would be retrieved during the Signature address parsing stage.
  726. address-groups:
  727.  
  728. # HOME_NET: "[192.168.0.0/16,10.0.0.0/8,172.16.0.0/12]"
  729.  
  730. HOME_NET: "[10.10.0.0/16,10.11.0.0/16,10.12.0.0/16,10.14.0.0/16,10.15.0.0/16,10.16.0.0/16,128.111.48.0/24]"
  731.  
  732. EXTERNAL_NET: "!$HOME_NET"
  733.  
  734. # HOME_NET: "any"
  735.  
  736. # EXTERNAL_NET: "any"
  737.  
  738. HTTP_SERVERS: "$HOME_NET"
  739.  
  740. SMTP_SERVERS: "$HOME_NET"
  741.  
  742. SQL_SERVERS: "$HOME_NET"
  743.  
  744. DNS_SERVERS: "$HOME_NET"
  745.  
  746. TELNET_SERVERS: "$HOME_NET"
  747.  
  748. AIM_SERVERS: "$EXTERNAL_NET"
  749.  
  750. # Holds the port group vars that would be passed in a Signature.
  751. # These would be retrieved during the Signature port parsing stage.
  752. port-groups:
  753.  
  754. HTTP_PORTS: "80"
  755.  
  756. SHELLCODE_PORTS: "!80"
  757.  
  758. ORACLE_PORTS: 1521
  759.  
  760. SSH_PORTS: 22
  761.  
  762. FILE_DATA_PORTS: "$HTTP_PORTS,110,143"
  763.  
  764. # Host specific policies for defragmentation and TCP stream
  765. # reassembly. The host OS lookup is done using a radix tree, just
  766. # like a routing table so the most specific entry matches.
  767. host-os-policy:
  768. # Make the default policy windows.
  769. windows: [0.0.0.0/0]
  770. bsd: []
  771. bsd_right: []
  772. old_linux: []
  773. linux: [10.0.0.0/8, 192.168.1.100, "8762:2352:6241:7245:E000:0000:0000:0000"]
  774. old_solaris: []
  775. solaris: ["::1"]
  776. hpux10: []
  777. hpux11: []
  778. irix: []
  779. macos: []
  780. vista: []
  781. windows2k3: []
  782.  
  783.  
  784. # Limit for the maximum number of asn1 frames to decode (default 256)
  785. asn1_max_frames: 256
  786.  
  787. ###########################################################################
  788. # Configure libhtp.
  789. #
  790. #
  791. # default-config: Used when no server-config matches
  792. # personality: List of personalities used by default
  793. # request-body-limit: Limit reassembly of request body for inspection
  794. # by http_client_body & pcre /P option.
  795. #
  796. # server-config: List of server configurations to use if address matches
  797. # address: List of ip addresses or networks for this block
  798. # personalitiy: List of personalities used by this block
  799. # request-body-limit: Limit reassembly of request body for inspection
  800. # by http_client_body & pcre /P option.
  801. #
  802. # Currently Available Personalities:
  803. # Minimal
  804. # Generic
  805. # IDS (default)
  806. # IIS_4_0
  807. # IIS_5_0
  808. # IIS_5_1
  809. # IIS_6_0
  810. # IIS_7_0
  811. # IIS_7_5
  812. # Apache
  813. # Apache_2_2
  814. ###########################################################################
  815. libhtp:
  816.  
  817. default-config:
  818. personality: IDS
  819. # Can be specified in kb, mb, gb. Just a number indicates
  820. # it's in bytes.
  821. request_body_limit: 3072
  822. response-body-limit: 3072
  823.  
  824. server-config:
  825.  
  826. - apache:
  827. address: [192.168.1.0/24, 127.0.0.0/8, "::1"]
  828. personality: Apache_2_2
  829. # Can be specified in kb, mb, gb. Just a number indicates
  830. # it's in bytes.
  831. request_body_limit: 4096
  832. response-body-limit: 4096
  833.  
  834. - iis7:
  835. address:
  836. - 192.168.0.0/24
  837. - 192.168.10.0/24
  838. personality: IIS_7_0
  839. # Can be specified in kb, mb, gb. Just a number indicates
  840. # it's in bytes.
  841. request_body_limit: 4096
  842. response-body-limit: 4096
  843.  
  844. # Profiling settings. Only effective if Suricata has been built with the
  845. # the --enable-profiling configure flag.
  846. #
  847. profiling:
  848.  
  849. # rule profiling
  850. rules:
  851.  
  852. # Profiling can be disabled here, but it will still have a
  853. # performance impact if compiled in.
  854. enabled: yes
  855. filename: rule_perf.log
  856. append: yes
  857.  
  858. # Sort options: ticks, avgticks, checks, matches, maxticks
  859. sort: avgticks
  860.  
  861. # Limit the number of items printed at exit.
  862. limit: 100
  863.  
  864. # packet profiling
  865. packets:
  866.  
  867. # Profiling can be disabled here, but it will still have a
  868. # performance impact if compiled in.
  869. enabled: yes
  870. filename: packet_stats.log
  871. append: yes
  872.  
  873. # per packet csv output
  874. csv:
  875.  
  876. # Output can be disabled here, but it will still have a
  877. # performance impact if compiled in.
  878. enabled: no
  879. filename: packet_stats.csv
  880.  
  881. # Suricata core dump configuration. Limits the size of the core dump file to
  882. # approximately max_dump. The actual core dump size will be a multiple of the
  883. # page size. Core dumps that would be larger than max_dump are truncated. On
  884. # Linux, the actual core dump size may be a few pages larger than max_dump.
  885. # Setting max_dump to 0 disables core dumping.
  886. # Setting max_dump to 'unlimited' will give the full core dump file.
  887. # On 32-bit Linux, a max_dump value >= ULONG_MAX may cause the core dump size
  888. # to be 'unlimited'.
  889.  
  890. coredump:
  891. max_dump: unlimited
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement