Here’s the approach that I learned….
1. mark the P2P connection in pre-routing
2. mark the P2P packets in pre-routing.
3. set up a simple queue to limit the flow of those packets….
/ ip firewall mangle
add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=p2p-conn passthrough=yes \
comment="Mark p2p connections" disabled=no
add chain=prerouting connection-mark=p2p-conn action=mark-packet new-packet-mark=P2P passthrough=no \
comment="Mark Packets as P2P" disabled=no
Then, set up a queue (in the #1 position of all your simple queue’s) to limit the packets with the P2P packet mark.
However, as I understand it there are work arounds that P2P users can employ to avoid these efforts….
Then separately you can also limit the total number of connections that each user is allowed to sustain.
Thanks a lot to everyone,
This p2p is killing my wireless network!
1. Can i somehow make some rule on mikrotik that will do the following thing:
let's say i want only 2 mbps of the entire network to go to p2p,and the rest to other protocols?
2. [admin@concentrator] > queue simple add name="user" interface=pppoe-nick packe
t-marks=p2p limit-at=64/64 disabled=no
i use this queue to limit p2p by username,but when that user reconnect, queue for that user say: "interface=all not pppoe-username" and i always must create new queue for that user to limit his/her p2p traffic again and again....Can i somehow bind limit to dynamic queues?
all my queues are dynamic assigned by radius server on linux expect p2p filter.
i don't know what i'm doing wrong?
Thanks!