All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: netfilter@vger.kernel.org
Subject: Re: Empty Target
Date: Fri, 06 Feb 2009 20:15:09 -0600	[thread overview]
Message-ID: <gmiqrd$u0s$1@ger.gmane.org> (raw)
In-Reply-To: <498cb439.20018e0a.3be8.ffffc9e3@mx.google.com>

Gilad Benjamini wrote:
> I am trying to troubleshoot an iptables rule set, trying to understand where
> different packets are going. I have found that using "iptables -L -v" is a
> useful tool, with the counters telling me what's going on.
> To "trigger" counters I currently use LOG rules. I would actually prefer
> some sort of empty rule; a rule that would do nothing beyond increasing the
> counters.
> 
> Does something like that exist ?
> Seems trivial to implement. 

Extremely trivial, and already there.  There is no requirement that a rule
must have a target.  Just write the rule without one.  I have several such
rules in my ruleset.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.


  reply	other threads:[~2009-02-07  2:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 22:05 Empty Target Gilad Benjamini
2009-02-07  2:15 ` Robert Nichols [this message]
2009-02-07  7:12 ` Vincent Bernat

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='gmiqrd$u0s$1@ger.gmane.org' \
    --to=rnicholsnospam@comcast.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.