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

    Squid 0.4.0 … unable to clean settings

    Scheduled Pinned Locked Moved Cache/Proxy
    14 Posts 2 Posters 2.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.
    • S Offline
      stanthewizard
      last edited by

      Hello
      Me again  :D

      Strange behavior

      I have removed the package squid (with keep data settings unchecked)

      I rebooted pfsense
      reinstalled the package

      Everyhting is clean default except all mappings are back from … I don't know where

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        Well, I don't know either. You have instructions on manual removal in the FAQ. Debug with pfSense devs. You need to (un)install twice for the "wonderful" package manager to notice there have been code changes in install/deinstall stuff. I don't have time to debug similar shit.

        The code is here:
        https://github.com/pfsense/pfsense-packages/blob/master/config/squid3/34/squid.inc#L573

        Happy debugging.

        1 Reply Last reply Reply Quote 0
        • S Offline
          stanthewizard
          last edited by

          I executed the PHP code
          In Backup Restore History I have a clean action

          Mapping is still there !

          ???

          1 Reply Last reply Reply Quote 0
          • D Offline
            doktornotor Banned
            last edited by

            Well, perhaps there are some sections missing? Go thru the .XML files for <name>tag, compare against the list linked above, post here what's missing. I simply don't see what's missing. Tired of staring into the code.</name>

            1 Reply Last reply Reply Quote 0
            • S Offline
              stanthewizard
              last edited by

              No you know that I'm dumb

              Where is the XML ?

              1 Reply Last reply Reply Quote 0
              • D Offline
                doktornotor Banned
                last edited by

                The XML files. Here: https://github.com/pfsense/pfsense-packages/tree/master/config/squid3/34

                1 Reply Last reply Reply Quote 0
                • S Offline
                  stanthewizard
                  last edited by

                  I think it's squidreverseredir

                  But not sure at all because it's in the list of the thingy that shoudl be removed

                  Far more serious
                  In the GUI if you create a mappings and then removing with the cross the rule is still in the squidconf file
                    :o

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    doktornotor Banned
                    last edited by

                    You need to click the Save button.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      stanthewizard
                      last edited by

                      OK
                      In general there is a save button no issue with that

                      In squid reverse
                      Mappings
                      If you delete a mapping, it's still in the squid.conf.

                      This is not a normal behaviour

                      I think( but I'm not in your shoes  8)) that the mapping GUI is not well wired to the squid.conf

                      Maybe that's also why with a reset of squid Mappings doesn't work ? :-\

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        doktornotor Banned
                        last edited by

                        Well… Post whatever Squid settings you have remaining in /cf/conf/config.xml after the cleanup here. I think you have some god knows what version of Squid settings getting re-imported over and over and over again. Alternative, as already noted on the FAQ: do a backup of your configuration without the packages, reimport, move on.

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          stanthewizard
                          last edited by

                          OK
                          I'll do that
                          In the meantime, I cleaned it myself in squid.conf

                          Thanks
                          (that package is really a mess  ;))

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            doktornotor Banned
                            last edited by

                            Please, test this patch via System Patches:

                            https://github.com/doktornotor/pfsense-packages/commit/fd10cef996f12b543d79aed2919651c7f7f1e8c4.patch

                            Apply, uninstall with 'Keep Settings/Data' unchecked.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              stanthewizard
                              last edited by

                              Sorry could'nt tested it was in reunion over reunion
                              :'(

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                doktornotor Banned
                                last edited by

                                NP :)

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