Re: [LARTC] Not proved, fw classifier ?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add a qdisc to class 1:1234 with bandwidth=rate=128Kbit and attach the
tbf to that qdisc.

For fw-filter and other examples : http://users.belgacom.net/staf/

-- 

Staf

More QOS info : http://users.belgacom.net/staf/


johan@xxxxxxxxxxxxxx wrote:
> 
> I had tried this
> #iptables -t mangle -A PREROUTING -p tcp --sport 20 -j MARK --set-mark 1
> 
> #tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell
> 8
> 
> #tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
> 10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
> 
> #tc class add dev eth0 parent 1:1 classid 1:1234 cbq bandwidth 10Mbit rate
> 128Kbit weight 12Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
> bounded isolated
> 
> #tc qdisc add dev eth0 parent 1:1234 tbf rate 128Kbit buffer 10Kb/8 limit
> 15Kb mtu 1500
> 
> #tc filter add dev eth0 parent 1:0 proto ip handle 1 fw classid 1:1234
> 
> And, we tested with ftp, we didn't get result that I would expected.
> 
> any suggest ?
> let me know your example for fw classifier ....
> 
> Best Regards
> 
> Johan
> 
> --
>              -'-
>              (o o)
> ---------ooO--(_)--Ooo-------------------------------------------------
>   (  )/  \( )( ) (  ) ( \( )      Visit us at http://www.pinguind.co.id
>  __)(( () ))__(  /__\  )  (   Feel free to contact me at ICQ  #47240718
> (___/ \__/(_)(_)(_)(_)(_)\_)                 email:johan@xxxxxxxxxxxxxx
> -----------------------------------------------------------------------
> 
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux