From: z3rosix@my-mail.ch
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] syslog-ng filtert iptables (nicht)
Date: Fri, 8 Jul 2005 11:53:42 +0200 [thread overview]
Message-ID: <20050708095342.GA13376@gmx.de> (raw)
In-Reply-To: <20050707181355.GB30176@gmx.de>
Hallo,
alles klar hab selber meinen Fehler gefunden.
Die Sachen die der Kernel meldet gehen ja nicht über /dev/log sondern
über /proc/kmsg, und dafür is bei gentoo eine eigene src konfiguriert:
source src { unix-stream("/dev/log"); internal(); };
source kernsrc { file("/proc/kmsg"); };
D.h. ich musste einfach meine Zeile
log { source(src); filter(f_iptables); destination(iptables); };
nach
log { source(kernsrc); filter(f_iptables); destination(iptables); };
ändern und schon logt er alles nach /var/log/iptables
greetz
alex
On Thu, Jul 07, 2005 at 08:13:55PM +0200, z3rosix@my-mail.ch wrote:
> sers,
>
> ich hab ein problem mit syslog-ng. Ich möchte das er meine iptables
> drops in ein spezielles file (/var/log/iptables) logt. Dafür markier ich
> alle gedropten pakete bei iptables mit "-j LOG --log-prefix "iptables: "
> "
> Beim syslog-ng hab ich eine entsprechende destination, filter usw.
> konfiguriert:
>
> destination iptables { file("/var/log/iptables"); };
> filter f_iptables { match("iptables:"); };
> log { source(src); filter(f_iptables); destination(iptables); };
>
> aus meiner sicht sieht eigentlich alles gut aus, nur irgendwarum landen
> die drops immer noch in "/var/log/kern.log".
> ich hab die iptables regel auch schon ganz am anfang hingesetzt, weil
> ich gelesen hab das der ja nur einmal logt und dann würde es erklären
> warums in "kern.log" landet aber auch wenns ganz am anfang steht klappts
> nicht.
>
>
> Weiß jemand noch rat?
>
>
> thx im voraus
>
>
> greetz
>
> alex
>
> --
> gentoo-user-de@gentoo.org mailing list
--
gentoo-user-de@gentoo.org mailing list
next prev parent reply other threads:[~2005-07-08 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-07 18:13 [gentoo-user-de] syslog-ng filtert iptables (nicht) z3rosix
2005-07-07 19:55 ` Dominik Elsbroek
2005-07-08 9:53 ` z3rosix [this message]
2005-07-08 19:27 ` Dominik Elsbroek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050708095342.GA13376@gmx.de \
--to=z3rosix@my-mail.ch \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox