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

    [SOLVED] squid doesn't retain settings across reboots

    Scheduled Pinned Locked Moved pfSense Packages
    11 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.
    • marcellocM
      marcelloc
      last edited by

      are you using squidguard too?

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

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

        Yes, squidguard also.

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          @dan34:

          Yes, squidguard also.

          You need to edit squidguard.inc file to change what it includes on squid config.

          Every time you save squidguard config or reboot, it will check for these settings on squid.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

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

            Would that be in /usr/local/pkg? squidguard.inc doesn't have any references to URL_REDIRECT_CHILDREN, however squidguard_configurator.inc does.

            
            define('REDIRECT_CHILDREN_OPT',    'url_rewrite_children');
            define('REDIRECTOR_PROCESS_COUNT', '5'); # redirector processes count will started
            
            

            Do I change REDIRECTOR_PROCESS_COUNT then restart the squid and squidguard services?

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @dan34:

              Do I change REDIRECTOR_PROCESS_COUNT then restart the squid and squidguard services?

              Just edit and save squidguard/squid config.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

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

                Just edit and save squidguard/squid config.

                I'm not sure what file you refer to. Editing the setting in /usr/local/etc/squid/squid.conf doesn't work. The only thing I've found is to change REDIRECTOR_PROCESS_COUNT in /usr/local/pkg/squidGuard/squidguard_configurator.inc. Then after a reboot it updates /usr/local/etc/squid/squid.conf with the new value for url_redirect_children. The new value then appears in the custom options box for squid in the GUI.

                Should this be considered a bug? The text in the GUI gives the impression that you can change or add custom settings by entering them in the "Custom Options" box, but at least in this case you can't.

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  edit /usr/local/pkg/squidGuard/squidguard_configurator.inc, replace the option, save config

                  then check squid conf.

                  If it was not replaced, edit custom/options manually and save.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

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

                    Yes, that's what I did. Thanks for your help. It got me going again.

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

                      I have the same problem.

                      No matter what I put in the squid custom options (via the GUI), the url_rewrite_children always reverts to 5.

                      The reason this is an issue is that I get this in the logs:
                      squid[45587]: Too many queued url_rewriter requests (39 on 5)

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        @duanes:

                        I have the same problem.

                        follow the topic instructions to change it's value

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

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