From: syncmaster4 Date: Sun, 10 Dec 2006 16:55:32 +0000 Subject: [LARTC] traffic shaping vpn (GRE) traffic Message-Id: <8cf5f0480612100855k56470461hdac146e0f2db7757@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1554499315==" List-Id: To: lartc@vger.kernel.org --===============1554499315== Content-Type: multipart/alternative; boundary="----=_Part_83728_1824116.1165769732365" ------=_Part_83728_1824116.1165769732365 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Looking for some advise from the experts out there. We do simple traffice shaping and I'm having trouble figuring out how to shape vpn traffic using a tc filter. The following filter works fine for SSH tc filter add dev eth2 parent 1:0 protocol ip u32 match ip sport 22 0xffff classid 1:10 The following throws and "Illegal match" error when trying to filter GRE traffic. tc filter add dev eth2 parent 1:0 protocol ip u32 \ match ip protocol 47 0xff \ match ip u16 0x10 00ff at 24 \ classid 1:10 Any pointers are greatly appreciated! CentOS 4.4 - 2.6.9-42.0.3.ELsmp Thanks! Craig ------=_Part_83728_1824116.1165769732365 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Looking for some advise from the experts out there.

We do simple traffice shaping and I'm having trouble figuring out how to shape vpn traffic using a tc filter.

The following filter works fine for SSH
tc filter add dev eth2 parent 1:0 protocol ip u32 match ip sport 22 0xffff classid 1:10

The following throws and "Illegal match" error when trying to filter GRE traffic.
tc filter add dev eth2 parent 1:0 protocol ip u32 \
        match ip protocol 47 0xff \
        match ip u16 0x10 00ff at 24 \
        classid 1:10

Any pointers are greatly appreciated!

CentOS 4.4 - 2.6.9-42.0.3.ELsmp

Thanks!
Craig
------=_Part_83728_1824116.1165769732365-- --===============1554499315== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1554499315==--