From: zytek Date: Tue, 07 Sep 2004 11:08:55 +0000 Subject: Re: [LARTC] HTB problem... Message-Id: <200409071308.55956.zytek-lists@ostrow-wlkp.net> List-Id: References: <001301c4945c$53c79f70$6e1464ab@palle> In-Reply-To: <001301c4945c$53c79f70$6e1464ab@palle> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Dnia poniedzia=B3ek 06 wrzesie=F1 2004 23:56, Cow napisa=B3: > Hi folks. > > Let's say I would like to make some bandwidth control on my network > using HTB. I have 2 clients: [...] > I think a script as i described, could be very complex to write, > therefore i ask, whoever is here, for help. > Thank you all in advance. Hello all, my first post here, maybe even I will help someone;) I assume that you want somethink like: data from server to LAN (PC1,PC2) unshaped (full 100mbit) data from Internet to LAN shaped Then all you need to do is make classes with source 192.168.0.1 and=20 destination 192.168.0.2(3) and 100mbit rate and then make classes with=20 destination 192.168.0.2(3) with download rate. I believe that you understan= d=20 what I am thinkig of. Or you can use iptables and mark traffic going from server to LAN, and othe= r=20 mark for traffic in FORWARD chain. (iptables -t mangle -A FORWARD -j MARK=20 --set-mark SOME_MARK) When using iptables you will be able to shape upload speed, just mark traff= ic=20 in forward going from PC1/2 with output interface eth2 (-o eth2) - it will = be=20 hosts upload. I won't write you full script, make it yourself, visit LARTC and firstly tr= y=20 "htb.init" for simple class creation. Good fun! --=20 .: Jakub G=B3azik (zytek) .: email:zytek@ostrow-wlkp.net .: JID:zytek@azazel.ostrow-wlkp.net .: http://www.misiaj.sie.pl [obsolete] _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/