From: "Francois Herbert" <fherbert@inspire.net.nz>
To: netfilter@lists.netfilter.org
Subject: IPtables Logging to different log file
Date: Thu, 4 Sep 2003 21:35:34 +1200 [thread overview]
Message-ID: <001401c372c7$e4382910$0a00a8c0@main> (raw)
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
I would like to change the location of my log information created by
iptables usage. I am running RH7.3 kernel 2.4.20, iptables v1.2.8.
I have the following in my syslog.conf file:
-----------------Cut-----------------------------------------
#Log iptables stuff to iptables log
kern.3 /var/log/iptables
-----------------Cut-----------------------------------------
And in my firewall script...
$IPTABLES -N LOG_DROP
$IPTABLES -A LOG_DROP -j LOG --log-tcp-options --log-level 3
--log-ip-options --log-prefix "[IPTABLES DROP] : "
$IPTABLES -A LOG_DROP -j DROP
This does log some information to /var/log/iptables but it takes longer
(about a 2-3 minute delay) to get to that file than to /var/log/messages
(which it still logs to).
I have seen the local0 - local7 syslogd facilities but am a little
unsure how to use them. Does anybody have an idea???
Ideally, I would like to log all my iptables log to /var/log/iptables
and not to /var/log/messages at all...
Thanks
Francois.
[-- Attachment #2: Type: text/html, Size: 3226 bytes --]
reply other threads:[~2003-09-04 9:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='001401c372c7$e4382910$0a00a8c0@main' \
--to=fherbert@inspire.net.nz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.