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

    after upgrade to 24.11: squid doesn´t start

    Scheduled Pinned Locked Moved General pfSense Questions
    58 Posts 12 Posters 5.0k 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 @philippe34
      last edited by

      @philippe34 Is that the conf file start or fails?

      The error shown: Unknown http_port option 'NO_TLSv1,' makes it seem like the conf file is being incorrectly generated such that it;s trying to use 'NO_TLSv' as a an http_port.

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

        @stephenw10

        Commit
        dc0f0badcbf29efa73fa6d3cc5e5ab966ea3da4f

        caused issues I think this directive is no longer valid as soon as we fixed it, Squid upstream must have already fixed it and disabled the directive also just NO_TLSv1 the other NO_TLSv1_1 seems to still work.

        https://github.com/JonathanDLee24/FreeBSD-ports/tree/dc0f0badcbf29efa73fa6d3cc5e5ab966ea3da4f

        Screenshot 2024-12-02 at 15.45.04.png

        Let me change it back and see if that fixes the error but it will take 6 months to get fixed before it gets reviewed again, I tested it with my stuff and everything. Keep trying don't give up

        Make sure to upvote

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

          Oh OK this is a fixed setting not an option. Interesting.
          I expect those http_ports lines to include those options like:

          http_port 192.168.221.1:3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=10MB cert=/usr/local/etc/squid/serverkey.pem tls-cafile=/usr/local/share/certs/ca-root-nss.crt capath=/usr/local/share/certs/ cipher=EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:EDH+aRSA:!RC4:!aNULL:!eNULL:!LOW:!3DES:!SHA1:!MD5:!EXP:!PSK:!SRP:!DSS tls-dh=prime256v1:/etc/dh-parameters.2048 options=NO_SSLv3, NO_TLSv1_1
          

          Which is why it throws the error there.

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

            @stephenw10 said in after upgrade to 24.11: squid doesn´t start:

            le=/usr/local/share/certs/ca-root-nss.crt capath=/usr/local/share/certs/ cipher=EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:EDH+aRSA:!RC4:!aNULL:!eNULL:!LOW:!3DES:!SHA1:!MD5:!EXP:!PSK:!SRP:!DSS tls-dh=prime256v1:/etc/dh-parameters.2048 options=NO_SSLv3, NO_TLSv1_1

            https://github.com/pfsense/FreeBSD-ports/commit/476a7d0e3dca704b236839970f1d215912184f73

            Should fix it per maintainer

            Make sure to upvote

            1 Reply Last reply Reply Quote 1
            • philippe34P
              philippe34 @stephenw10
              last edited by

              @stephenw10

              hello,
              for the moment it works I will do more tests this evening.
              I will check the logs.
              thanks for your help

              1 Reply Last reply Reply Quote 1
              • 1
                19pegr69
                last edited by

                nothing that helps me. I don´t use ssl or other extended options and it throws the error message i wrote before.

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

                  @19pegr69 said in after upgrade to 24.11: squid doesn´t start:

                  'ld-elf.so.1: /usr/local/sbin/squid: Undefined symbol "_ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE"'

                  That looks more like you have the wrong squid version installed somehow. 🤔

                  1 Reply Last reply Reply Quote 0
                  • D
                    dauhee
                    last edited by

                    I have this also. I've nothing to add to the resolution efforts unfortunately

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

                      @JonathanLee said in after upgrade to 24.11: squid doesn´t start:

                      https://github.com/pfsense/FreeBSD-ports/commit/476a7d0e3dca704b236839970f1d215912184f73

                      This doesn't seem enough, at least not for all archs, since it also fails on TLSv1_1:

                      [24.11-RELEASE][admin@2100-3.stevew.lan]/root: /usr/local/sbin/squid -f /usr/local/etc/squid/squid.conf
                      CPU Usage: 0.064 seconds = 0.040 user + 0.024 sys
                      Maximum Resident Size: 54384 KB
                      Page faults with physical i/o: 0
                      2024/12/04 20:00:01| Processing Configuration File: /usr/local/etc/squid/squid.conf (depth 0)
                      2024/12/04 20:00:01| WARNING: Failed to decode EC parameters '/etc/dh-parameters.2048'
                          OpenSSL-saved error #1: 0x1e08010c
                      2024/12/04 20:00:01| FATAL: Unknown http_port option 'NO_TLSv1_1'.
                      2024/12/04 20:00:01| Not currently OK to rewrite swap log.
                      2024/12/04 20:00:01| storeDirWriteCleanLogs: Operation aborted.
                      2024/12/04 20:00:01| FATAL: Bungled /usr/local/etc/squid/squid.conf line 4: http_port 192.168.221.1:3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=10MB cert=/usr/local/etc/squid/serverkey.pem tls-cafile=/usr/local/share/certs/ca-root-nss.crt capath=/usr/local/share/certs/ cipher=EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:EDH+aRSA:!RC4:!aNULL:!eNULL:!LOW:!3DES:!SHA1:!MD5:!EXP:!PSK:!SRP:!DSS tls-dh=prime256v1:/etc/dh-parameters.2048 options=NO_SSLv3, NO_TLSv1_1
                      2024/12/04 20:00:01| Squid Cache (Version 6.10): Terminated abnormally.
                      
                      JonathanLeeJ 1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @stephenw10
                        last edited by

                        @stephenw10 I think he fixed this also it lists as a red removed line today for TLSv1_1 also. I wonder why the new Squid 7.0 that resolved all the concerns no longer lets you use this directive. Weird maybe it is just all disabled now for it and they do not need that directive. The V 7 has resolved almost all the concerns that was in that white paper

                        Make sure to upvote

                        1 Reply Last reply Reply Quote 0
                        • M
                          marcosm Netgate
                          last edited by

                          The issue should be fixed after applying both the previous commit and this one:
                          https://github.com/pfsense/FreeBSD-ports/commit/009dc5f68e0cf1d1a767d1a9119bcbaface44823

                          JonathanLeeJ J 2 Replies Last reply Reply Quote 2
                          • JonathanLeeJ
                            JonathanLee @marcosm
                            last edited by

                            @marcosm thanks I love this package, I am also having that OpenSSL error for some reason.

                            Make sure to upvote

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

                              Which error is that?

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

                                @stephenw10 2024/12/04 20:00:01| WARNING: Failed to decode EC parameters '/etc/dh-parameters.2048'
                                OpenSSL-saved error #1: 0x1e08010c

                                Make sure to upvote

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

                                  Ah I see. Hmm.... 🤔

                                  1 Reply Last reply Reply Quote 1
                                  • 1
                                    19pegr69
                                    last edited by

                                    It's nice that everyone seems to be able to solve this problem, but other than the comment that I've probably installed the wrong package, I haven't been able to get any help. I just expect the script to get the right package itself when updating. Can someone please explain to a FreeBSD layman how I can get the apparently correct package onto the system when installing via the GUI?

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

                                      Check the pkgs you actually have installed: pkg info -x squid

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        dauhee @stephenw10
                                        last edited by

                                        @stephenw10 said in after upgrade to 24.11: squid doesn´t start:

                                        pkg info -x squid

                                        this is mine and what I suspect everyone elses with version applied via the package manager:

                                        pfSense-pkg-squid-0.5
                                        squid-6.10
                                        squid_radius_auth-1.10
                                        squidclamav-7.3_2
                                        

                                        is there a way to pull from the git commit that was mentioned or is it a waiting game for the next release?

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

                                          You can apply both using the System Patches pkg, just create patches from the commits.

                                          However that won't help with the undefined symbol errors some users are seeing.

                                          1 Reply Last reply Reply Quote 0
                                          • D dauhee referenced this topic on
                                          • intellqI
                                            intellq
                                            last edited by intellq

                                            Thread got sort of hijacked with another problem... but I'm here to tell that the exact same thing also happened to me.

                                            /pkg_edit.php: The command '/usr/local/sbin/squid -z -f /usr/local/etc/squid/squid.conf' returned exit code '1', the output was 'ld-elf.so.1: /usr/local/sbin/squid: Undefined symbol "_ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE"'
                                            

                                            After the first boot after upgrading to 24.11, Squid doesn't work anymore, no matter what I do. I've tried:

                                            • Changed a lot of settings;
                                            • Reset squid settings to default;
                                            • Uninstalled squid completely...
                                            • ...reinstall via gui
                                            • ...or command line:

                                            pkg install -f pfSense-pkg-squid-0.5 squid-6.10 squid_radius_auth-1.10 squidclamav-7.3_2

                                            Nothing. Nada :(

                                            Any help?

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