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…“)
 
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  

Version vom 1. März 2023, 08:18 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
& ~