D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Setting network bandwidths?

 

Simon Waters wrote:
> Grant Sewell wrote:
>   
>> Err... OK. Is LARTC something that is easily configurable on a single
>>  desktop machine?
>>     
> It is the name of the documentation -- do try a search engine. By and
> large the kernel features required for most things are built in.
>   
Ah, I get it now. ;)
>> I have my mail server and web using apticron already so they do their
>> updating overnight.
>>     
> So something like "apt-proxy" or a caching proxy would presumably avoid
> downloading the same data over the same link again?
>   
Yeah, I could set that up, but the Desktop machine is likely to be the 
only Testing machine on the network (until I can afford a laptop of my 
own... the College's laptop has to be returned shortly), so apt-proxy 
(or any other caching proxy) would be a bit redundant for *this* 
purpose. The web and mail servers (both running Stable) are already 
configured as I want them, and there seems to be very few changes on 
either the Stable or the Security Debian repositories, so setting up a 
caching proxy for this purpose would really be overkill to save myself a 
very small amount of bandwidth in the middle of the night when no-one is 
using my Internet connection anyway. :D
>> Something along the lines of "netrestrict -r 256k 'command'" (a made
>> up command, incidentally) would be ideal.
>>     
> Not seen anything like that. Although I'm sure it is possible. Usually
> by the time the data is in the network layer you've forgotten what the
> source was, and it is often easiest to match it by the destination or
> other network like attribute.
Ah! Just found it. Having trawled the "Networking" category in Synaptic, 
I have found "trickle":
trickle is a userspace bandwidth manager...
$ trickle -u 10 -d 20 ncftp
Launch ncftp(1) limiting its upload capacity to 10 KB/s, and download 
capacity at 20 KB/s.

Sound like it'll do the trick.

Cheers anyway.
Grant.

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html