From 044c703392606c89dbb4e7770a5c93b7c0d98367 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Sat, 4 Mar 2023 14:13:20 +0100 Subject: [PATCH] Fix log ownership Refs #70 Refs #73 --- roles/install/files/firewalld-denied.conf | 26 ++++++++++++++++------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/roles/install/files/firewalld-denied.conf b/roles/install/files/firewalld-denied.conf index 7dc12c8..5c9ce80 100644 --- a/roles/install/files/firewalld-denied.conf +++ b/roles/install/files/firewalld-denied.conf @@ -1,9 +1,19 @@ -:msg, regex, ".*_DROP: .* DPT=7777 .*" /var/log/firewalld-denied-kf2.log -& stop -:msg, regex, ".*_REJECT: .* DPT=7777 .*" /var/log/firewalld-denied-kf2.log -& stop +:msg, regex, ".*_DROP: .* DPT=7777 .*" { + action(type="omfile" file="/var/log/firewalld-denied-kf2.log" fileOwner="steam" fileGroup="steam") + stop +} -:msg, contains, "_DROP: " /var/log/firewalld-denied.log -& stop -:msg, contains, "_REJECT: " /var/log/firewalld-denied.log -& stop +:msg, regex, ".*_REJECT: .* DPT=7777 .*" { + action(type="omfile" file="/var/log/firewalld-denied-kf2.log" fileOwner="steam" fileGroup="steam") + stop +} + +:msg, contains, "_DROP: " { + action(type="omfile" file="/var/log/firewalld-denied.log" fileOwner="steam" fileGroup="steam") + stop +} + +:msg, contains, "_REJECT: " { + action(type="omfile" file="/var/log/firewalld-denied.log" fileOwner="steam" fileGroup="steam") + stop +}