Dec 04, 2025 - 03:11 AMDeutsch | English
Hello unlogged user [ Register | Log in ]

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sirius01
Post subject: iptables Log  PostPosted: Mar 10, 2020 - 03:01 PM



Joined: Mar 31, 2006
Posts: 97

Hallo @all,

was muss ich wo einstellen damit
die iptables logs nicht mehr in kern.log landen sondern
in z.B. in /var/log/iptables.log Mit den Augen rollen .

vielen Dank im voraus Smilie

gruß sirius01 Smilie Cool Smilie

_________________
apt-get remove Englisch
 
 View user's profile Send private message  
Reply with quote Back to top
Antonius
Post subject: iptables Log  PostPosted: Mar 14, 2020 - 12:10 PM



Joined: Jul 20, 2010
Posts: 119

In dem Link unten gibt es einen Vorschlag, der zwei Schritte braucht:

1. In der entsprechende Regel von iptables hinter dem "-j LOG" noch einen Prefix ergänzen, z.B. "--log-prefix='[netfilter] ' .

2. Im Verzeichnus "/etc/rsyslog.d/" eine neue Datei erstellen (z.B. /etc/rsyslog.d/00my_iptables.conf) und in diese folgende Zeile schreiben:

:msg,contains,"[netfilter] " /var/log/iptables.log

Damit werden dann die Meldungen, die den o.g. Prefix beinhalten, in eine eigene Datei umgelenkt. (Logischerweise erst ab dann, wenn der rsyslog-Dienst entweder manuell oder nach einem PC-Reboot neu gestartet wurde).

Link:
https://askubuntu.com/questions/348439/where-can-i-find-the-iptables-log-file-and-how-can-i-change-its-location
 
 View user's profile Send private message  
Reply with quote Back to top
sirius01
Post subject:   PostPosted: Mar 15, 2020 - 06:37 AM



Joined: Mar 31, 2006
Posts: 97

Danke @Antonius Smilie ,


das hatte ich gesucht. Smilie

gruß sirius01 Smilie Cool Smilie

_________________
apt-get remove Englisch
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.