Community discussions

MikroTik App
 
mshahid85
newbie
Topic Author
Posts: 31
Joined: Thu Mar 01, 2018 12:19 pm

Block Youtube but not with gmail

Thu Jul 11, 2019 12:24 pm

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
 
User avatar
ingdaka
Trainer
Trainer
Posts: 452
Joined: Thu Aug 30, 2012 3:06 pm
Location: Albania
Contact:

Re: Block Youtube but not with gmail

Thu Jul 11, 2019 12:44 pm

 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Block Youtube but not with gmail

Thu Jul 11, 2019 12:53 pm

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*
 
mshahid85
newbie
Topic Author
Posts: 31
Joined: Thu Mar 01, 2018 12:19 pm

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 8:48 am

Both are not working................. any other solution????
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 1:07 pm

try Content instead of TLS-Host
Last edited by nichky on Mon Jul 15, 2019 1:37 pm, edited 1 time in total.
 
User avatar
evince
Member
Member
Posts: 355
Joined: Thu Jul 05, 2012 12:11 pm
Location: Harzé - Belgique
Contact:

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 1:28 pm

TLS is working, i do use it @ work. Where did you place your rule? do you have matching?
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 1:38 pm

youtube.com or *.youtube.com or *youtube*
 
mshahid85
newbie
Topic Author
Posts: 31
Joined: Thu Mar 01, 2018 12:19 pm

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 4:10 pm

/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.........
 
ChristopherFS
just joined
Posts: 10
Joined: Sun Jul 14, 2019 5:50 pm

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 8:00 pm

Maybe fasttrack is active. Perhaps is need to disable fast track to the firewall review the packet again.
 
User avatar
ingdaka
Trainer
Trainer
Posts: 452
Joined: Thu Aug 30, 2012 3:06 pm
Location: Albania
Contact:

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 8:14 pm

Put new created rules on top of firewall list!
 
td32
Member Candidate
Member Candidate
Posts: 111
Joined: Fri Nov 18, 2016 5:55 am

Re: Block Youtube but not with gmail

Mon Jul 15, 2019 9:22 pm

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
 
Munawar
just joined
Posts: 2
Joined: Thu Jul 23, 2020 10:53 am

Re: Block Youtube but not with gmail

Mon Aug 31, 2020 1:41 pm

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*
this rule worked
 
teknolalat
just joined
Posts: 1
Joined: Fri Jun 18, 2021 6:14 pm

Re: Block Youtube but not with gmail

Fri Jun 18, 2021 6:54 pm

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

Who is online

Users browsing this forum: GoogleOther [Bot] and 15 guests