Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Nuutti Kotivuori <naked@iki.fi>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: how do you rate limit routable traffic without rate limiting
Date: Tue, 02 Mar 2004 09:58:33 +0000	[thread overview]
Message-ID: <87r7wb1sfq.fsf@iki.fi> (raw)

Michael A. D'Annunzio wrote:
> I know if I remove the default parameter, traffic not matching
> any filter is sent over the root queue, but I need to have a defined
> default.

Define the default for whatever you wish to have as the default class
for non-ip traffic and then filter _all_ ip traffic into a certain
class, eg:

  tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \
     match ip dst 0.0.0.0/0 flowid 1:20

Or, even more modularily, use the MARK target at the end of your
iptables ruleset after all other markings:

  iptables -t mangle -A POST_ROUTING -m mark --mark 0 -j MARK --set-mark 3
  iptables -t mangle -A OUTPUT -m mark --mark 0 -j MARK --set-mark 3

And then just setup your tc to match the marks to classes:

  tc filter add dev $DEV parent 1: protocol ip prio 10 \
      handle 3 fw \
      flowid 1:30

Or a variety of other solutions.

I am not sure if this will solve your problem exactly, though - since
having problems with ARP traffic and so seems really odd.

-- Naked


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

                 reply	other threads:[~2004-03-02  9:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87r7wb1sfq.fsf@iki.fi \
    --to=naked@iki.fi \
    --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