Community discussions

MikroTik App
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Googlevideo DNS to Address-list

Sat Sep 12, 2020 6:34 am

Any scripting expert here? I want to fetch a domain named ".googlevideo.com" from DNS to address-list. I saw some scripts here but i am having problems with the cpu running the script. It spikes to 35% and hovers 20-30%. I need it to run every 5-10 seconds.

I am using Mikrotik Hap Ac2.

The processor of this Mikrotik should be able to handle the script.....
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Googlevideo DNS to Address-list

Sat Sep 12, 2020 1:40 pm

The number of IP addresses are limited but the names are "endless".

https://discourse.pi-hole.net/t/how-do- ... be/253/145
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Re: Googlevideo DNS to Address-list

Sun Sep 13, 2020 2:56 am

The number of IP addresses are limited but the names are "endless".

https://discourse.pi-hole.net/t/how-do- ... be/253/145
Yeah currently, there are estimated there 10,000+ googlevideo domain. As of now my solution is using ip blocks where mostly my connection is made.
 
neutronlaser
Member
Member
Posts: 445
Joined: Thu Jan 18, 2018 5:18 pm

Re: Googlevideo DNS to Address-list

Sun Sep 13, 2020 3:43 am

What is your goal?
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Re: Googlevideo DNS to Address-list

Sun Sep 13, 2020 4:40 am

What is your goal?
My goal is to control/limit the bandwidth of streaming youtube then prioritize the browsing.
 
shahjaufar
just joined
Posts: 11
Joined: Mon Aug 19, 2013 9:04 pm

Re: Googlevideo DNS to Address-list

Mon Sep 14, 2020 2:38 am

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googleusercontent.com
Action> Action=Add dst to Address List
Address List=Youtube
----------------------------------------------------------------------------------------------------
Simple as above. No special symbol or character required for hostnames.
This will Add Google Playstore, GMAIL ips to the list too. Not only Youtube.

I believe you know what to do next :)
Tested & working in ROS 6.47.3
Note: you can use "nflxvideo.net" for Netflix
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Re: Googlevideo DNS to Address-list

Mon Sep 14, 2020 2:29 pm

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googleusercontent.com
Action> Action=Add dst to Address List
Address List=Youtube
----------------------------------------------------------------------------------------------------
Simple as above. No special symbol or character required for hostnames.
This will Add Google Playstore, GMAIL ips to the list too. Not only Youtube.

I believe you know what to do next :)
Tested & working in ROS 6.47.3
Note: you can use "nflxvideo.net" for Netflix
I have tried this, it works with the youtube app on the phone / Youtube Vanced. The problem is it does not work with Google Chrome since it uses QUIC Protocol.

Edit: and most of my users uses chrome as their default browsing.
 
shahjaufar
just joined
Posts: 11
Joined: Mon Aug 19, 2013 9:04 pm

Re: Googlevideo DNS to Address-list

Tue Sep 15, 2020 1:01 am

Mark All Packets from Source Address List
Put a simple Queue on Packets for limiting

Works for me on All Chromium Browsers & Apps
 
WeWiNet
Long time Member
Long time Member
Posts: 610
Joined: Thu Sep 27, 2018 4:11 pm

Re: Googlevideo DNS to Address-list

Tue Sep 15, 2020 1:25 pm

Any scripting expert here? I want to fetch a domain named ".googlevideo.com" from DNS to address-list. I saw some scripts here but i am having problems with the cpu running the script. It spikes to 35% and hovers 20-30%. I need it to run every 5-10 seconds.
You won't be able to run such script that often. And I also think it is not needed. Don;t know how much time out these connections have
but I run them every 6 hours only and my lists are long...
Keep in mind over time you get all IP addresses you ever find with such DNS name (you can use time out or not).
I am using Mikrotik Hap Ac2.
The processor of this Mikrotik should be able to handle the script.....
Keep in mind the DNS cache can be quit big. When I run my DNS screening scripts my CPU load also rocks up.
Same CPU as hapac2. This is why I think such script should run less frequent.

If you find a better/fast way to screen DNS cache, I am eager to learn how.
 
easykill
just joined
Posts: 3
Joined: Fri Mar 23, 2018 8:00 pm

Re: Googlevideo DNS to Address-list

Sun Aug 04, 2024 1:32 pm

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube
It's so simple and works so well. Thank you.

Who is online

Users browsing this forum: No registered users and 5 guests