From: Srinivasa T N <seenutn@linux.vnet.ibm.com>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Place for ipt_ACCOUNT/ipt_NETFLOW
Date: Fri, 04 Feb 2011 10:52:47 +0530 [thread overview]
Message-ID: <4D4B8D27.3070306@linux.vnet.ibm.com> (raw)
In-Reply-To: <4D4B0D7B.5020703@riverviewtech.net>
On Friday 04 February 2011 01:48 AM, Grant Taylor wrote:
> On 02/03/11 02:50, Srinivasa T N wrote:
>> Is it possible for me to place rules related to accounting after filter
>> table in the INPUT chain so that the accounting takes place only on the
>> packets I am accepting in my box?
>
> I hope I'm understanding you correctly.
>
> It sounds like you are wanting to do your accounting after you filter
> out most of the chaff / noise / IBR that you don't want. Correct?
Yes, you are correct.
>
> If this is the case, why don't you have your filtering rules DROP /
> REJECT / otherwise discard the packets you don't want and then have a
> follow up rule that ACCEPTS the packet and do your accounting there?
>
> At least if I understand you correctly, filtering packets before they
> hit your accounting rule should do what you are wanting.
>
But adding rules to discard the unwanted traffic and then do an
accounting for the rest of the packets in not a good idea. I may not
even know what type of packets may arrive and writing rules to discard
each of unwanted packets is difficult. So, I prefer to write rules to
accept only the packets that are required and then drop the other
packets. I wanted to do the accounting only for packets that I accept.
>
>
> Grant. . . .
> --
Regards,
Seenu.
next prev parent reply other threads:[~2011-02-04 5:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 8:50 Place for ipt_ACCOUNT/ipt_NETFLOW Srinivasa T N
2011-02-03 16:55 ` Bob Miller
2011-02-04 5:25 ` Srinivasa T N
2011-02-03 20:18 ` Grant Taylor
2011-02-04 5:22 ` Srinivasa T N [this message]
2011-02-05 3:38 ` Grant Taylor
2011-02-07 6:54 ` Srinivasa T N
2011-02-07 16:20 ` 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=4D4B8D27.3070306@linux.vnet.ibm.com \
--to=seenutn@linux.vnet.ibm.com \
--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.