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

    Squid 3 doesn't update configuration

    Scheduled Pinned Locked Moved Cache/Proxy
    6 Posts 3 Posters 1.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.
    • G
      Garro
      last edited by

      Hi all,
      i'm using pfSense 2.2.4 and squid3 as reverse proxy.
      The reverse proxy works fine but when you save the configuration the file /usr/pbi/squid-amd64/local/etc/squid/squid.conf is not updated.
      I need to stop squid, remove the file /usr/pbi/squid-amd64/local/etc/squid/squid.con and re-save the configuration, then i can start the service and all works fine.

      My workaround was to edit the file /usr/local/etc/rc.d/squid.sh adding rm /usr/pbi/squid-amd64/local/etc/squid/squid.conf in rc_stop field :

      ….
      rc_stop() {
              /usr/pbi/squid-amd64/sbin/squid -k shutdown -f /usr/pbi/squid-amd64/local/etc/squid/squid.conf
              rm /usr/pbi/squid-amd64/local/etc/squid/squid.conf

      Just to be sure...

      sleep 5
      ....

      is it possible to fix this problem?

      Thanks

      Davide

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

        I am having the exact same problem after updating the squid package this morning, for me a reboot reloads the config but this is not practical….help..?

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

          
          cd /usr/local/pkg
          mv squid.inc squid.inc.orig
          fetch https://raw.githubusercontent.com/doktornotor/pfsense-packages/patch-5/config/squid3/34/squid.inc
          
          
          1 Reply Last reply Reply Quote 0
          • D
            dsefcik
            last edited by

            doktornotor, thank you..!

            the diff shows this:

            1844c1844
            < if (!platform_booting()) {
            –-

            if (platform_booting()) {

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

              You've got the diff reversed (which is exactly the problem with the package :P)

              (P.S. Hint: use -u, way more readable.)

              1 Reply Last reply Reply Quote 0
              • G
                Garro
                last edited by

                OK, it works!
                Thank you doktornotor.

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