Skip to contentSkip to conversation

Not proved, fw classifier ?

LARTC [email protected] 2 participants 2 messages Apr 26, 2001 – Apr 27, 2001

lore
Share & tools
lore
#0 lore raw

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

Signature · 11 lines
             -'-      
             (o o)     
---------ooO--(_)--Ooo-------------------------------------------------
  (  )/  \( )( ) (  ) ( \( )      Visit us at http://www.pinguind.co.id
 __)(( () ))__(  /__\  )  (   Feel free to contact me at ICQ  #47240718       
(___/ \__/(_)(_)(_)(_)(_)\_)                 email:[email protected]          
-----------------------------------------------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#1 lore raw

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

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

Signature · 3 lines
Staf

More QOS info : http://users.belgacom.net/staf/
Quoted 37 lines · [email protected] 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:[email protected]
-----------------------------------------------------------------------

Quoted 3 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/