summaryrefslogtreecommitdiffstats
path: root/doc/userguide/reputation/ipreputation/ip-reputation-config.rst
blob: 888faccd128fbf3c3f7407622e4b49600376182e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
IP Reputation Config
====================

IP reputation has a few configuration directives, all disabled by default.


::


  # IP Reputation
  #reputation-categories-file: /etc/suricata/iprep/categories.txt
  #default-reputation-path: /etc/suricata/iprep
  #reputation-files:
  # - reputation.list

reputation-categories-file
~~~~~~~~~~~~~~~~~~~~~~~~~~

The categories file mapping numbered category values to short names.


::


  reputation-categories-file: /etc/suricata/iprep/categories.txt

default-reputation-path
~~~~~~~~~~~~~~~~~~~~~~~

Path where reputation files from the "reputation-files" directive are loaded from by default.


::


  default-reputation-path: /etc/suricata/iprep

reputation-files
~~~~~~~~~~~~~~~~

YAML list of file names to load. In case of a absolute path the file is loaded directly, otherwise the path from "default-reputation-path" is pre-pended to form the final path.


::


  reputation-files:
   - badhosts.list
   - knowngood.list
   - sharedhosting.list

Hosts
~~~~~

IP reputation information is stored in the host table, so the settings of the host table affect it.

Depending on the number of hosts reputation information is available for, the memcap and hash size may have to be increased.

Reloads
~~~~~~~

Sending Suricata a USR2 signal will reload the IP reputation data, along with the normal rules reload.

During the reload the host table will be updated to contain the new data. The iprep information is versioned. When the reload is complete, Suricata will automatically clean up the old iprep information.

Only the reputation files will be reloaded, the categories file won't be. If categories change, Suricata should be restarted.

File format
~~~~~~~~~~~

The format of the reputation files is described in the :doc:`ip-reputation-format` page.