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

    SquidGuard 1.2.0_1 & pfsense 1.2 release only works without logging

    pfSense Packages
    3
    13
    7.4k
    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.
    • D
      dvserg
      last edited by

      chown -R -v proxy /var/squidGuard
      chmod -R -v 0755 /var/squidGuard

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • A
        al_reidy
        last edited by

        @dvserg:

        chown -R -v proxy /var/squidGuard
        chmod -R -v 0755 /var/squidGuard

        still no luck,
        if i enable a log button this appears in /var/squid/log/cache.log

        2008-08-26 08:23:23 [65179] (squidGuard): can't write to logfile /var/log/squidGuard.log
        2008-08-26 08:23:23 [65179] syntax error in configfile /usr/local/etc/squidGuard/squidGuard.conf line 20
        2008-08-26 08:23:23 [65179] going into emergency mode
        2008-08-26 08:23:23 [65180] (squidGuard): can't write to logfile /var/log/squidGuard.log
        2008-08-26 08:23:23 [65180] syntax error in configfile /usr/local/etc/squidGuard/squidGuard.conf line 20

        then when i turn the logging off -
        2008/08/26 08:24:07| helperOpenServers: Starting 3 'squidGuard' processes
        2008-08-26 08:24:07 [65712] (squidGuard): can't write to logfile /var/log/squidGuard.log

        and it works again.

        thanks for your help…

        1 Reply Last reply Reply Quote 0
        • A
          al_reidy
          last edited by

          ok, just changed the permissions on the  /var/log/squidGuard.log and that message has gone from squids log.
          in squidGuards log tab i cant view squidGuard.log due to
          "squidguard_log report disabled"
          although there isnt a menu to turn logging on or off. im sure i did see one a few weeks ago on the general settings tab?

          i have just reinstalled the package on squid and squidguard to see if that helps.. it didnt but i got a new version of squid.  :)

          thanks

          Al

          1 Reply Last reply Reply Quote 0
          • R
            ryven
            last edited by

            I'm having the same issue

            with all logs off, squidguard works
            I only enabled log in Default after which

            in /var/log/squidGuard.log:
            syntax error in configfile /usr/local/etc/squidGuard/squidGuard.conf line 61
            going into emergency mode

            my  /usr/local/etc/squidGuard/squidGuard.conf:
            acl  {
                    #
                    default  {
                            pass worksites whitelist !blacklist !pornsites !media_block all
                            redirect 301:http://myserver/sqerror.htm
            #line 61#    log {SQUIDGUARD_ACCESSBLOCK_FILE}
                    }

            I'm not sure if the log {SQUIDGUARD_ACCESSBLOCK_FILE} format is pfsense specific, but all example file use the format is   
            log block.log

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

              @ryven:

              I'm having the same issue

              #line 61#    log {SQUIDGUARD_ACCESSBLOCK_FILE}
                      }

              I'm not sure if the log {SQUIDGUARD_ACCESSBLOCK_FILE} format is pfsense specific, but all example file use the format is   
              log block.log

              Thanks, this is my bug.. will be fixed in near time

              SquidGuardDoc EN  RU Tutorial
              Localization ru_PFSense

              1 Reply Last reply Reply Quote 0
              • R
                ryven
                last edited by

                Can i manually set the log to block.log
                where should the file be and what permission should it have

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

                  @ryven:

                  Can i manually set the log to block.log
                  where should the file be and what permission should it have

                  You can find
                  "log {SQUIDGUARD_ACCESSBLOCK_FILE}"
                  strings in /usr/local/pkg/squidguard_configurator.inc and replace it to
                  "log " . SQUIDGUARD_ACCESSBLOCK_FILE
                  and 'Apply' in GUI.

                  –-
                  Possible renew GUI, bug fixed.

                  SquidGuardDoc EN  RU Tutorial
                  Localization ru_PFSense

                  1 Reply Last reply Reply Quote 0
                  • R
                    ryven
                    last edited by

                    Did it and all working.
                    there were three instances that needed to be changed (that i found in any case)
                    Thnx for the help

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

                      @ryven:

                      Did it and all working.
                      there were three instances that needed to be changed (that i found in any case)
                      Thnx for the help

                      Now can renew XML. Bug already fixed.

                      SquidGuardDoc EN  RU Tutorial
                      Localization ru_PFSense

                      1 Reply Last reply Reply Quote 0
                      • A
                        al_reidy
                        last edited by

                        Hell yeah!
                        Cheers guys

                        ;D

                        Al

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