Aktiviert man UFW auf Ubuntu schreibt UFW seine Logs nach:
1 2 |
/var/log/ufw.log /var/log/syslog |
Will man die UFW Logfiles nicht im syslog haben, einfach in
1 |
vi /etc/rsyslog.d/20-ufw.conf |
und dort ein „& stop“ nach „:msg,contains,“[UFW “ /var/log/ufw.log“ einfügen, das ganze Sieht da so aus:
1 2 3 4 5 6 7 |
# Log kernel generated UFW log messages to file :msg,contains,"[UFW " /var/log/ufw.log & stop # Uncomment the following to stop logging anything that matches the last rule. # Doing this will stop logging kernel generated UFW log messages to the file # normally containing kern.* messages (eg, /var/log/kern.log) #& ~ |
Speichern und
1 |
service rsyslog restart |
UFW loggt nun nicht mehr nach syslog.
Neueste Kommentare