I have a routerOS set up with NAT, and I've been able to do simple blocking by port. I was hoping to be able to detect and block (or ideally, throttle) P2P protocols, and I started with BitTorrent.
I've added a rule
/ip firewall filter
add chain=forward p2p=all-p2p action=drop
I tested this with a default install of Transmission BitTorrent client (running under Ubuntu) on a machine on the subnet, but it still seems to operate normally even with the firewall rule in place. I noticed that the docs said that p2p filtering doesn't work with encrypted BitTorrent, and that Transmission is set to prefer encryption, so I'm presuming this is the cause.
Is there any way around this, or are encrypted BitTorrent packets such that there's no reliable way of identifying them as BitTorrent? Should I be looking at the layer 7 filtering, or is that a waste of time for this?