All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Keller <sk@open.ch>
To: jean-philippe.menil@univ-nantes.fr
Cc: netfilter@vger.kernel.org
Subject: Re: Virtual packet tracer for iptables
Date: Fri, 08 Jun 2012 14:33:06 +0200	[thread overview]
Message-ID: <4FD1F102.2010609@open.ch> (raw)
In-Reply-To: <4FD1E87C.5020004@univ-nantes.fr>

> not sure to understand what you mean.
> But you have the TRACE target who can help you.
> "This target marks packets so that the kernel will log every rule which
> match the packets as those traverse the tables, chains, rules."
> 
> Hope this help.
> 

Hi Jean-Philippe

Thanks for your reply!
We did some tests with the TRACE target. But if you use
this target, then you need real traffic that matches the
rule base - meaning an off-line analysis is not possible.
Further, we realized that it is quite hard to simulate
a packet that would match the FORWARD chain (we did not
make it that it was accepted by the system).

As a side note:
We run systems with up to 50,000 concurrent sessions
and an iptables rule base with few thousands of lines.
If we activate the TRACE target, we will get a huge
number of log entries!

I look for a tool that could provide the matching rules
without real traffic - just with the information how the
packet would look like (a virtual packet).
For this purpose, one could use the output of iptables-save
or there might be an interface I'm not aware of provided
by netfilter.
This tool would not show me what rules currently match.
It is more a hypothetical question: What rule(s) would match
if I had a packet like this?

Hope this helps to clarify my request.

Best regards
Stefan Keller


-- 
stefan keller
product manager

open systems ag
raeffelstrasse 29
ch-8045 zurich
t: +41 44 455 74 00
f: +44 44 455 74 01
stefan.keller@open.ch

http://www.open.ch

  reply	other threads:[~2012-06-08 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 11:32 Virtual packet tracer for iptables Stefan Keller
2012-06-08 11:56 ` Jean-Philippe Menil
2012-06-08 12:33   ` Stefan Keller [this message]
2012-06-08 12:59     ` Jean-Philippe Menil
2012-06-08 13:36       ` Stefan Keller

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=4FD1F102.2010609@open.ch \
    --to=sk@open.ch \
    --cc=jean-philippe.menil@univ-nantes.fr \
    --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.