Categories: MikroTik

Mikrotik блокировка torrent

/ip firewall layer7-protocol

add comment=»P2P WWW web base cnoetent Matching» name=p2p_www regexp=\
«^.*(get|GET).+(torrent|thepiratebay|isohunt|entertane|demonoid|btjunkie|mininova|flixflux|vertor|h33t|zoozle|bitnova|bitsoup|meganova|fulldls|btbot|fenopy|gpirate|commonbits).*\$»
add comment=»P2P DNS Matching» name=p2p_dns regexp=\
«^.+(torrent|thepiratebay|isohunt|entertane|demonoid|btjunkie|mininova|flixflux|vertor|h33t|zoozle|bitnova|bitsoup|meganova|fulldls|btbot|fenopy|gpirate|commonbits).*\$»

/ip firewall mangle
add action=mark-packet chain=postrouting comment=»p2p download» disabled=no layer7-protocol=p2p_www new-packet-mark=»p2p download» passthrough=no
add action=mark-packet chain=postrouting disabled=no layer7-protocol=p2p_dns new-packet-mark=»p2p download» passthrough=no

/ip firewall filter
add action=drop chain=forward comment=»Block P2p_www Packets» disabled=no layer7-protocol=p2p_www
add action=drop chain=forward comment=»Block P2p_dns Packets» disabled=no layer7-protocol=p2p_dns
add action=drop chain=forward comment=»Block General P2P Connections , default mikrotik p2p colelction / zaib» disabled=no p2p=all-p2p

/ip firewall filter
add action=drop chain=forward comment=»TORRENT No 1: Classic non security torrent» disabled=no p2p=all-p2p
add action=drop chain=forward comment=»TORRENT No 2: block outgoing DHT» content=d1:ad2:id20: disabled=no dst-port=1025-65535 packet-size=95-190 protocol=udp
add action=drop chain=forward comment=»TORRENT No 3: block outgoing TCP announce» content=»info_hash=» disabled=no dst-port=2710,80 protocol=tcp
add action=drop chain=forward comment=»TORRENT No 4: prohibits download .torrent files. » content=»\r\nContent-Type: application/x-bittorrent» disabled=no protocol=tcp src-port=80
add action=drop chain=forward comment=»TORRENT No 5: 6771 block Local Broadcast» content=»\r\nInfohash:» disabled=no dst-port=6771 protocol=udp

admin

Recent Posts

How to back up and restore the ESXi host configuration

Original https://kb.vmware.com/s/article/2042141 Backing up ESXi host configuration data To synchronize the configuration changed with persistent…

12 месяцев ago

vCenter Converter Standalone download

vCenter Converter Standalone 6.6.0 download (далее…)

1 год ago

VMware remote console (VMRC) 12 download

VMware remote console (VMRC) 12.0.5 download Last version: VMware Remote Console 12.0.5  28 NOV 2023…

2 года ago

Mysql calculate row size for all tables

SELECT col_sizes.TABLE_SCHEMA, col_sizes.TABLE_NAME, SUM(col_sizes.col_size) AS EST_MAX_ROW_SIZE FROM ( SELECT cols.TABLE_SCHEMA, cols.TABLE_NAME, cols.COLUMN_NAME, CASE cols.DATA_TYPE WHEN…

2 года ago

Mysql change date format in database

UPDATE DB SET column = DATE(STR_TO_DATE(column, '%Y-%d-%m')) WHERE DATE(STR_TO_DATE(column, '%d-%m-%Y')) <> '0000-00-00'

2 года ago

esxi debian lvm extend partition

echo 1 > /sys/class/block/sda/device/rescan #maybe run under root> sudo fdisk /dev/sda2 > d > 2…

2 года ago