From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Szyszlican Subject: Re: Outbound IPIP Tunnel Packets not shaped/policed Date: Mon, 08 Nov 2004 09:48:36 -0300 Message-ID: <418F6B24.2010200@szysz.com> References: <20041104004019.GO19714@rei.reeler.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@oss.sgi.com Return-path: To: netdev@oss.sgi.com In-Reply-To: <20041104004019.GO19714@rei.reeler.org> Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org Thomas, Thanks for helping me. I can't seem to figure this out. The commands are (Generated via firehol) Iptables: -A FORWARD -p 4 -j mark.4 -A OUTPUT -p 4 -j mark.5 -A mark.4 -j MARK --set-mark 0x1 -A mark.5 -j MARK --set-mark 0x1 And in TC: tc qdisc add dev ppp0 root handle 2:0 htb default 22 tc class add dev ppp0 parent 2:0 classid 2:1 htb rate 128kbit ceil 128kbit tc class add dev ppp0 parent 2:1 classid 2:22 htb rate 32kbit ceil 128kbit prio 10 tc class add dev ppp0 parent 2:1 classid 2:21 htb rate 96kbit ceil 128kbit prio 1 tc filter add dev ppp0 protocol ip parent 2:0 prio 1 handle 1 fw flowid 2:21 What do you mean by "same device", all this is on my gateway host, that has the pptp connection (ppp0) and over that the IPIP tunnel. If the IPIP packets geneated by kernel are going to the shaping functions, how is that I don't see them in my tc -s ? Thanks you very much for helping me. Javier Thomas Graf wrote: > * Javier Szyszlican 2004-11-03 20:36 > >>filter parent 2: protocol ip pref 1 fw >>filter parent 2: protocol ip pref 1 fw handle 0x1 classid 2:21 >> >>Chain OUTPUT (policy ACCEPT 794K packets, 111M bytes) >> pkts bytes target prot opt in out source >> destination >> 4984 377K mark.4 4 -- * * 0.0.0.0/0 >> 0.0.0.0/0 >> >>Chain mark.4 (1 references) >> pkts bytes target prot opt in out source >> destination >> 4984 377K MARK all -- * * 0.0.0.0/0 >> 0.0.0.0/0 MARK set 0x1 > > > Is this on the same device? I have such a setup in my test suite > and it works fine with the latest bk snapshot. Can you show me > the actual commands you execute? > > >>So, I'm guessing that the IPIP packets generated by the kernel, are not >>going into the packet scheduling routines/functions. > > > They surely are. > >