Rsyslog firewall Regel

Aus Xinux Wiki
Version vom 1. März 2023, 08:16 Uhr von Thomas.will (Diskussion | Beiträge) (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…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Prevent rsyslog logging to /var/log/syslog

iptables

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

nftables

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