Bandwidth by port

Linux Advanced Routing and Traffic Control

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

 



Hi

I am trying to limit the bandwidth by port buy without success.

The code is :

# Disciplina de encolamiento
tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000 mpu 64

# Clase
tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 1kbps rate 1kbps allot 1514 prio 1 maxburst 10 avpkt 100 bounded isolated

# Filtro
# tc filter add dev eth1 parent 10:0 protocol ip handle 3 fw classid 10:1

tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst 0.0.0.0 match ip sport 20 0xffff flowid 10:1
tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst 0.0.0.0 match ip sport 21 0xffff flowid 10:1

What am i making bad? I have probed with mark&iptables but with identical result. When i make ftp i download without band limit.

Thanks and regards
David Coello




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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