All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: iptables NAT logging
Date: Tue, 06 Nov 2007 21:06:32 -0600	[thread overview]
Message-ID: <47312BB8.5040200@riverviewtech.net> (raw)
In-Reply-To: <47312A99.3070208@snapgear.com>

On 11/6/2007 9:01 PM, Philip Craig wrote:
> ulogd2 has support for listening to the events, although I haven't 
> tested it recently.  Look for the flow logging options.
> 
> You could also use the 'conntrack' tool to monitor them, and pipe 
> that to a log file.

Interesting.

> This is purely about connection tracking, not filtering, so you can't 
> match up these events with the filter rule that accepted it, unless 
> you encode that in the mark or something.  It will only get events 
> for connections that are accepted by filtering though.

Unless I mis-understand the OP's desires, I don't think the shortcoming 
(if it qualifies as that) of not being able to associate a NetLink event 
with a given IPTables rule is all that big of a deal.  I think the OP 
just needed to log internal and external source and destination IP 
addresses and ports and when the connection started and stopped, thus 
knowing which IPTables rule is (IMHO) a non issue.  I guess depending on 
what someone was trying to do this could be an issue.



Grant. . . .

  reply	other threads:[~2007-11-07  3:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02  8:47 iptables NAT logging Jonathan Gazeley
2007-11-02  9:33 ` G.W. Haywood
2007-11-02  9:36 ` Martijn Lievaart
2007-11-02 14:59 ` Grant Taylor
2007-11-04  1:46   ` 李伟华
2007-11-06 16:38   ` Jonathan Gazeley
2007-11-06 18:07     ` Grant Taylor
2007-11-07  0:53       ` Philip Craig
2007-11-07  2:29         ` Grant Taylor
2007-11-07  3:01           ` Philip Craig
2007-11-07  3:06             ` Grant Taylor [this message]
2007-11-05  0:43 ` Philip Craig

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=47312BB8.5040200@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@vger.kernel.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.