Hi, Thanks for the reply. Mohan Sundaram wrote :> mark in iptables and use tc to classify using mark.Mark like this ? iptables -A INPUT -m layer7 --l7proto bittorrent -j MARK --set-mark 3 and then.. tc filter add dev eth0 protocol ip parent 1:0 1 handle 3 fw flowid 1:10 and lets say we have a flowid 1:3 declared to use at 60kbit ceil 60kbit Is that proper ? If so then it doesn''t want to work for me. I can see that layer7 marks the packets but still I can''t control the amount of them... I get a transfer of 100kbit and more... With Kind Regards Matt ---------------------------------------------------- Graczu komputerowy, wybierz najlepsze gry roku! Głosuj i wygrywaj! Patroni medialni: Wirtualna Polska, 4fun.tv, Radiostacja Imperatory7: http://klik.wp.pl/?adr=http%3A%2F%2Fimperatory.wp.pl&sid=30
On Wednesday 19 September 2007 23:06, Mateusz Matusiak wrote:> iptables -A INPUT -m layer7 --l7proto bittorrent -j MARK --set-mark 3 > > and then.. > > tc filter add dev eth0 protocol ip parent 1:0 1 handle 3 fw flowid 1:10 > > and lets say we have a flowid 1:3 declared to use at 60kbit ceil 60kbit > > Is that proper ?with your example above you must use flowid 1:3 at tc filter line. Regards, Daniel PadiNet Makassar
Hi, Daniel wrote : with your example above you must use flowid 1:3 at tc filter line. So it should look like this : iptables -A INPUT -m layer7 --l7proto bittorrent -j MARK --set-mark 3 tc filter add dev eth0 protocol ip parent 1:0 handle 3 fw flowid 1:3 are you sure that it will be the proper one ? Will I need to declare the 1:3 flowid somewhere or will that be ok ? As in this example as above I''m not controlling the speed of download by any factor (where to I speficy the kbit I want to give it?) --regards Matt ---------------------------------------------------- Już 6 października w Warszawie PŚ w Karate Tradycyjnym, tu zwycięstwo samo w sobie nie jest celem ostatecznym... Zobacz więcej -> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fpskarate.html&sid=32