Block Youtube but not with gmail

Hi,

i have hex lite router, i want to block youtube in my LAN but gmail block also with it. please tell me how to block only youtube without blocking google and gmail.

Thanks..
mshahid85

Use L7 Protocol https://www.youtube.com/watch?v=jdg-b2olvY4

No, do not use L7, but TLS Host.

/ip firewall filter
add action=reject chain=forward comment=“block youtube” protocol=tcp reject-with=icmp-network-unreachable tls-host=youtube

Both are not working… any other solution???

try Content instead of TLS-Host

TLS is working, i do use it @ work. Where did you place your rule? do you have matching?

youtube.com or *.youtube.com or youtube

/ip firewall filter
add action=reject chain=forward comment=“block youtube” protocol=tcp reject-with=icmp-network-unreachable tls-host=youtube

i copied and paste on my router, but youtube is still working on my PC…

Maybe fasttrack is active. Perhaps is need to disable fast track to the firewall review the packet again.

Put new created rules on top of firewall list!

wouldn’t a simple dns block work for this case, redirect all dns port 53 requests to your local dns resolver(in case they use any third party dns) and set a static dns to 0.0.0.0 for youtube.com

this rule worked

You can use the 5th method to block YouTube sites on MikroTik