From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: iptables u32 tests and user logging
Date: Mon, 21 Jul 2008 14:57:53 -0500 [thread overview]
Message-ID: <4884EA41.3060203@riverviewtech.net> (raw)
In-Reply-To: <76fdae320807211106m4d0c6dd8qfae16a04a31577d8@mail.gmail.com>
On 07/21/08 13:06, Padmanabhan wrote:
> Is there way we can add code to u32 to do this function ,, after
> matching a criteria, print/ log interested bytes?
Rather than having u32 do the logging, you could use u32 to create
multiple different rules (one per ITT you want to log) and then use a
generic LOG target to do the logging for you. I.e.
Does ITT match "A", log "bla, bla, A, bla..."
Does ITT match "B", log "bla, bla, B, bla..."
Does ITT match "C", log "bla, bla, C, bla..."
You may want to make this a sub chain that is jumped to after matching
the common portion of the IPTables rule.
Grant. . . .
next prev parent reply other threads:[~2008-07-21 19:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <76fdae320807202313ma67d4c3l1921e41fa962a976@mail.gmail.com>
2008-07-21 6:15 ` iptables u32 tests and user logging Padmanabhan
2008-07-21 7:51 ` Jan Engelhardt
2008-07-21 15:40 ` Grant Taylor
2008-07-21 16:41 ` Padmanabhan
2008-07-21 16:49 ` Jan Engelhardt
2008-07-21 18:06 ` Padmanabhan
2008-07-21 18:49 ` Jan Engelhardt
2008-07-21 19:57 ` Grant Taylor [this message]
2008-07-21 20:15 ` Padmanabhan
2008-07-21 21:52 ` Grant Taylor
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=4884EA41.3060203@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox