Add informations about JSON file content
Benjamin Renard

Benjamin Renard commited on 2014-12-31 15:16:03
Showing 1 changed files, with 18 additions and 0 deletions.

... ...
@@ -33,3 +33,21 @@ Parameters :
33 33
  - umask :
34 34
    Umask use on JSON file creation (Integer)
35 35
    Default : 0077
36
+
37
+JSON file content
38
+-----------------
39
+
40
+On start, the file will be created with "{}" and the file will be removed on stop.
41
+
42
+When some IP is ban, the file content will be updated like in the example :
43
+
44
+The IP "1.2.3.4" is banned after 3 failures at 31/12/2014 16:07:40 :
45
+
46
+{
47
+  "1.2.3.4": {
48
+    "failures": "3",         // Number of failures
49
+    "time": "1420038460.98"  // UNIX timestamp ot the ban time
50
+  }
51
+}
52
+
53
+On unban, the block corresponding to the IP address will be removed.
36 54