]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
suricata: Start the reporter daemon
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Aug 2025 16:17:48 +0000 (17:17 +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>
src/initscripts/system/suricata

index a0f607971201a1fe705a7d437f980806b10add79..a529c91c476b77813ed8f6f8c9708aa7d4bc87e1 100644 (file)
@@ -187,6 +187,10 @@ case "$1" in
 
                # Check if the IDS should be started.
                if [ "$ENABLE_IDS" == "on" ]; then
+                       # Start the reporter
+                       boot_mesg "Starting Intrusion Prevention Reporter..."
+                       loadproc -f -p /var/run/suricata/reporter.pid -b /usr/bin/suricata-reporter
+
                        # Start the IDS.
                        boot_mesg "Starting Intrusion Detection System..."
                        loadproc -b /usr/bin/suricata-watcher -c /etc/suricata/suricata.yaml $NFQUEUES
@@ -203,6 +207,9 @@ case "$1" in
                boot_mesg "Stopping Intrusion Detection System..."
                killproc -p /var/run/suricata.pid /usr/bin/suricata
 
+               boot_mesg "Stopping Intrusion Prevention Reporter..."
+               killproc -p /var/run/suricata/reporter.pid /usr/bin/suricata-reporter
+
                # Flush firewall chain.
                flush_fw_chain
 
@@ -211,7 +218,8 @@ case "$1" in
         ;;
 
         status)
-                PIDFILE="/var/run/suricata.pid" statusproc /usr/bin/suricata
+               PIDFILE="/var/run/suricata.pid" statusproc /usr/bin/suricata
+               PIDFILE="/var/run/suricata/reporter.pid" statusproc /usr/bin/suricata-reporter
                 ;;
 
         restart)