doc: update for unix socket hostbits

pull/2559/head
Victor Julien 9 years ago
parent 4a49260897
commit c477c4370e

@ -25,8 +25,48 @@ Threading
Due to subtle timing issues between threads the order of sets and checks Due to subtle timing issues between threads the order of sets and checks
can be slightly unpredictible. can be slightly unpredictible.
Example: create a SSH blacklist Unix Socket
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -----------
Hostbits can be added, removed and listed through the unix socket.
Add::
suricatasc -c "add-hostbit <ip> <bit name> <expire in seconds>"
suricatasc -c "add-hostbit 1.2.3.4 blacklist 3600"
If an hostbit is added for an existing hostbit, it's expiry timer is updated.
Remove::
suricatasc -c "remove-hostbit <ip> <bit name>"
suricatasc -c "remove-hostbit 1.2.3.4 blacklist"
List::
suricatasc -c "list-hostbit <ip>"
suricatasc -c "list-hostbit 1.2.3.4"
This results in::
{
"message":
{
"count": 1,
"hostbits":
[{
"expire": 89,
"name": "blacklist"
}]
},
"return": "OK"
}
Examples
--------
Creating a SSH blacklist
^^^^^^^^^^^^^^^^^^^^^^^^
Below is an example of rules incoming to a SSH server. Below is an example of rules incoming to a SSH server.

Loading…
Cancel
Save