Bloquear Youtone-Facebook-En Mikrotik
Bloquear Youtone-Facebook-En Mikrotik
Bloquear Youtone-Facebook-En Mikrotik
add name=YouTube \
regexp="^.+(youtube.com|youtu.be).*\$"
/ip firewall filter
chain=forward \
protocol=tcp \
dst-port=80,443 \
connection-bytes=0-100000 \
action=jump jump-target=analisis_layer7
chain=forward \
protocol=udp \
dst-port=80,443 \
connection-bytes=0-100000 \
action=jump jump-target=analisis_layer7
chain=analisis_layer7 \
protocol=tcp \
layer7-protocol=Facebook \
action=reject reject-with=tcp-reset
chain=analisis_layer7 \
layer7-protocol=YouTube \
action=reject reject-with=icmp-admin-prohibited
connection-mark=no-mark \
layer7-protocol=YouTube \
action=mark-connection \
new-connection-mark=mc_youtube \
passthrough=yes
chain=forward \
connection-mark=mc_youtube \
action=mark-packet \
new-packet-mark=mc_youtube \
passthrough=no
/queue simple
target="" \
packet-marks=mc_youtube \
max-limit=1k/1k
chain=forward \
connection-mark=no-mark \
layer7-protocol=Facebook \
action=mark-connection \
new-connection-mark=mc_facebook \
passthrough=yes
chain=forward \
connection-mark=mc_facebook \
action=mark-packet \
new-packet-mark=mc_facebook \
passthrough=no
/queue simple
target="" \
packet-marks=mc_facebook \
max-limit=1k/1k