From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Renzmann Date: Sat, 08 May 2004 07:08:58 +0000 Subject: Re: [LARTC] shaping domain names(www.xyz.com) Message-Id: <409C878A.4060008@otaku42.de> List-Id: References: <1083934416.409b86d04f7df@smwp01.maa.sify.net> In-Reply-To: <1083934416.409b86d04f7df@smwp01.maa.sify.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi. Stef Coene wrote: >>You could achieve this by using different firewall marks for the >>different traffic classes, and shape upon that marks. IIRC there is an >>iptables-extension available that allows to match strings, so you could >>try to match "Host: " in order to distinguish the different >>domains. But I have no idea if this would work in real world, nor what >>performance impact that may have. > Only one problem. Tc sees ip packets and ip packets contains ip addresses, > not hostnames. So you can't do this. But tc sees the fwmark value that iptables has attached to a packet, right? Hence the idea to accomplish the "destination host distinction" with iptables-rules, setting fwmark accordingly and let tc decide on the different fwmark values. Bye, Mike _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/