Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] How to write a catch all rule?
Date: Sun, 07 May 2006 19:27:09 +0000	[thread overview]
Message-ID: <445E4A0D.1090705@dsl.pipex.com> (raw)
In-Reply-To: <20060430062608.14452.qmail@web38406.mail.mud.yahoo.com>

Andreas Unterkircher wrote:
> http://mailman.ds9a.nl/pipermail/lartc/2005q3/016774.html

tc filter add dev eth0 parent 1:0 protocol all u32 match u32 0 0 flowid 1:1


That will match all. Someone told me once that the difference between it 
working and not on a large rule set was the explicit inclusion of prio XX.

To the OP you may mean all ip (as in the lartc example) - in which case 
replace the all with ip and give it a higher prio number than the other 
rules/ put it last. Protocol all will catch arp etc aswell which may not 
be what you want./

One gotcha is that the highest prio on a filter is 1 so don't use 0 or 
that filter may be "last".

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

      parent reply	other threads:[~2006-05-07 19:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-30  6:26 [LARTC] How to write a catch all rule? Unga
2006-04-30  7:30 ` Andreas Unterkircher
2006-05-07 19:27 ` Andy Furniss [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=445E4A0D.1090705@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox