From: Athan <netfilter@miggy.org>
To: Chris Shepherd <chriss@whstuart.com>
Cc: "Randall J. Parr" <RParr@TemporalArts.COM>,
netfilter@lists.netfilter.org
Subject: Re: how to configure iptables / syslog to log to separate file
Date: Wed, 8 Jan 2003 22:09:37 +0000 [thread overview]
Message-ID: <20030108220937.GF21359@miggy.org> (raw)
In-Reply-To: <1042058254.3e1c8c0e93c83@mail.whstuart.com>
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]
On Wed, Jan 08, 2003 at 03:37:34PM -0500, Chris Shepherd wrote:
> Quoting "Randall J. Parr" <RParr@TemporalArts.COM>:
> > Can I, and if so how can I, configure iptables (esp using GuardDog which
> > I use to configure iptables) and/or syslog (ie /etc/syslog.conf, ...) so
> > that my firewall messages are logged into a file other than
> > /var/log/messages?
> >
> > I have searched, looked at tutorial, etc. and found this question asked
> > many times but without ever finding a decent answer.
> >
> > If it just can not be done, could someone who knows this please state so?
>
> Configure Syslog to log a certain log-level to an alternate file, and then just
> use "-j LOG --log-level <level>". ie: if you wanted it to log as a notice,
> just setup Syslog to log notices to another file, and drop in a line that reads
> like:
>
> iptables -A LOGGING_TABLE -j LOG --log-level notice --log-prefix="NF: "
That's still only a _kernel_ log _priority_. So it'll still be in the
kernel facility. But this is still part of the solution *8-).
You won't be able to guarantee *ONLY* iptables logging in a file,
but you can set --log-level debug and then in /etc/syslog.conf
kernel.=debug /var/log/kernel-debug.log
Debug is the level least likely to have stuff generated by other things
normally.
HTH,
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
prev parent reply other threads:[~2003-01-08 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-08 20:28 how to configure iptables / syslog to log to separate file Randall J. Parr
2003-01-08 20:37 ` Chris Shepherd
2003-01-08 22:09 ` Athan [this message]
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=20030108220937.GF21359@miggy.org \
--to=netfilter@miggy.org \
--cc=RParr@TemporalArts.COM \
--cc=chriss@whstuart.com \
--cc=netfilter@lists.netfilter.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