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

Squid and SquidGuard not starting

Cache/Proxy
14
20
12.0k
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
    skyrice
    last edited by Apr 13, 2015, 5:30 AM

    Same problem here. Wasn't working before I updated to 2.2.1, still not working now.
    squid 2.7.9 pkg 4.3.6
    squidguard 1.4_7 pkg 1.9.12

    Have tried reinstalling both. same result. I have the following errors in log files.

    php-fpm[246]: /rc.start_packages: The command '/usr/pbi/squid-i386/sbin/squid -D' returned exit code '1', the output was 'FATAL: Bungled squid.conf line 75: url_rewrite_program /usr/pbi/squidguard-i386/bin/squidGuard -c /usr/pbi/squidguard-i386/etc/squidGuard/squidGuard.conf Squid Cache (Version 2.7.STABLE9): Terminated abnormally.

    squid[68340]: Bungled squid.conf line 75: url_rewrite_program /usr/pbi/squidguard-i386/bin/squidGuard -c /usr/pbi/squidguard-i386/etc/squidGuard/squidGuard.conf

    EDIT: forgot to mention.. I inherited this setup and my pfsense foo isn't overly strong.
    I did find the following in the custom options field in the GUI.
    seems the error is referencing that but not sure what about it is the problem.

    redirect_children 3;redirect_program /usr/pbi/squidguard-i386/bin/squidGuard -c /usr/pbi/squidguard-i386/etc/squidGuard/squidGuard.conf;redirector_bypass off;url_rewrite_program /usr/pbi/squidguard-i386/bin/squidGuard -c /usr/pbi/squidguard-i386/etc/squidGuard/squidGuard.conf;url_rewrite_bypass off;url_rewrite_children 16 startup=8 idle=4 concurrency=0

    1 Reply Last reply Reply Quote 0
    • K
      KOM
      last edited by Apr 13, 2015, 1:26 PM

      Don't waste your time on Squid2.  Use Squid3.

      I've never seen a 'bungled' conf error before.

      1 Reply Last reply Reply Quote 0
      • N
        ncolunga
        last edited by Apr 16, 2015, 10:09 AM

        This is happening because squidguard on pfsense is adding redirect_program and  url_rewrite_program params. The second one is fine for squid3 but it's not working with squid2.
        Deleting url_rewrite directives from proxy Custom Options solves the problem untill next reboot. You can edit squidguard_configurator.inc on /usr/local/pkg to avoid this.

        1 Reply Last reply Reply Quote 0
        • K
          KOM
          last edited by Apr 16, 2015, 1:50 PM

          Well there you go.  I don't use squid2.

          1 Reply Last reply Reply Quote 0
          • N
            ntct
            last edited by Apr 16, 2015, 11:43 PM

            SquidGuard 1.4_7 pkg v.1.9.14 + Squid 2.7.9 or Squid 3.4.10

            After reboot box, Squid and SquidGuard not starting….

            1 Reply Last reply Reply Quote 0
            • D
              darrenkdean
              last edited by Apr 17, 2015, 1:22 AM

              @ntct:

              SquidGuard 1.4_7 pkg v.1.9.14 + Squid 2.7.9 or Squid 3.4.10

              After reboot box, Squid and SquidGuard not starting….

              Good Evening,

              I experienced this same issue & researched it for a couple of months.  I am currently running the current Squid3 with SquidGuard.  Each time pfSense reboots, you must go into the Proxy Filter & re-download the blacklist.  After the blacklist downloads, both Squid3 & SquidGuard will automatically come back to life.  I have no idea why this is occurring or why this works, but it seems to do the trick.

              Best-

              Darren

              1 Reply Last reply Reply Quote 0
              • A
                agixdota
                last edited by Apr 17, 2015, 1:35 AM

                me too squidguard with squid 3.4 cant start :'(

                1 Reply Last reply Reply Quote 0
                • N
                  ntct
                  last edited by Apr 17, 2015, 1:36 AM

                  I found that If i add a whitelist in target categories and set it allow or white

                  Reboot pfsense, Squid and SquidGuard  starting….

                  It's strange

                  1 Reply Last reply Reply Quote 0
                  • B
                    Brazen
                    last edited by Apr 17, 2015, 6:27 AM

                    Yep, I had the same problem.  You just need to create at least one entry under the Target Categories tab and then both services will start.

                    1 Reply Last reply Reply Quote 0
                    • O
                      ofacesig
                      last edited by Apr 18, 2015, 2:32 AM

                      ^This is working for me, for now.

                      pfsense P4 3.0GHz | Generic Dell Desktop | 1GB DDR2 | 40GB HDD | 2 x HP NC112T PCI-E server NICs | picoPSU-160-XT + 160w external PS | pfsense 2.2.1 i386
                      FreeNAS : Athlon 64 3000+ (socket 754 yeah buddy!) | ASUS K8V-MX | 1GB DDR | 2 x 2TB Hitachi Deskstars 7200RPM RAID1 | TP-Link 1Gbps NIC | FreeNAS 0.7.1 i386

                      1 Reply Last reply Reply Quote 0
                      • G
                        glennmckenna
                        last edited by Apr 18, 2015, 10:33 AM

                        i thinj hat i might have the same problem as this
                        https://forum.pfsense.org/index.php?topic=92545.0

                        what is this whtelist solution may i ask could i have some more info please ?

                        1 Reply Last reply Reply Quote 0
                        • N
                          ntct
                          last edited by Apr 18, 2015, 11:26 AM

                          please follow the below

                          3.jpg
                          3.jpg_thumb

                          1 Reply Last reply Reply Quote 0
                          • G
                            glennmckenna
                            last edited by Apr 21, 2015, 9:15 AM

                            great news that seems to of fixed it :D

                            1 Reply Last reply Reply Quote 0
                            • A
                              agixdota
                              last edited by May 4, 2015, 7:59 AM

                              thanks sir its work :D

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