Youtube content getting filtered on Squid
-
Youtube's content gets filtered by its SafeSearch headers even though I have selected None on youtube restrictions section on ACL tab of Squid settings.
So after digging a bit I found that its header was getting added on with
none
value and youtube was filtering content on web.I have also found the solution by changing its underlying xml file
squid_nac.xml
here I changed the value from none to empty.Can anyone confirm this that they are also facing this issue. You can use this youtube video as reference. Link
-
@themaharshpatel I am also, I get the blocked by administrator error for some YouTube videos. This is with or without the restrictions turned on in Squid. I have them turned on for my family, again some university lectures are getting blocked and when I disable the restrictions it still is blocked by administrator.
-
So can you trying this fix?
/usr/local/pkg/squid_nac.xml
you need to edit this file.and change this
<fieldname>youtube_restrict</fieldname> <type>select</type> <options> <option><name>None</name><value>none</value></option> <option><name>Moderate</name><value>moderate</value></option> <option><name>Strict</name><value>strict</value></option> </options>
to this
<fieldname>youtube_restrict</fieldname> <type>select</type> <options> <option><name>None</name><value></value></option> <option><name>Moderate</name><value>moderate</value></option> <option><name>Strict</name><value>strict</value></option> </options>
and restart your squid. If works than do let me know. I will open an issue on Redmine.
-
@themaharshpatel thanks I will test soon.
-
@jonathanlee Have you tested?
-
@themaharshpatel when i did implement Squid this was the reason i uninstalled the package. 'Restricted' under every youtube video. It was weird. Considered it a bug as i had safesearch disabled.
This is a great find if it works. Should be added to the documentation.
If its confirmed that it works, i will open a redmine for you if you havent done so already. -
-
@themaharshpatel thanks for this. albeit i am confused. if the header 'none' is being added why is that interpreted as restrictions being turned on?
-
@michmoor Because in its underlying PHP code where it is generating the config file for the squid. It is checking for a null value to skip the content filtration config. But here as there was none mentioned. It was considered as a string and the condition was not getting fulfilled to skip the config generation.
-
testing now
-
@themaharshpatel great find/troubleshooting. simple fix. Maybe it can make it into the new release.
-
@jonathanlee do let us know if it works out! :)
-
@michmoor said in Youtube content getting filtered on Squid:
@themaharshpatel great find/troubleshooting. simple fix. Maybe it can make it into the new release.
Thanks:) Lets see how it works out!
-
Fixed it great find with this!!
-
-
Now Testing with restrictions enabled
Header restrictions functional
Thank !!! this option now has the ability to be enabled and disabled.
-
@themaharshpatel I can confirm this is fixed as well for me. Thanks again !!
-
Redmine issue opened: https://redmine.pfsense.org/issues/13811
Thank you @JonathanLee and @michmoor for testing this. Now, let's hope that the PR gets merged soon! -
@themaharshpatel I hope your ticket gets some movement. Its an obvious coding flaw that truthfully...shouldve been picked up years ago but i suppose it shows how often the Squid package gets used by people. Do you know if theres a way to notify folks? Its still sitting there with no acknowledgement.
-
@michmoor said in Youtube content getting filtered on Squid:
@themaharshpatel I hope your ticket gets some movement. Its an obvious coding flaw that truthfully...shouldve been picked up years ago but i suppose it shows how often the Squid package gets used by people. Do you know if theres a way to notify folks? Its still sitting there with no acknowledgement.
There might be no acknowledgment due to holidays. And this is the first time I am opening an issue so I don't know about notifying the mods.
-
@themaharshpatel same issue with 23.05
-
@jonathanlee The redmine hasnt been actioned. The Git pull request hasnt been approved from what i can tell.
TBH, considering staff is extremely limited i doubt this will ever get resolved. I would instead see if you could pin this thread at the top. -
I have added a new pull
-
-
@JonathanLee Coming back to this. Still no pickup from Netgate?
I am using Squid and I remembered this forum post :) -
@michmoor Still waiting for a update on the 2nd pull request, I made another that was in PfSense packages to see if that gets traction
-
https://forum.netgate.com/topic/180588/pfsense-freebsd-ports-question
I have also added this to the development discussion area to attempt to get some traction.
-
@JonathanLee I am running into another issue with Squid. Curious if you can replicate it.
Using Unrestricted IPs section along with using Authetnication. No matter what IP or Network i place in the Unrestricted IPs section i am still prompted for Authentication. Its like that variable is not being passed through the config.Also this is unchecekd.
-
Ok i figured it out but its a tad confusing in the GUI.
There is this section under ACL. According to the Note adding your IP here should exempt users from being authenticated BUT this does not work.
Instead under the authentication tab there is a section that DOES work ane remove the ability for the IPs listed here to be authenticated.
Its confusing and the documentation is not clear on this point at all. -
Came back to this post again for the youtube fix it's still present :) good times