From 47b9ca7a50a9a0d97f55c29016d859da378b56f8 Mon Sep 17 00:00:00 2001 From: Random936 Date: Mon, 9 Sep 2024 20:30:31 -0700 Subject: [PATCH] Added suricata to logging vm without config in nix config --- config/logging.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/logging.nix b/config/logging.nix index 6f518b4..49cf6bb 100644 --- a/config/logging.nix +++ b/config/logging.nix @@ -22,4 +22,15 @@ environment.systemPackages = with pkgs; [ suricata ]; + + systemd.services.suricata = { + enable = true; + description = "Suricata IDS/IPS"; + wantedBy = ["multi-user.target"]; + serviceConfig = { + type = "simple"; + ExecStart = "${pkgs.suricata}/bin/suricata -c '/home/logging/suricata.yaml' -i ens18"; + Restart = "on-failure"; + }; + }; }