Skip to content

Commit

Permalink
Fix log ownership
Browse files Browse the repository at this point in the history
Refs #70
Refs #73
  • Loading branch information
bviktor committed Mar 7, 2023
1 parent a831cb8 commit 044c703
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions roles/install/files/firewalld-denied.conf
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 044c703

Please sign in to comment.