asta era problema. multumesc mult pare sa mearga!
raman dator!
O zi buna ,
Ionut

At 13:50 16.02.2005, you wrote:
>Ionut Diaconu said the following on 02/16/05 13:49:
> > deci io vreau sa limitez downlodurile de pe net. nu as vrea sa limitez 
> insa
> > transferul in intranet.
> > eth0 este interfata externa (82.79.23.X)(iesirea la internet)
> > eth1 este interfata interna (192.168.0.1)
>
>ca sa limitezi download-urile trebuie sa pui pe eth1. poti face shaping
>numai pe ce 'iasa' din interfata nu si pe ce intra
>
> >
> >   tc -s filter show dev eth0
> > filter parent 1: protocol ip pref 1 u32
> > filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
> > filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800
> > bkt 0 flowid 1:111
> >    match c0a80014/ffffffff at 16
> > filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800
> > bkt 0 flowid 1:112
> >    match c0a80060/ffffffff at 16
> > filter parent 1: protocol ip pref 1 u32 fh 800::802 order 2050 key ht 800
> > bkt 0 flowid 1:113
> >    match c0a800c9/ffffffff at 16
> >
> >
> >
> > At 13:41 16.02.2005, you wrote:
> >
> >>On Wed, 16 Feb 2005, Ionut Diaconu wrote:
> >>
> >>
> >>>merci pt raspuns.
> >>>am scos
> >>>
> >>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>192.168.0.20 flowid 1:1
> >>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>192.168.0.96 flowid 1:1
> >>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>192.168.0.201 flowid 1:1
> >>>
> >>>dupa cum mi-ai spus insa tot nu intra in functiune filtrele.  ;-(
> >>
> >>eth0 este spre reteaua interna, da?
> >>"tc -s filter show dev eth0" ce zice?
> >>
> >>
> >>>
> >>>At 13:25 16.02.2005, you wrote:
> >>>
> >>>>>Buna ziua,
> >>>>
> >>>>Buna.
> >>>>
> >>>>
> >>>>>Am scris urmatorul script si problema mea este ca nu se face limitarea.
> >>>>>Indiferent de pe ce calculator downlodez shi io ceva merge folosind 
> banda
> >>>>>intreaga. Filtrul parca nici nu ar exista.
> >>>>>Multumesc pt sugestii si ajutor.
> >>>>>
> >>>>>#setup root
> >>>>>tc qdisc del dev eth0 root
> >>>>>tc qdisc add dev eth0 root handle 1: htb default 99
> >>>>>#root class
> >>>>>tc class add dev eth0 parent 1: classid 1:1 htb rate 320Kbit ceil 
> 320Kbit
> >>>>>#default class
> >>>>>tc class add dev eth0 parent 1:1 classid 1:99 htb rate 320Kbit ceil
> >>
> >>320Kbit
> >>
> >>>>OK.
> >>>>
> >>>>
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.20 flowid 1:1
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.96 flowid 1:1
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.201 flowid 1:1
> >>>>
> >>>>Astea, scoate-le.
> >>>>
> >>>>
> >>>>>#calc1
> >>>>>tc class add dev eth0 parent 1: classid 1:111 htb rate 1Kbit ceil 3Kbit
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.20 flowid 1:111
> >>>>>
> >>>>>
> >>>>>#calc2
> >>>>>tc class add dev eth0 parent 1: classid 1:112 htb rate 100kbit ceil
> >>
> >>320kbit
> >>
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.96 flowid 1:112
> >>>>>
> >>>>>
> >>>>>#calc3
> >>>>>tc class add dev eth0 parent 1: classid 1:113 htb rate 200kbit ceil
> >>
> >>320kbit
> >>
> >>>>>tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst
> >>>>>192.168.0.201 flowid 1:113
> >>>>
> >>>>Asta e tot.
> >>>>
> >>>>---
> >>>>Catalin(ux aka Dino) BOIE
> >>>>catab at deuroconsult.ro
> >>>>http://kernel.umbrella.ro/
> >>>>
> >>>>---
> >>>>Detalii despre listele noastre de mail: http://www.lug.ro/
> >>>
> >>>
> >>>---
> >>>Detalii despre listele noastre de mail: http://www.lug.ro/
> >>>
> >>>
> >>
> >>---
> >>Catalin(ux aka Dino) BOIE
> >>catab at deuroconsult.ro
> >>http://kernel.umbrella.ro/
> >>
> >>---
> >>Detalii despre listele noastre de mail: http://www.lug.ro/
> >
> >
> >
> > ---
> > Detalii despre listele noastre de mail: http://www.lug.ro/
> >
> >
> >
>
>
>--
>Dan Candea
>Does God Play Dice?
>0xD9241077 at pgp.mit.edu
>http://www.e-bizz.ro
>
>
>
>---
>Detalii despre listele noastre de mail: http://www.lug.ro/


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


Raspunde prin e-mail lui