There is a client on my wan that wants to do p2p. I am able to limit him to 64kb/s with qeue’s but want to make his p2p even slower like 16kb/s or 8kb/s
Is there a way to make p2p so slow that it barely cant work. Im thinking about QoS but will that work? Then i can set p2p to low priority.
Chupaka
December 25, 2009, 3:40pm
2
add two subqueues to that queue, one for p2p (with priority=8), another one for all the rest (with priority=1).
then, in Firewall Mangle, mark all p2p packes (p2p=all) and send them to p2p subqueue
Thank you i have aleady that setup. I have found a way to limit p2p to any number of bits you would like.
Under “Simple Queue ” click on “Total” tab and put in any desired value in “Total Limit At” field.
I have made mine 2000 bits/s. The torrent speeds does not exceed 1kb and that is one way to stop people from abusing your connection.
Here is how it looks in putty. PS: Look at the P2P queue.
[admin@Hannes] /queue simple> print
Flags: X - disabled, I - invalid, D - dynamic
0 name="main" target-addresses=192.168.10.2/32 dst-address=0.0.0.0/0
interface=all parent=none direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=128k/128k
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
1 name="http" dst-address=0.0.0.0/0 interface=all parent=main
packet-marks=http direction=both priority=1
queue=default-small/default-small limit-at=0/0 max-limit=128k/128k
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
2 name="p2p" dst-address=0.0.0.0/0 interface=all parent=main
packet-marks=p2p direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=64k/64k
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small total-limit-at=2k total-max-limit=2k
3 name="other" dst-address=0.0.0.0/0 interface=all parent=main
packet-marks=other direction=both priority=4
queue=default-small/default-small limit-at=0/0 max-limit=128k/128k
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
[admin@Hannes] /queue simple>