Squid 3 doesn't update configuration

  • 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?



  • 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..?

  • Banned

    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

  • doktornotor, thank you..!

    the diff shows this:

    < if (!platform_booting()) {

    if (platform_booting()) {

  • Banned

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

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

  • OK, it works!
    Thank you doktornotor.

Log in to reply