All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mr Ivan Hawkes <blackhawk@ivanhawkes.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] boring question
Date: Fri, 23 Apr 2004 18:08:45 +0000	[thread overview]
Message-ID: <40895BAD.2020902@ivanhawkes.com> (raw)
In-Reply-To: <20040422214238.8E57A44CB@outpost.ds9a.nl>

James wrote:
> folks,
> 
> Sorry to disturb you with such a basic question, but I am new to 
> bandwidth control , shaper etc...  I tried reading some doc about it, 
> but couldn´t apply them to solve my (following problem):
> 
> I have this..
> 
> [internet]------[eth0][linux box][eth1]--------[my lan]
> 
> 
> ADSL (256k)
> eth0: 200.200.200.200    <- ex.
> eth1: 192.168.7.254  lan 192.168.7.0/24
> 
> I want, ex.: that user in my lan (192.168.7.10), ain´t trash my whole 
> bandwidth with kazaa, pop, smtp whatever... so, I want this one to 
> download only 15kps...  
> What could I do ?

Hi James,

since I'm a noob on this list I'll answer the question to save the head 
guys typing.

You have almost the exact same setup as I have, except my Linux box is a 
dedicated Smoothwall which I added QoS to. I'm going to assume you want 
to keep that box as a normal multi-purpose box rather than reformat it 
to Smoothwall :-)

I wrote a set of instructions and a pretty decent script based on 
Wondershaper which will help you. Both are on my webserver at the 
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 
based on the harder to read but more comprehensive stuff held on lartc. 
Now, my adsl-shaper script isn't going to do what you want since I took 
out the IP based stuff since it wasn't relevant to me, so just follow 
the general instructions but use wshaper as your shaping script instead 
since it does support IP based limiting.

You will need to customise the script to get your IP addresses in, but 
basically what you are looking to do is simply put him into his own 
queueing discipline with a max bandwidth limit attached, and let all 
other traffic go through some other qdisc.

It is important to note that this generally works well for outgoing 
traffic but is not particularly effective against incoming traffic since 
that is *pushed* onto your machine and it has no way to control this. If 
your flatmate is maxing your bandwidth with mp3 downloads maybe a quick 
slap might sort him/her out ;->

-- 

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/

  reply	other threads:[~2004-04-23 18:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-22 18:43 [LARTC] boring question James
2004-04-23 18:08 ` Mr Ivan Hawkes [this message]
2004-04-24 23:01 ` Andy Furniss
2004-04-25 13:06 ` Mr Ivan Hawkes
2004-04-26  7:47 ` Andy Furniss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40895BAD.2020902@ivanhawkes.com \
    --to=blackhawk@ivanhawkes.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.