Firewalld und LogDenied

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
humanreadable
Beiträge: 47
Registriert: 02.11.2017 13:57:38

Firewalld und LogDenied

Beitrag von humanreadable » 20.06.2022 00:50:06

Hallo Forum,

in Debian 11 schreibt Firewalld 0.9.3-2 die LogDenied=all in

/var/log/syslog
/var/log/messages
Journal (und dmesg)

/var/log/firewalld ist aber leer:

Code: Alles auswählen

ls /var/log/firewalld
-rw-r----- 1 root root 0 18 giu 12.53 /var/log/firewalld
Wie kann ich die Logdateien *nur* in /var/log/firewalld (und vor allem *nicht* in Jourrnal) bekommen?

In /etc/firewalld.conf finde ich keine Option.

/lib/systemd/system/firewalld.service sieht so aus:

Code: Alles auswählen

[Unit]
Description=firewalld - dynamic firewall daemon
Before=network-pre.target
Wants=network-pre.target
After=dbus.service
After=polkit.service
Conflicts=iptables.service ip6tables.service ebtables.service ipset.service nftables.service
Documentation=man:firewalld(1)

[Service]
ExecStart=/usr/sbin/firewalld --nofork --nopid
ExecReload=/bin/kill -HUP $MAINPID
# supress to log debug and error output also to /var/log/messages
StandardOutput=null
StandardError=null
Type=dbus
BusName=org.fedoraproject.FirewallD1
KillMode=mixed

[Install]
WantedBy=multi-user.target
Alias=dbus-org.fedoraproject.FirewallD1.service
Vielen Dank
Deutsch ist nicht meine Muttersprache. Ich bitte um Verständnis.

mat6937
Beiträge: 3432
Registriert: 09.12.2014 10:44:00

Re: Firewalld und LogDenied

Beitrag von mat6937 » 20.06.2022 11:19:18

humanreadable hat geschrieben: ↑ zum Beitrag ↑
20.06.2022 00:50:06
... (und vor allem *nicht* in Jourrnal) bekommen?
Mit:

Code: Alles auswählen

[Journal]
Storage=none
ForwardToSyslog=no
ForwardToWall=no
in der "/etc/systemd/journald.conf"
humanreadable hat geschrieben: ↑ zum Beitrag ↑
20.06.2022 00:50:06

Code: Alles auswählen

[Service]
ExecStart=/usr/sbin/firewalld --nofork --nopid
ExecReload=/bin/kill -HUP $MAINPID
# supress to log debug and error output also to /var/log/messages
StandardOutput=null
StandardError=null
Zusätzlich:

Code: Alles auswählen

LogLevelMax=0
in der [Service]-Section.
Debian 12.9 mit LXDE, OpenBSD 7.6 mit i3wm, FreeBSD 14.1 mit Xfce

humanreadable
Beiträge: 47
Registriert: 02.11.2017 13:57:38

Re: Firewalld und LogDenied

Beitrag von humanreadable » 20.06.2022 13:57:07

Vielen Dank für den Tipp. Es hat leider nicht funktioniert.
Ich möchte sowieso Journal persistent haben.
Deutsch ist nicht meine Muttersprache. Ich bitte um Verständnis.

humanreadable
Beiträge: 47
Registriert: 02.11.2017 13:57:38

Re: Firewalld und LogDenied

Beitrag von humanreadable » 21.06.2022 00:04:30

Es ist sehr merkwürdig, ich habe in /lib/systemd/system/firewalld.service die Zeile

Code: Alles auswählen

# supress to log debug and error output also to /var/log/messages
unkommentiert und trotzdem finde ich immer noch dort die Logdateien.
Deutsch ist nicht meine Muttersprache. Ich bitte um Verständnis.

Antworten