yotis wrote:

>Eu am folosit cel mai simplu script posibil si tot in clasa default imi 
>intra.
>Folosesc htb_tools-0.2.5
>
>cat /etc/htb/eth0
>  
>
sa inteleg ca eth0 e interfata  locala ?
daca nu degeaba te chinui... pe eth0 trebuie src, bineinteles daca e 
interfata prin care vine teava.

># Beginning of the script
>class net {
>        bandwidth 512;
>        limit 768;
>        burst 2;
>        priority 1;
>
>        client IP52 {
>                bandwidth 16;
>                limit 32;
>                burst 2;
>                priority 1;
>                dst {
>                        xxx.yyy.eee.zzz/32;
>                };
>        };
>};
>
>class default { bandwidth 8; };
>
># End of the script
>
>htb eth0 start
>Applying traffic rules for device eth0
>Checking the config file....OK
>Checking kernel support for HTB: present.
>Delete previous root qdisc
>Add root qdisc
>Add root class
>Add default class
>Add class net, que pfifo limit 5
>Add client IP52
>
>net                                  2.39            1       512       768
> IP52                              2.39            1        16        32
> _DEFAULT_                 17.80          2         8         8
>  
>



--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui