Rsyslog firewall Regel: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt: „=Prevent rsyslog logging to /var/log/syslog= ==iptables== *10-iptables.conf if $msg contains '-iptables-' then /var/log/firewall & ~ ==nftables== *10-nftabl…“
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
=Prevent rsyslog logging to /var/log/syslog=
=Prevent rsyslog logging to /var/log/syslog=
==Arbeitsverzeichni==
*cd /etc/rsyslog.d/
==iptables==
==iptables==
*10-iptables.conf  
*10-iptables.conf  
Zeile 8: Zeile 10:
  if $msg contains '-nftables-' then /var/log/firewall
  if $msg contains '-nftables-' then /var/log/firewall
  & ~
  & ~
=Neustarten des rsyslog=
*systemctl restart rsyslog.service

Aktuelle Version vom 1. März 2023, 08:21 Uhr

Prevent rsyslog logging to /var/log/syslog

Arbeitsverzeichni

  • cd /etc/rsyslog.d/

iptables

  • 10-iptables.conf
if $msg contains '-iptables-' then /var/log/firewall
& ~

nftables

  • 10-nftables.conf
if $msg contains '-nftables-' then /var/log/firewall
& ~

Neustarten des rsyslog

  • systemctl restart rsyslog.service