Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Youtube content getting filtered on Squid

    Scheduled Pinned Locked Moved Cache/Proxy
    31 Posts 3 Posters 4.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      themaharshpatel LAYER 8
      last edited by

      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

      JonathanLeeJ 1 Reply Last reply Reply Quote 1
      • JonathanLeeJ
        JonathanLee @themaharshpatel
        last edited by JonathanLee

        @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.

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • T
          themaharshpatel LAYER 8
          last edited by

          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.

          JonathanLeeJ M 2 Replies Last reply Reply Quote 2
          • JonathanLeeJ
            JonathanLee @themaharshpatel
            last edited by

            @themaharshpatel thanks I will test soon.

            Make sure to upvote

            T 1 Reply Last reply Reply Quote 0
            • T
              themaharshpatel LAYER 8 @JonathanLee
              last edited by

              @jonathanlee Have you tested?

              JonathanLeeJ 1 Reply Last reply Reply Quote 1
              • M
                michmoor LAYER 8 Rebel Alliance @themaharshpatel
                last edited by

                @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.

                Firewall: NetGate,Palo Alto-VM,Juniper SRX
                Routing: Juniper, Arista, Cisco
                Switching: Juniper, Arista, Cisco
                Wireless: Unifi, Aruba IAP
                JNCIP,CCNP Enterprise

                T 1 Reply Last reply Reply Quote 1
                • T
                  themaharshpatel LAYER 8 @michmoor
                  last edited by

                  @michmoor It is working perfectly for me with this fix. I am just waiting for some confirmation before opening the issue on Redmine. I have already opened a PR on Github check out. As you were also facing it, I will go ahead and file the issue over there.

                  M 1 Reply Last reply Reply Quote 1
                  • M
                    michmoor LAYER 8 Rebel Alliance @themaharshpatel
                    last edited by

                    @themaharshpatel thanks for this. albeit i am confused. if the header 'none' is being added why is that interpreted as restrictions being turned on?

                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                    Routing: Juniper, Arista, Cisco
                    Switching: Juniper, Arista, Cisco
                    Wireless: Unifi, Aruba IAP
                    JNCIP,CCNP Enterprise

                    T 1 Reply Last reply Reply Quote 1
                    • T
                      themaharshpatel LAYER 8 @michmoor
                      last edited by

                      @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.

                      M 1 Reply Last reply Reply Quote 2
                      • JonathanLeeJ
                        JonathanLee @themaharshpatel
                        last edited by

                        @themaharshpatel Screenshot 2022-12-29 at 10.12.51 AM.png

                        testing now

                        Make sure to upvote

                        T 1 Reply Last reply Reply Quote 2
                        • M
                          michmoor LAYER 8 Rebel Alliance @themaharshpatel
                          last edited by

                          @themaharshpatel great find/troubleshooting. simple fix. Maybe it can make it into the new release.

                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                          Routing: Juniper, Arista, Cisco
                          Switching: Juniper, Arista, Cisco
                          Wireless: Unifi, Aruba IAP
                          JNCIP,CCNP Enterprise

                          T 1 Reply Last reply Reply Quote 2
                          • T
                            themaharshpatel LAYER 8 @JonathanLee
                            last edited by

                            @jonathanlee do let us know if it works out! :)

                            JonathanLeeJ 1 Reply Last reply Reply Quote 1
                            • T
                              themaharshpatel LAYER 8 @michmoor
                              last edited by

                              @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!

                              JonathanLeeJ M 2 Replies Last reply Reply Quote 1
                              • JonathanLeeJ
                                JonathanLee @themaharshpatel
                                last edited by

                                @themaharshpatel

                                Fixed it great find with this!!

                                Screenshot 2022-12-29 at 10.35.50 AM.png

                                Make sure to upvote

                                T 1 Reply Last reply Reply Quote 2
                                • T
                                  themaharshpatel LAYER 8 @JonathanLee
                                  last edited by

                                  @jonathanlee 🚀

                                  1 Reply Last reply Reply Quote 2
                                  • JonathanLeeJ
                                    JonathanLee @themaharshpatel
                                    last edited by

                                    @themaharshpatel

                                    Now Testing with restrictions enabled

                                    Screenshot 2022-12-29 at 11.05.35 AM.png

                                    Header restrictions functional

                                    Thank !!! this option now has the ability to be enabled and disabled.

                                    Make sure to upvote

                                    1 Reply Last reply Reply Quote 1
                                    • M
                                      michmoor LAYER 8 Rebel Alliance @themaharshpatel
                                      last edited by

                                      @themaharshpatel I can confirm this is fixed as well for me. Thanks again !!

                                      Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                      Routing: Juniper, Arista, Cisco
                                      Switching: Juniper, Arista, Cisco
                                      Wireless: Unifi, Aruba IAP
                                      JNCIP,CCNP Enterprise

                                      1 Reply Last reply Reply Quote 2
                                      • T
                                        themaharshpatel LAYER 8
                                        last edited by themaharshpatel

                                        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!

                                        M 1 Reply Last reply Reply Quote 1
                                        • M
                                          michmoor LAYER 8 Rebel Alliance @themaharshpatel
                                          last edited by michmoor

                                          @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.

                                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                          Routing: Juniper, Arista, Cisco
                                          Switching: Juniper, Arista, Cisco
                                          Wireless: Unifi, Aruba IAP
                                          JNCIP,CCNP Enterprise

                                          T 1 Reply Last reply Reply Quote 1
                                          • T
                                            themaharshpatel LAYER 8 @michmoor
                                            last edited by

                                            @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.

                                            JonathanLeeJ 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.