Bloquear Youtone-Facebook-En Mikrotik

Descargar como docx, pdf o txt
Descargar como docx, pdf o txt
Está en la página 1de 6

/ip firewall layer7-protocol

add name=facebook regexp="^.+(facebook.com|www.facebook.com|m.facebook.com|apps.facebook.com|


login.facebook.com|fb.com).*\$"
add name=youtube regexp=\
"^.+(youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|
youtube.l.google.com|i.google.com|googlevideo.com|youtu.be).*\$"
add name=instagram regexp="^.+(instagram.com|www.instagram.com|api.instagram.com).*\$"
add name=snapchat regexp="^.+(snapchat.com|www.snapchat.com|app.snapchat.com).*\$"

/ip firewall filter


add action=drop chain=forward layer7-protocol=youtube src-address=192.168.48.0/22
add action=drop chain=forward layer7-protocol=snapchat src-address=192.168.48.0/22
add action=drop chain=forward layer7-protocol=facebook src-address=192.168.48.0/22
add action=drop chain=forward layer7-protocol=instagram src-address=192.168.48.0/22

/ip firewall layer7-protocol

add name=Facebook regexp="^.+(facebook).*\$"

/ip firewall layer7-protocol

add name=YouTube \

regexp="^.+(youtube.com|youtu.be).*\$"
/ip firewall filter

add comment="Analisis TCP" \

chain=forward \

protocol=tcp \

dst-port=80,443 \

connection-bytes=0-100000 \

action=jump jump-target=analisis_layer7

/ip firewall filter

add comment="Analisis UDP" \

chain=forward \

protocol=udp \

dst-port=80,443 \

connection-bytes=0-100000 \

action=jump jump-target=analisis_layer7

/ip firewall filter


add comment="Bloquear Facebook" \

chain=analisis_layer7 \

protocol=tcp \

layer7-protocol=Facebook \

action=reject reject-with=tcp-reset

/ip firewall filter

add comment="Bloquear YouTube" \

chain=analisis_layer7 \

layer7-protocol=YouTube \

action=reject reject-with=icmp-admin-prohibited

QoS Calidad de Servicio

/ip firewall mangle

add comment="Marcar conexiones de YouTube" \


chain=forward \

connection-mark=no-mark \

layer7-protocol=YouTube \

action=mark-connection \

new-connection-mark=mc_youtube \

passthrough=yes

/ip firewall mangle

add comment="Marcar paquetes de YouTube" \

chain=forward \

connection-mark=mc_youtube \

action=mark-packet \

new-packet-mark=mc_youtube \

passthrough=no

/queue simple

add name="No Vas A Ver YouTube, No" \

target="" \
packet-marks=mc_youtube \

max-limit=1k/1k

/ip firewall mangle

add comment="Marcar conexiones de Facebook" \

chain=forward \

connection-mark=no-mark \

layer7-protocol=Facebook \

action=mark-connection \

new-connection-mark=mc_facebook \

passthrough=yes

/ip firewall mangle

add comment="Marcar paquetes de Facebook" \

chain=forward \

connection-mark=mc_facebook \

action=mark-packet \

new-packet-mark=mc_facebook \
passthrough=no

/queue simple

add name="No Vas A Ver Facebook, No" \

target="" \

packet-marks=mc_facebook \

max-limit=1k/1k

También podría gustarte