SquidGuard
-
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_configand 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/squidGuardacl {
default {
pass none
redirect http://127.0.0.1/sgerror.php
}
}Any idea about this?????
Thanks a lot -
Thanks
I checking this -
Reinstall squidGuard
If error exists - mail me /usr/local/etc/squidGuard/squidguard_conf.xml file -
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. -
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