From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nuutti Kotivuori Date: Tue, 02 Mar 2004 09:58:33 +0000 Subject: [LARTC] Re: how do you rate limit routable traffic without rate limiting Message-Id: <87r7wb1sfq.fsf@iki.fi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/