All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Schaaf <bof@bof.de>
To: Poltorak Serguei <poltorak@df.ru>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: target MARK in filter table?
Date: Tue, 15 Jul 2003 07:16:51 +0200	[thread overview]
Message-ID: <20030715051650.GA6710@oknodo.bof.de> (raw)
In-Reply-To: <Pine.LNX.3.95.1030715080541.10486A-100000@cannabis.dataforce.net>

On Tue, Jul 15, 2003 at 08:26:17AM +0400, Poltorak Serguei wrote:
> ;The idea is to have targets for filtering in the filter table - and
> ;anything that modifies the packet [or potentially affect other kernel
> ;subsystems such as policy routing] in 'mangle'.
> And if I'm using fwmark mechanism not to change packet, but to
> mark it and remember that this one I need to treat differantly.
> 
> May be you know a better way to do it...

The workaround that I used in some situations, was to create suitable
classification chains at mangle/PREROUTING, which set MARK values,
and then consistently match these marks in the filter table, instead
of using various criteria directly.

It is a bad workaround, because it complicates the ruleset by one layer.
In the filter table, I can no longer locally see _when_ something is done,
only _what_ is done; for the full picture, I have to jump back and forth
between reading filter and mangle chains.

This is bearable, but not really nice.

> I think fwmark is very usefull not only with routing and qos to tell what
> to change/mangle/nat/... It makes iptables more programmable :)

Exactly my feeling.

best regards
  Patrick

      reply	other threads:[~2003-07-15  5:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-13  1:34 target MARK in filter table? Poltorak Serguei
2003-07-13  2:01 ` Poltorak Serguei
2003-07-13  7:02   ` Patrick Schaaf
2003-07-13 11:19     ` Poltorak Serguei
2003-07-13 12:43       ` Poltorak Serguei
2003-07-13 14:19         ` Patrick Schaaf
2003-07-14  8:05           ` Harald Welte
2003-07-15  4:26             ` Poltorak Serguei
2003-07-15  5:16               ` Patrick Schaaf [this message]

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=20030715051650.GA6710@oknodo.bof.de \
    --to=bof@bof.de \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=poltorak@df.ru \
    /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.