tc download always to "default"

NoOp glgxg at sbcglobal.net
Mon Mar 22 18:29:33 UTC 2010


On 03/22/2010 03:43 AM, Mihamina Rakotomandimby wrote:
> Manao ahoana, Hello, Bonjour,
> 
> This is my simple topology:
> 
>   LAN <--> (eth1)[gateway](eth2) <--> Internet
> 
> The gataway NATs (Masquerade) but there is no trouble about this.
> 
> I would like to limit the DOWNLOAD bandwidth per host.
> Download is:
> 
>   Internet -> gateway -> eth1 -> LAN Host
> 
> LAN is 10.150.0.128/25
> 
> There are sample lines of my "tc" ruleset: 
> http://pastebin.org/119806
> 
> 
> My problem is all the traffic is caught by "classid 1:10", the default
> class.
> 
> Nothing is trapped by "classid 1:301" -> "classid 1:426"
> 
> At a first glance, would you see something wrong in these?
> 
> Misaotra, Thanks, Merci.
> 

I know nothing of the above. However there is a way to limit the
download on each machine during updates (which was driving my poor
1.5Mb/sec DSL link to saturation)[1]. I put the following in a file
named apt.conf and then put the file in /etc/apt/apt.conf on each machine:

> //---------------------------
> // Options for limiting Update Manager download speeds
> Acquire
> {
> Queue-Mode "access";       // host|access
> http
> {
> Dl-Limit "100";        // 100Kb/sec maximum download rate
> };
> };
> //--------------------------

The Dl-Limit can of course be modified to suit your needs.

[1] <https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/193558>
[[Wishlist] Include limit-rate bandwidth option]





More information about the ubuntu-users mailing list