From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mr Ivan Hawkes Date: Fri, 23 Apr 2004 18:08:45 +0000 Subject: Re: [LARTC] boring question Message-Id: <40895BAD.2020902@ivanhawkes.com> List-Id: References: <20040422214238.8E57A44CB@outpost.ds9a.nl> In-Reply-To: <20040422214238.8E57A44CB@outpost.ds9a.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org James wrote: > folks, >=20 > Sorry to disturb you with such a basic question, but I am new to=20 > bandwidth control , shaper etc... I tried reading some doc about it,=20 > but couldn=B4t apply them to solve my (following problem): >=20 > I have this.. >=20 > [internet]------[eth0][linux box][eth1]--------[my lan] >=20 >=20 > ADSL (256k) > eth0: 200.200.200.200 <- ex. > eth1: 192.168.7.254 lan 192.168.7.0/24 >=20 > I want, ex.: that user in my lan (192.168.7.10), ain=B4t trash my whole=20 > bandwidth with kazaa, pop, smtp whatever... so, I want this one to=20 > download only 15kps... =20 > What could I do ? Hi James, since I'm a noob on this list I'll answer the question to save the head=20 guys typing. You have almost the exact same setup as I have, except my Linux box is a=20 dedicated Smoothwall which I added QoS to. I'm going to assume you want=20 to keep that box as a normal multi-purpose box rather than reformat it=20 to Smoothwall :-) I wrote a set of instructions and a pretty decent script based on=20 Wondershaper which will help you. Both are on my webserver at the=20 following address: http://www.ivan.hawkes.tv/contentitem.aspx?idY&ciid@2 There are a couple of easy to follow articles there which I put together=20 based on the harder to read but more comprehensive stuff held on lartc.=20 Now, my adsl-shaper script isn't going to do what you want since I took=20 out the IP based stuff since it wasn't relevant to me, so just follow=20 the general instructions but use wshaper as your shaping script instead=20 since it does support IP based limiting. You will need to customise the script to get your IP addresses in, but=20 basically what you are looking to do is simply put him into his own=20 queueing discipline with a max bandwidth limit attached, and let all=20 other traffic go through some other qdisc. It is important to note that this generally works well for outgoing=20 traffic but is not particularly effective against incoming traffic since=20 that is *pushed* onto your machine and it has no way to control this. If=20 your flatmate is maxing your bandwidth with mp3 downloads maybe a quick=20 slap might sort him/her out ;-> --=20 http://www.ivanhawkes.com | ICQ: 173-392-038 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/