Setup guide

all-p2p - match all known P2P traffic
any - match any packet (i.e., do not check this property)
mark-flow (text; default: "") - change flow mark of the packet to this value
mark-connection (text; default: "") - change connection mark of the packet to this value
Traffic Filtering
ip firewall
Description
RouterOS gives you ability to filter out traffic generated by P2P networks.
Property Description
p2p (any | all-p2p | bit-torrent | direct-connect | fasttrack | soulseek | blubster | edonkey | gnutella;
default: any) - match Peer-to-Peer (P2P) connections:
all-p2p - match all known P2P traffic
any - match any packet (i.e., do not check this property)
flow (text) - flow mark to match. Only packets marked in the MANGLE would be matched
connection (text; default: "") - connection mark to match. Only connections (including related)
marked in the MANGLE would be matched
jump-target (name) - name of the target chain, if the action=jump is used
action (accept | drop | jump | passthrough | reject | return; default: accept) - ation to undertake if
the packet matches the rule, one of the:
accept - accept the packet. No action, i.e., the packet is passed through without undertaking any
action, except for mangle, and no more rules are processed in the relevant list/chain
drop - silently drop the packet (without sending the ICMP reject message)
jump - jump to the chain specified by the value of the jump-target argument
passthrough - ignore this rule, except for mangle, go on to the next one. Acts the same way as
a disabled rule, except for ability to count and mangle packets
reject - reject the packet and send an ICMP reject message
return - return to the previous chain, from where the jump took place
Traffic Limiting
queue
Description
You can limit peer-to-peer traffic to a given amount of Kbits per second or give it lower priority
than, for example HTTP traffic.
It is also possible to prioritize small file downloading over large ones using queue bursts.