how block connection of p2p?

how block connection of p2p?

wiki.mikrotik.com

and read the manual.

Do the next…

IP → FIREWALL

add a new rule with this parameter:

1.- P2P : ALL
2.- PANEL ACTION: DROP

This rule must block all p2p connection

you have to put that rule in the “forward chain”.

/ip firewall filter add chain=forward p2p=all-p2p action=drop

Hi ;
i just put this rule in the firewall and i will monitor who will complain and from what .
during that how can i know all the list of p2p to check if this rule blocking them or not .
with best regards .

thanks mr. normis.
but i want to ask you some questions and also i want you to reply by quick examples

  1. how can i block downloading specific files like mp3 by using mikrotik firewall ???
  2. how can i block a certain sites from its ip or its domain name ???
    thanks alot :laughing:

Hi ;
as i know that you could block the access and the download for any type of files and url by using the web proxy .
because in web-proxy cache you will only block doing cache to the .mp3 files or any other type or url will be added to the cache table .
by adding what you need to block to the access list and use deny for them then the MT will block them .
for example to block the downloading of .mp3 fles , use the following :
/ ip web-proxy access
add src-address=!xxx.xxx.xxx.0/24 url=“\.mp3$” action=deny comment=“”
disabled=no
add dst-port=23-25 action=deny comment=“block telnet & spam e-mail relaying”
disabled=no
add src-address=!xxx.xxx.xxx.0/24 action=allow comment=“” disabled=no

these lines will block all you from accessing the mp3 files and the telnet & spam e-mail .
will be waiting Norims feedback about how to block the download from the firewall .

by theway , last night i add the rule to block the p2p and after that i installed lime wire to my pc , i start using it and made a download from it while the rule was reading dropped packates .
i think this rule should stop lime wire 100% , ??? :confused:
waiting your reply eagerly .
with best regards .