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

    SquidGuard

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 2 Posters 2.9k 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.
    • F
      federicob
      last edited by

      Hi i try to use SG because i need content filter.
      My system is : Pfsense RC3, squid 2.6.5_1-p15, SquidGuard 1.2.0_1
      Squid works ok but when i try to enable SquidGuard and i click on applay in general settings i have this:

      Warning: array_count_values(): Can only count STRING and INTEGER values! in /usr/local/pkg/squidguard_configurator.inc on line 1157 Warning: array_count_values(): Can only count STRING and INTEGER values! in /usr/local/pkg/squidguard_configurator.inc on line 1218 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/squidguard_configurator.inc:1157) in /usr/local/www/pkg_edit.php on line 35

      after a couple of clicks SQ show started but i can't surf any website. I tryed several settinga of ACL, Times and so on but i had the same error and result.

      I found this error in configurator log:

      27.12.2007 00:48:39: sg_init: ext initialization squidguard_config
      27.12.2007 00:48:50: sg_init: ext initialization squidguard_config
      27.12.2007 00:48:50: sg_reconfigure: start.
      27.12.2007 00:48:50: sg_reconfigure_user_db: begin
      27.12.2007 00:48:50: sg_reconfigure_user_db: add expressions 'porn'
      27.12.2007 00:48:50: sg_rebuild_db: begin with Array
      27.12.2007 00:48:50: sg_rebuild_db: start rebuild DB '/var/db/squidGuard/porn'
      27.12.2007 00:48:50: sg_rebuild_db: end
      27.12.2007 00:48:50: sg_remove_unused_db_entries: begin
      27.12.2007 00:48:50: sg_remove_unused_db_entries: end
      27.12.2007 00:48:50: sg_reconfigure_user_db: end
      27.12.2007 00:48:50: sg_build_config: create squidGuard config
      27.12.2007 00:48:50: sg_build_config: check configuration data
      27.12.2007 00:48:50: sg_build_config: error configuration data. It's all errors:
      SOURCE ''error: Size of name must be between [2..16]. Invalid name . Valid name symbols: ['a-Z', '_', '0-9', '-']. First symbol must be a letter.
      27.12.2007 00:48:50: sg_build_config: terminated.
      27.12.2007 00:48:50: sg_build_default_config: Created default configuration. All content will blocked.
      27.12.2007 00:48:51: sg_reconfigure: generate squidGuard config and save to /usr/local/etc/squidGuard/squidGuard.conf.
      27.12.2007 00:48:51: squid_reconfigure: begin
      27.12.2007 00:48:51: squid_reconfigure: config file '/usr/local/etc/squid/squid.conf'
      27.12.2007 00:48:51: squid_reconfigure: remove old redirector options from 'squid.conf'
      27.12.2007 00:48:51: squid_reconfigure: add new redirector options to 'squid.conf'
      27.12.2007 00:48:51: sg_reconfigure: end.
      27.12.2007 00:49:11: sg_init: ext initialization squidguard_config
      27.12.2007 00:49:13: sg_init: ext initialization squidguard_config
      27.12.2007 00:49:14: sg_init: ext initialization squidguard_config
      27.12.2007 00:49:19: sg_init: ext initialization squidguard_config
      27.12.2007 00:49:19: sg_init: ext initialization squidguard_config

      and i noticed that the squidGuard.conf don't change never it is everytime in this way:

      /usr/local/etc/squidGuard/squidGuard.conf

      ============================================================

      SquidGuard configuration file

      This file generated automaticly with SquidGuard configurator

      (C)2006 Serg Dvoriancev

      email: dv_serg@mail.ru

      ============================================================

      logdir /var/squidGuard/log
      dbhome /var/db/squidGuard

      acl {
      default {
      pass none
      redirect http://127.0.0.1/sgerror.php
      }
      }

      Any idea about this?????
      Thanks a lot

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

        Thanks
        I checking this

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

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

          Reinstall squidGuard
          If error exists - mail me /usr/local/etc/squidGuard/squidguard_conf.xml file

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

          1 Reply Last reply Reply Quote 0
          • F
            federicob
            last edited by

            I tried to uninstall squid as squidguard too several times but nothing happens.
            I notice that if i uninstall the packages when i reinstall them i have my last configuration again.
            It seems that if i uninstall squidguard for example its configuration is not deleted.

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

              Check 'Source' names
              –--
              27.12.2007 00:48:50: sg_build_config: error configuration data. It's all errors:
              SOURCE ''error: Size of name must be between [2..16]. Invalid name . Valid name symbols: ['a-Z', '_', '0-9', '-']. First symbol must be a letter.
              –--
              Also re-select this name in ACLs

              SquidGuardDoc EN  RU Tutorial
              Localization ru_PFSense

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