From: Gafton Claudiu Date: Thu, 22 Jun 2006 23:54:24 +0000 Subject: Re: [LARTC] TC using vlan interface Message-Id: <20060622235424.66777.qmail@web53514.mail.yahoo.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1614768024==" List-Id: References: <00e801c69608$127b67e0$0900fe0a@LucianoNotebook> In-Reply-To: <00e801c69608$127b67e0$0900fe0a@LucianoNotebook> To: lartc@vger.kernel.org --===============1614768024== Content-Type: multipart/alternative; boundary="0-200280260-1151020464=:64926" Content-Transfer-Encoding: 8bit --0-200280260-1151020464=:64926 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit How it'll work for 150kpps ? I think the solution is hashing filters and this can't be done with iptables -j CLASSIFY ... i think ! PS Does anyone use IFB insted of IMQ ? Torsten Luettgert wrote: On Fri, 2006-06-23 at 01:17 +0300, Radu Oprisan wrote: > Torsten Luettgert wrote: > > On Thu, 2006-06-22 at 11:28 -0300, Luciano wrote: > > > Let me explain... > Due to the fact that vlan id's add some 4 bytes to the header of the > packet, tc filter does not work properly unless you feed it with an > offset and a hex match. I use 801.q and TC with iptables and tc filter > rules based on iptables mark with great success. I admit it is more > complicated this way, but it works... > > iptables -A FORWARD -t mangle -d xxx.xxx.xxx.xxx -j MARK --set-mark 12 > iptables -A FORWARD -t mangle -d xxx.xxx.xxx.xxx -j RETURN Oh, I see. Didn't ever think of those problems, because I never use tc filters. My setup would look like iptables -t mangle -A FORWARD -d x.y.z.t -j CLASSIFY --set-class 10:112 which removes a bit of the complexity. Regards, Torsten _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc signature ----- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=Z2FmdHk%3D __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --0-200280260-1151020464=:64926 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
How it'll work for 150kpps ? I think the solution is hashing filters and this can't be done with iptables -j CLASSIFY ... i think !
 
PS
Does anyone use IFB insted of IMQ ?
 


Torsten Luettgert <t.luettgert@pressestimmen.de> wrote:
On Fri, 2006-06-23 at 01:17 +0300, Radu Oprisan wrote:
> Torsten Luettgert wrote:
> > On Thu, 2006-06-22 at 11:28 -0300, Luciano wrote:
> >
> Let me explain...
> Due to the fact that vlan id's add some 4 bytes to the header of the
> packet, tc filter does not work properly unless you feed it with an
> offset and a hex match. I use 801.q and TC with iptables and tc filter
> rules based on iptables mark with great success. I admit it is more
> complicated this way, but it works...
>
> iptables -A FORWARD -t mangle -d xxx.xxx.xxx.xxx -j MARK --set-mark 12
> iptables -A FORWARD -t mangle -d xxx.xxx.xxx.xxx -j RETURN

Oh, I see. Didn't ever think of those problems, because I never
use tc filters. My setup would look like

iptables -t mangle -A FORWARD -d x.y.z.t -j CLASSIFY --set-class 10:112

which removes a bit of the complexity.

Regards,
Torsten

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



signature
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=Z2FmdHk%3D

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com --0-200280260-1151020464=:64926-- --===============1614768024== 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 --===============1614768024==--