like many of you, we have a rather annoying problem with clients using various P2P programs to download movies and so on.
We have set up queues so that P2P is limited to very little but I find that the upload speed of some clients is still fairly high and the number of connections is also very high.
My question is: is it possible to limit the number of connections per client? if so could anybody tell me how?
All our clients TX and RX rates are already limited.
You can limit numbers of TCP connections, but you need to be careful, that p2p client can generate a lot of connections, and other traffic HTTP, etc. might not work correctly.
I’ve tested the example above, and 18 of 18 of my routers (mainly RB532 and 112), and it seems working as follow:
the packets are dropped correctly (max. f.e. 20 connections)
after 3-4 days the complete connection is dropped.
It means that f.re. there is no DNS service available for the client, ping goes out to the world but http://www.mikrotik.com can not be displayed on the WEB, only if he writes IP address.
when I limiting connections number I do it onlu for ports >1024
of course there is always someone who will try to download an iso image wift 100 or more simultaneous connections but is rare.
and of course it’s good that default value for tcp-established-timeout is 1day not like in other linux distributions 5day’s