All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How to match all packets with a tc filter
Date: Fri, 06 Sep 2002 05:52:02 +0000	[thread overview]
Message-ID: <marc-lartc-103129180505519@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103112452206475@msgid-missing>

On Thursday 05 September 2002 18:49, Marcus Sundberg wrote:
> Jose Luis Domingo Lopez <lartc@24x7linux.com> writes:
> > On Wednesday, 04 September 2002, at 20:27:27 +0200,
> >
> > Stef Coene wrote:
> > > > Yeah I know, but I use several different qdiscs and would prefer to
> > > > have a general way to do it with filters.
> > >
> > > The I think the u32 trick is the best you can do.
> >
> > Or tag all traffic with ipchains/iptables and add a tc filter of type
> > fwmark matching this tag.
>
> I'm already using fwmark matching for everything except the default
> filter. Because fwmark doesn't have a mask but only does exact
> matches I can't use that for the default filter without generating
> lots of extra iptables rules.
Only one iptables rule is needed.  As first rule in the iptables list, match 
all packets with 1.  Then process the rules in the iptables list and mark the 
packets with an other mark if you want.  All packets not matched again, will 
keep the mark 1.  This is your "default" mark.  
You only need a filter to put the packets marked with 1 in a default class and 
you have your default filter.


Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-09-06  5:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-04  7:27 [LARTC] How to match all packets with a tc filter Marcus Sundberg
2002-09-04 18:04 ` Stef Coene
2002-09-04 18:17 ` Marcus Sundberg
2002-09-04 18:27 ` Stef Coene
2002-09-04 21:27 ` Jose Luis Domingo Lopez
2002-09-05 16:49 ` Marcus Sundberg
2002-09-06  5:52 ` Stef Coene [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=marc-lartc-103129180505519@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@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.