Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Erik Schorr <erik-lists@arpa.org>
To: netfilter@vger.kernel.org
Cc: "Rob Sterenborg (Lists)" <lists@sterenborg.info>
Subject: Re: debug iptables rules
Date: Tue, 23 Aug 2011 01:18:06 -0700	[thread overview]
Message-ID: <1314087487.12014.54.camel@phelix> (raw)
In-Reply-To: <1314029592.2486.18.camel@kushiel.sterenborg.info>

I'm surprised nobody has mentioned the TRACE option.
It's used in the 'raw' table, applied to the PREROUTING chain, I
believe.  Every packet that matches/is marked by the TRACE option gets
logged as it traverses every subsequent rule that it matches.  I believe
it also shows when enters and exits a chain, regardless of matching
rules within it.

It's perfect for tracing initial connection packets (e.g. SYN-only)
through all your filters and nat chains.  It can generate LOTS of
logging traffic if you're not careful.



  parent reply	other threads:[~2011-08-23  8:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA+b04XnYFUcukqbmQXiKbY4VjUaFs3red56Jfnzm4pj+z6ndRw@mail.gmail.com>
2011-08-22 15:10 ` debug iptables rules TEJAS
2011-08-22 15:30   ` Rob Sterenborg (Lists)
2011-08-22 15:53     ` TEJAS
2011-08-22 16:13       ` Rob Sterenborg (Lists)
2011-08-22 18:04         ` TEJAS
2011-08-23  9:08           ` Rob Sterenborg (Lists)
2011-08-23 14:35             ` TEJAS
2011-08-23 18:44               ` Rob Sterenborg (Lists)
2011-08-25 16:16                 ` Amos Jeffries
2011-08-23  8:18         ` Erik Schorr [this message]
2011-08-23 10:29           ` Jan Engelhardt
2011-08-22 20:53   ` fuzzy_4711

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=1314087487.12014.54.camel@phelix \
    --to=erik-lists@arpa.org \
    --cc=lists@sterenborg.info \
    --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