[squid-users] youtube videos and squid

Amos Jeffries squid3 at treenet.co.nz
Fri Jul 7 08:32:15 UTC 2017


On 07/07/17 15:40, Sergei G wrote:
> Hi guys,
> 
> I have a very specific scenario in mind to use squid for.
> 
> I have 2 kids (2.5 and 4 years old) that are watching iPads and really 
> using available Comcast bandwidth.  It does not help that they sometimes 
> just leave those iPads running.
> 
> They tend to re-watch youtube videos (click on the same icon that they 
> liked before).  And that makes me think that squid could help me with 
> caching off youtube content.  Am I correct?

Possibly. Google have actively been making it more difficult every year 
for quite a while.

These days it requires intercepting the YouTube HTTPS connections. That 
is only possible if the clients are not using Chrome or other Google 
apps to fetch the videos - otherwise you run up against the cert pinning 
wall.

After that you need some extra helper software to track the YT video 
fetching process and decipher what the actual video URL is from the mess 
of session traffic. That is being kept a bit of a secret these days, 
since every time G find out how it is being done they change the process 
to make it more obtuse and harder to do :-(

Eliezer has been trying to get a helper for that going most recently. 
There are also some other products I forget the name of right now 
(videobooster maybe), but should be easy to find that cache YouTube content.


> 
> If not then I have no reason to bother you anymore :)
> 
> If squid could help me, then could you point me to a an example 
> configuration that would work?
> 
> As far as hardware I have 2 options:
> 
> 1. I can install squid on a Raspberry PI 3, if package is readily 
> available.  that's my preferred solution.
> 2. I have an old server hardware with more power than RPI 3, but I don't 
> like to run it, because it is noisy.  It has FreeBSD 10 installed and I 
> can upgrade it to latest FreeBSD (11?) and isntall squid application 
> that way.
> 
> 
> Does squid run on RPI3?  FreeBSD?

Yes to both, and at the small scale you need the RPi3 should be able to 
cope with it.

Amos


More information about the squid-users mailing list