]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: document new dataset types
authorEric Leblond <el@stamus-networks.com>
Sat, 4 Jun 2022 21:00:14 +0000 (23:00 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 27 Oct 2022 07:44:20 +0000 (09:44 +0200)
Feature: #5383

doc/userguide/rules/datasets.rst

index 6065e1a2bd907454d478b83b7e4727bd4c9e4f83..d043824dce4b7f1683c3c72441b1843e17c52696 100644 (file)
@@ -76,10 +76,10 @@ Syntax::
     dataset:<cmd>,<name>,<options>;
 
     dataset:<set|isset|isnotset>,<name> \
-        [, type <string|md5|sha256>, save <file name>, load <file name>, state <file name>, memcap <size>, hashsize <size>];
+        [, type <string|md5|sha256|ipv4|ip>, save <file name>, load <file name>, state <file name>, memcap <size>, hashsize <size>];
 
 type <type>
-  the data type: string, md5, sha256
+  the data type: string, md5, sha256, ipv4, ip
 load <file name>
   file name for load the data when Suricata starts up
 state
@@ -102,7 +102,7 @@ Data Reputation allows matching data against a reputation list.
 Syntax::
 
     datarep:<name>,<operator>,<value>, \
-        [, load <file name>, type <string|md5|sha256>, memcap <size>, hashsize <size>];
+        [, load <file name>, type <string|md5|sha256|ipv4|ip>, memcap <size>, hashsize <size>];
 
 Example rules could look like::
 
@@ -144,9 +144,9 @@ Syntax::
 set name
   Name of an already defined dataset
 type
-  Data type: string, md5, sha256
+  Data type: string, md5, sha256, ipv4, ip
 data
-  Data to add in serialized form (base64 for string, hex notation for md5/sha256)
+  Data to add in serialized form (base64 for string, hex notation for md5/sha256, string representation for ipv4/ipv6)
 
 Example adding 'google.com' to set 'myset'::
 
@@ -165,9 +165,9 @@ Syntax::
 set name
   Name of an already defined dataset
 type
-  Data type: string, md5, sha256
+  Data type: string, md5, sha256, ipv4, ip
 data
-  Data to remove in serialized form (base64 for string, hex notation for md5/sha256)
+  Data to remove in serialized form (base64 for string, hex notation for md5/sha256, string representation for ipv4/ipv6)
 
 dataset-clear
 ~~~~~~~~~~~~~
@@ -227,6 +227,10 @@ md5
   in the file as hex encoded string
 sha256
   in the file as hex encoded string
+ipv4
+  in the file as string
+ip
+  in the file as string, it can be IPv6 or IPv4 address (in standard notation or in IPv4 in IPv6 one)
 
 
 dataset