Skip to contentSkip to conversation

bittorrent traffic...

LARTC Mateusz Matusiak 2 participants 3 messages Sep 19, 2007 – Sep 23, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

Thanks for the reply.

Quoted 1 line · Mohan Sundaram

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&sid0

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 9 lines · Mateusz Matusiak

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
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Mateusz Matusiak

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&sid2

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc