From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Fri, 07 May 2004 18:14:53 +0000 Subject: Re: [LARTC] shaping domain names(www.xyz.com) Message-Id: <200405072014.53623.stef.coene@docum.org> 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Friday 07 May 2004 15:37, Michael Renzmann wrote: > Hi. > > jayesh rathod wrote: > > Is there any way by which we can shape domain name(not by IP address) > > Eg : suppose i want to shape tarrif to a particular domain www.xyz.com > > > > which has multiple ips and i am not aware of there ips > > 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,= =20 not hostnames. So you can't do this. But I suppose you want to shape http / ftp? You can try to setup a squid=20 transparant proxy server and if I'm not mistaken, you can patch squid so yo= u=20 can use tc to shape the squid traffic. Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/