All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgi Alexandrov <tehlists@hotpop.com>
To: netfilter@lists.netfilter.org
Subject: Re: syslogging firewall data to an external file
Date: Sun, 20 Mar 2005 23:40:19 +0200	[thread overview]
Message-ID: <423DEDC3.1000902@hotpop.com> (raw)
In-Reply-To: <20050320210235.0CBD0F9D7EF@mx2.hotpop.com>

matt wrote:

>Hi all,
>
>Apologies if this post is more a kernel/syslog post, but from what I’ve read
>part of it is netfilter.
>
>I have a linux box that’s has an iptables rule -A INPUT -j LOG --log-prefix
>"FIREWALL:INPUT"
>
>Which is basiclly my last rule, so if my other rules haven’t been matched it
>will log it into the syslog
>
>My syslog config looks like this
>
>auth,authpriv.* -/var/log/auth.log
>*.*;auth,authpriv.none -/var/log/sys.log
>daemon.* -/var/log/daemon.log
>kern.* -/var/log/kern.log
>mail.* -/var/log/mail.log
>user.* -/var/log/user.log
>*.emerg *
>
>So kernel warnings go to kern.log – mail alerts go to mail.log etc thus
>keeping the actual syslog clean of anything other than core stuff. However
>my syslog is getting flooded with firewall data. I’ve read in the FAQ that
>explains how the priority of the logging feature is used with syslog,
>however I was wondering if there was anyway I could configure
>netfilter/syslog to something like this
>
>kern.* -/var/log/kern.log
>mail.* -/var/log/mail.log
>user.* -/var/log/user.log
>netfilter.* /var/log/firewall.log
>
>so that once again the syslog logs only “core” data and all the general
>netfilter jazz goes to the firewall.log, so that should I need to I can
>study it, yet keeping the syslog clear.
>
>Thanks,
>
>Matt
>
>
>  
>
Hello,

Use the ULOG (userspace logging) target and the ulogd deamon. That way 
you may specify logging to a particular file (supports sql logging too).
More at: http://iptables-tutorial.frozentux.net/iptables-tutorial.html

regards,
Georgi Alexandrov


       reply	other threads:[~2005-03-20 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050320210235.0CBD0F9D7EF@mx2.hotpop.com>
2005-03-20 21:40 ` Georgi Alexandrov [this message]
2005-03-22 11:27   ` syslogging firewall data to an external file Jason Opperisano
2005-03-20 21:01 matt

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=423DEDC3.1000902@hotpop.com \
    --to=tehlists@hotpop.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 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.