0% found this document useful (0 votes)
304 views1 page

Block Whatsapp Con MikroTik

The document describes how to automatically block WhatsApp traffic on a MikroTik router by creating a scheduler script that identifies DNS entries for WhatsApp domains and adds their IP addresses to a firewall address list. It then provides examples of firewall filter rules to drop or redirect traffic to the WhatsApp address list to block the traffic.

Uploaded by

Álvarez Marco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
304 views1 page

Block Whatsapp Con MikroTik

The document describes how to automatically block WhatsApp traffic on a MikroTik router by creating a scheduler script that identifies DNS entries for WhatsApp domains and adds their IP addresses to a firewall address list. It then provides examples of firewall filter rules to drop or redirect traffic to the WhatsApp address list to block the traffic.

Uploaded by

Álvarez Marco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

La opci�n muy potente para t�!

Mikrotik crear� un nuevo Scheduler y pondr� autom�tica


todos los DNS de Whatsapp en Address-List de MikroTik!!

*****COPY********

/system scheduler
add comment="Whatsapp Blocker" interval=2m name="Whatsapp Blocker" on-event="#\
\_Use DNS Entrys and add Address to the Firewall Address-list #\r\
\n:foreach i in=[/ip dns cache all find where (name~\"whatsapp\") && (type\
=\"A\") ] do={\r\
\n :local tmpAddress [/ip dns cache get \$i address];\r\
\ndelay delay-time=10ms\r\
\n# prevent script from using all cpu time #\r\
\n :if ( [/ip firewall address-list find where address=\$tmpAddress] = \
\"\") do={ \r\
\n :local cacheName [/ip dns cache get \$i name] ;\r\
\n :log info (\"added entry: \$cacheName \$tmpAddress\");\r\
\n /ip firewall address-list add address=\$tmpAddress list=Whatsapp co\
mment=\$cacheName;\r\
\n}\r\
\n}" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
start-time=startup

*****FIN********

Ahora debes Crear una nueva Firewall Filter Rule para que tenga efecto!

/ip firewall filter


add chain=forward action=drop dst-address-list=Whatsapp disabled=no
comment="Whatsapp Blocker"

Cuando tu Red es un Hotspot:

/ip firewall filter


add chain=forward action=jump jump-target=hs_whatsapp_filter dst-address-
list=Whatsapp comment="JUMP TO hs_whatsapp_filter " disabled=no
add chain=hs_whatsapp_filter action=drop comment="ACTION = DROP WHATSAPP"
disabled=no

Fuente: http://forum.mikrotik.com/

Editado by: Rodrigo Anrrango


http://configurarmikrotikwireless.com/

You might also like