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

    23.01 Squid issue

    Scheduled Pinned Locked Moved Cache/Proxy
    128 Posts 8 Posters 43.1k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      It's seen patches more recently in FreeBSD:
      https://www.freshports.org/www/squidguard/

      JonathanLeeJ B 2 Replies Last reply Reply Quote 1
      • JonathanLeeJ
        JonathanLee @stephenw10
        last edited by

        @stephenw10 I love Squidguard it works well for me. I use a French blacklist that works good.

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • B
          ben-ihelputech @stephenw10
          last edited by

          @stephenw10 That's good to hear. Is there a git repository where squidguard is being worked on? I would like to work on the project, but information seems fragmented.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Probably: https://github.com/freebsd/freebsd-ports/tree/main/www/squidguard

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

              https://redmine.pfsense.org/issues/13984#change-67231

              They have movement and a pull request in. Patches have been created for Squid and Squidguard!!! Yeahhh 🙌

              Make sure to upvote

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

                https://redmine.pfsense.org/issues/13984

                Yeahhh

                Make sure to upvote

                1 Reply Last reply Reply Quote 0
                • hugoeyngH
                  hugoeyng @JonathanLee
                  last edited by

                  @jonathanlee How do I install the patches?

                  URL/Commit ID?

                  Path Strip Count?

                  Base Directory?

                  Ignore Whitespace?

                  Auto Apply?

                  I love pfSense!

                  Hugo Eyng
                  Datamais Sistemas

                  JonathanLeeJ 2 Replies Last reply Reply Quote 1
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Set the path strip count to 4, leave other settings default.

                    I uploaded the patch files directly but you could also copy/paste the diff text.

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

                      @hugoeyng you can use the URL and fetch it, for this one I downloaded the text file, use the new one made a couple hours ago. After paste that text into the box in custom patch. And move the level 4 leave everything else. Save it has option to debug make sure it shows ok green for you can apply. Apply and reboot. If it shows an error debug and unapply it. Reboot.

                      Marcos created a new file today the other one had a small issue on it when I tested it last night.

                      Make sure to upvote

                      hugoeyngH 1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @hugoeyng
                        last edited by

                        @hugoeyng I just started doing patches too the patch package is amazing.

                        Make sure to upvote

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

                          Make sure you use Marcos latest version as there was an issue found last night with the other patch. The latest text file is in the redmine

                          Screenshot 2023-05-03 at 1.18.24 PM.png

                          Make sure to upvote

                          1 Reply Last reply Reply Quote 0
                          • hugoeyngH
                            hugoeyng @stephenw10
                            last edited by

                            @stephenw10 @JonathanLee Hello, Firends.

                            An error message was showed:

                            406e694a-a89b-4147-8f3f-845d2591d8c0-image.png

                            1e5a10e9-e0bd-4862-88ce-6a63758af415-image.png

                            I love pfSense!

                            Hugo Eyng
                            Datamais Sistemas

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

                              @hugoeyng open that file with a text editior and paste it into that box "Patch Contents" Upload will not work because it has to be complied by the program it is source code right now.

                              Make sure to upvote

                              1 Reply Last reply Reply Quote 0
                              • hugoeyngH
                                hugoeyng @JonathanLee
                                last edited by hugoeyng

                                @jonathanlee @stephenw10 I copied the code fo the files into the box "Patch contents" and applied but now another (another line at least) error occurs:

                                6d152455-bfd8-4ae7-b3f9-5a4c10096aef-image.png

                                I love pfSense!

                                Hugo Eyng
                                Datamais Sistemas

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

                                  @hugoeyng did you apply both files? There is also a Squidguard text in that redmine Marcos wants both applied.

                                  Screenshot 2023-05-03 at 2.20.28 PM.png

                                  This text file Squid Proxy

                                  Screenshot 2023-05-03 at 2.20.28 PM.png

                                  This text file Squid Guard

                                  Make sure to upvote

                                  hugoeyngH 1 Reply Last reply Reply Quote 0
                                  • hugoeyngH
                                    hugoeyng @JonathanLee
                                    last edited by

                                    @jonathanlee I created one Custom Systema Patch to each file.

                                    I love pfSense!

                                    Hugo Eyng
                                    Datamais Sistemas

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

                                      @hugoeyng can you get a screen shot of the error codes in logs and post it to the redmine?

                                      Make sure to upvote

                                      hugoeyngH 2 Replies Last reply Reply Quote 0
                                      • hugoeyngH
                                        hugoeyng @JonathanLee
                                        last edited by

                                        @jonathanlee I am not sure I have permission to do it. The error message is:

                                        PHP errors
                                        PHP ERROR: Type: 1, File: /usr/local/pkg/squidguard.inc, Line: 1184, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1184
                                        Stack trace:
                                        #0 /usr/local/pkg/squidguard.inc(1038): convert_pfxml_to_sgxml_time(Array)
                                        #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                                        #2 /etc/inc/pkg-utils.inc(691): require_once('/usr/local/pkg/...')
                                        #3 /etc/rc.start_packages(66): sync_package('squidGuard')
                                        #4 {main}
                                        thrown @ 2023-05-03 18:12:49

                                        I love pfSense!

                                        Hugo Eyng
                                        Datamais Sistemas

                                        1 Reply Last reply Reply Quote 0
                                        • hugoeyngH
                                          hugoeyng @JonathanLee
                                          last edited by

                                          @jonathanlee The log:

                                          Crash report begins. Anonymous machine information:

                                          amd64
                                          14.0-CURRENT
                                          FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBS

                                          Crash report details:

                                          PHP Errors:
                                          [03-May-2023 18:12:49 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1184
                                          Stack trace:
                                          #0 /usr/local/pkg/squidguard.inc(1038): convert_pfxml_to_sgxml_time(Array)
                                          #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                                          #2 /etc/inc/pkg-utils.inc(691): require_once('/usr/local/pkg/...')
                                          #3 /etc/rc.start_packages(66): sync_package('squidGuard')
                                          #4 {main}
                                          thrown in /usr/local/pkg/squidguard.inc on line 1184
                                          [03-May-2023 18:34:31 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1184
                                          Stack trace:
                                          #0 /usr/local/pkg/squidguard.inc(1038): convert_pfxml_to_sgxml_time(Array)
                                          #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                                          #2 /etc/inc/pkg-utils.inc(691): require_once('/usr/local/pkg/...')
                                          #3 /etc/rc.start_packages(66): sync_package('squidGuard')
                                          #4 {main}
                                          thrown in /usr/local/pkg/squidguard.inc on line 1184
                                          [03-May-2023 18:34:41 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1184
                                          Stack trace:
                                          #0 /usr/local/pkg/squidguard.inc(1038): convert_pfxml_to_sgxml_time(Array)
                                          #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                                          #2 /etc/inc/pkg-utils.inc(1068): require_once('/usr/local/pkg/...')
                                          #3 /etc/rc.packages(80): delete_package_xml('squidGuard', 'deinstall')
                                          #4 {main}
                                          thrown in /usr/local/pkg/squidguard.inc on line 1184
                                          [03-May-2023 18:34:42 America/Sao_Paulo] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/squidguard.inc:1193
                                          Stack trace:
                                          #0 /usr/local/pkg/squidguard.inc(1047): convert_pfxml_to_sgxml_time(Array)
                                          #1 /usr/local/pkg/squidguard.inc(93): convert_pfxml_to_sgxml()
                                          #2 /etc/inc/pkg-utils.inc(868): require_once('/usr/local/pkg/...')
                                          #3 /etc/rc.packages(76): install_package_xml('squidGuard')
                                          #4 {main}
                                          thrown in /usr/local/pkg/squidguard.inc on line 1193

                                          No FreeBSD crash data found.

                                          I love pfSense!

                                          Hugo Eyng
                                          Datamais Sistemas

                                          B JonathanLeeJ 2 Replies Last reply Reply Quote 0
                                          • B
                                            ben-ihelputech @hugoeyng
                                            last edited by

                                            @hugoeyng Are you using high availability sync for squidguard?

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