PfSense + Squid + SquidGuard
-
Hi,
I have here in my company the PfSense 1.2.3-RELEASE. I did a upgrade in the squid to 2.7.9_4.1 and squidGuard 1.4_3 pkg v.1.9. But now, i don't block anymore my links that worked perfectly in the previous version of this packages. In webconfigurator -> Filter log of SquidGuard i receive:03.10.2011 16:05:20 squidGuard stopped (1317668720.634)
03.10.2011 16:05:20 db update done
03.10.2011 16:05:20 squidGuard 1.4 started (1317668720.629)
03.10.2011 16:03:42 squidGuard stopped (1317668622.863)
03.10.2011 16:03:42 db update done
03.10.2011 16:03:42 squidGuard 1.4 started (1317668622.858)
03.10.2011 16:02:13 squidGuard stopped (1317668533.975)
03.10.2011 16:02:13 db update doneIn the file /var/squid/log/cache.log:
2011-10-03 16:27:42 [13478] (squidGuard): can't write to logfile /var/squidGuard/log/block.log
2011-10-03 16:27:42 [13478] init domainlist /var/db/squidGuard/Bloqueados/domains
2011-10-03 16:27:42 [13478] loading dbfile /var/db/squidGuard/Bloqueados/domains.db
2011-10-03 16:27:42 [13478] init domainlist /var/db/squidGuard/Liberados/domains
2011-10-03 16:27:42 [13478] loading dbfile /var/db/squidGuard/Liberados/domains.db
2011-10-03 16:27:42 [13478] (squidGuard): can't write to logfile /var/squidGuard/log/block.log
2011-10-03 16:27:42 [13478] logfile not allowed in acl other than default
2011-10-03 16:27:42 [13478] (squidGuard): can't write to logfile /var/squidGuard/log/block.log
2011-10-03 16:27:42 [13478] (squidGuard): can't write to logfile /var/squidGuard/log/squidGuard.log
2011-10-03 16:27:42 [13478] squidGuard 1.4 started (1317670062.507)
2011-10-03 16:27:42 [13478] squidGuard ready for requests (1317670062.555)I use this commands:
#chown squid: /var/squid
#chmod 755 /var/log/
#chmod 755 /var/squidGuardAnd the errors disappear and i receive in the weblog of the squid:
03.10.2011 17:42:47 squidGuard ready for requests (1317674567.013)
03.10.2011 17:42:47 squidGuard 1.4 started (1317674566.945)In the the file /var/squid/log/cache.log:
2011/10/03 17:42:46| Adding nameserver X.X.X.X from /etc/resolv.conf
2011/10/03 17:42:46| Adding nameserver X.X.X.X from /etc/resolv.conf
2011/10/03 17:42:46| Adding nameserver X.X.X.X from /etc/resolv.conf
2011/10/03 17:42:46| Adding nameserver X.X.X.X from /etc/resolv.conf
2011/10/03 17:42:46| helperOpenServers: Starting 3 'squidGuard' processes2011-10-03 17:42:46 [1652] (squidGuard): can't write to logfile /var/log/squidGuard.log
2011-10-03 17:42:46 [1652] New setting: logdir: /var/squidGuard/log
2011-10-03 17:42:46 [1652] New setting: dbhome: /var/db/squidGuard
2011-10-03 17:42:46 [1652] init domainlist /var/db/squidGuard/blk_BL_adv/domains
2011-10-03 17:42:46 [1652] loading dbfile /var/db/squidGuard/blk_BL_adv/domains.db
2011-10-03 17:42:46 [1652] init urllist /var/db/squidGuard/blk_BL_adv/urls
2011-10-03 17:42:46 [1652] loading dbfile /var/db/squidGuard/blk_BL_adv/urls.dbI already have the message above. Some tips?
If someone need of more more information about the logs, state of packages of something about the pfSense let me know.
I read many articles and many tips but it didn't work. Please, could someone help me? :-\ Thanks very much!
-
There are permission issues on your install.
You can try to uninstall package and remove squidguard folders and then try to reinstall it.
-
I ever did it several times. Is there a mode of correct this issues without uninstall/install the packages? I think that it is a problem that affect the squid package permissions in use the squidguard. Can someone help me about set the correct permissions? Thanks a lot! ???