]> git.ipfire.org Git - dbl.git/commitdiff
exporters: Move our Suricata SID range
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 19:39:05 +0000 (19:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 16 Feb 2026 19:39:05 +0000 (19:39 +0000)
This is not perfectly unique, but it should be hopefully okay.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/exporters.py

index 4d42b7533af558dfc85fea9eab9c273e11f9e95f..ac8149f1f41f92c101676b924d9506f84acbb47d 100644 (file)
@@ -423,8 +423,11 @@ class SuricataRulesExporter(TextExporter):
                # Write the header
                self.write_header(f)
 
+               # Our SID range is 406000000 - 406999999, because of HTTP Status 406 - Not Acceptable
+               sid = 406000000
+
                # Shift the ID of the list to the higher 16 bits and append the offset
-               sid = self.list.id << 16
+               sid |= self.list.id << 16
 
                # Map the priority
                # High Priority