]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
suricata-reporter: Add source/destination ports to the emails, too
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Aug 2025 16:03:56 +0000 (17:03 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:00 +0000 (18:42 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/suricata/suricata-reporter

index 1a055717c0db02118ff78069c8143d6656b04eee..b711d9fccb874ce5fc7ff24b63ed990f418ac82d 100644 (file)
@@ -387,9 +387,12 @@ class Worker(multiprocessing.Process):
                        "       %-20s : %s" % (_("Signature"), event.alert_signature),
                        "       %-20s : %s" % (_("Category"), event.alert_category),
                        "       %-20s : %s" % (_("Severity"), event.alert_severity),
-                       "       %-20s : %s" % (_("Timestamp"), event.timestamp.strftime("%A, %d %B %Y at %H:%M:%S %Z")),
-                       "       %-20s : %s" % (_("Source"), event.source_address),
-                       "       %-20s : %s" % (_("Destination"), event.destination_address),
+                       "       %-20s : %s" % (_("Timestamp"),
+                                       event.timestamp.strftime("%A, %d %B %Y at %H:%M:%S %Z")),
+                       "       %-20s : %s:%s" % (_("Source"),
+                                       event.source_address, event.source_port or event.icmp_code),
+                       "       %-20s : %s:%s" % (_("Destination"),
+                                       event.destination_address, event.destination_port or event.icmp_type),
                        "       %-20s : %s" % (_("Protocol"), event.protocol),
                        "",
                ]