All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Szyszlican <javier@szysz.com>
To: lartc@vger.kernel.org
Subject: [LARTC] IPIP Tunnel Packets not shaped/policed
Date: Sun, 24 Oct 2004 19:44:24 +0000	[thread overview]
Message-ID: <417C0618.2090601@szysz.com> (raw)

Hi,

I've a gateway host (cali), connected to the Internet via ADSL and a PPTP tunnel 
(ppp0). I also have a IPIP tunnel to another host over the Internet (mytun), 
nothing fancy.

This is working perfectly.

But I want to give more priority to the IPIP packets coming OUT of the PPP (PPTP 
connection) interface.  And I can't get this to work.

Class 2:21 is the one with high priority.

FILTERS:

filter parent 2: protocol ip pref 1 fw
filter parent 2: protocol ip pref 1 fw handle 0x1 classid 2:21


CLASS Stats:

class htb 2:21 parent 2:1 prio 1 rate 96Kbit ceil 128Kbit burst 1721b cburst 1762b
  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
  lended: 0 borrowed: 0 giants: 0
  tokens: 218962 ctokens: 168131


As you can see no packets have gone out of this class.

IPTABLES RULES (mangle table):

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

But you can see that iptables is marking the packets correctly (the counters 
were reset at the same time).

So, I'm guessing that the IPIP packets generated by the kernel, are not going 
into the packet scheduling routines.

If someone can point me to the place where this should be occurring, it will be 
great.

Thanks.
Javier
-- 
-=-=-=-=-=-=-=-=-
Javier Szyszlican
javier@^^^^^.com

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

                 reply	other threads:[~2004-10-24 19:44 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=417C0618.2090601@szysz.com \
    --to=javier@szysz.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 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.