How to block p2p


#1

I’m looking for a tutorial how to block p2p traffic.
Thank you in advance for your help
I tried this but it does not work

A

set firewall name “FIREWALL-IN” rule 100
set firewall name “FIREWALL-IN” rule 100 description “p2p - block 6881-6999”
set firewall name “FIREWALL-IN” rule 100 action drop
set firewall name “FIREWALL-IN” rule 100 protocol tcp_udp
set firewall name “FIREWALL-IN” rule 100 source port 6881-6999

B

set firewall name “FIREWALL-OUT” rule 100
set firewall name “FIREWALL-OUT” rule 100 description “p2p - block 6881-6999”
set firewall name “FIREWALL-OUT” rule 100 action drop
set firewall name “FIREWALL-OUT” rule 100 protocol tcp_udp
set firewall name “FIREWALL-OUT” rule 100 source port 6881-6999