Re: [squid-users] Squid not redirecting to squidGuard

From: Luis Daniel Lucio Quiroz <luis.daniel.lucio_at_gmail.com>
Date: Mon, 3 May 2010 01:37:17 -0500

Le dimanche 2 mai 2010 19:25:33, Landy Landy a écrit :
> Hello all.
>
> I've been trying to get squidguard to work but, I'm having a problem:
>
> I noticed is squid is not redirecting any traffic to squidguard. When I do
> a dry-run with squidGuard:
>
> echo "http://www.playboy.com - - GET" |
> /usr/local/squidGuard/bin/squidGuard -c /usr/local/squidGuard/test.conf -d
>
> It seems to work
>
> 2010-05-02 20:21:54 [2072] New setting: dbhome: /usr/local/squidGuard/db/BL
> 2010-05-02 20:21:54 [2072] New setting: logdir: /usr/local/squidGuard/log
> 2010-05-02 20:21:54 [2072] init domainlist
> /usr/local/squidGuard/db/BL/porn/domains 2010-05-02 20:21:54 [2072]
> loading dbfile /usr/local/squidGuard/db/BL/porn/domains.db 2010-05-02
> 20:21:54 [2072] init urllist /usr/local/squidGuard/db/BL/porn/urls
> 2010-05-02 20:21:54 [2072] loading dbfile
> /usr/local/squidGuard/db/BL/porn/urls.db 2010-05-02 20:21:54 [2072]
> squidGuard 1.4 started (1272846114.931) 2010-05-02 20:21:54 [2072]
> squidGuard ready for requests (1272846114.935) 2010-05-02 20:21:54 [2072]
> source not found
> 2010-05-02 20:21:54 [2072] no ACL matching source, using default
> http://172.16.0.1:8080/splash/ -/- - GET
> 2010-05-02 20:21:55 [2072] squidGuard stopped (1272846115.002)
>
> It gets redirected to http://172.16.0.1:8080/splash/ ....
>
> But when I use it with squid:
>
> url_rewrite_children 5
> url_rewrite_program /usr/local/squidGuard/bin/squidGuard -d -c
> /usr/local/squidGuard/test.conf redirector_bypass on
>
> The logs show that is running:
>
> 2010/05/02 20:11:22| helperOpenServers: Starting 5/5 'squidGuard' processes
> 2010-05-02 20:11:22 [2041] New setting: dbhome: /usr/local/squidGuard/db/BL
> 2010-05-02 20:11:22 [2041] New setting: logdir: /usr/local/squidGuard/log
> 2010-05-02 20:11:22 [2041] init domainlist
> /usr/local/squidGuard/db/BL/porn/domains 2010-05-02 20:11:22 [2041]
> loading dbfile /usr/local/squidGuard/db/BL/porn/domains.db 2010-05-02
> 20:11:22 [2041] init urllist /usr/local/squidGuard/db/BL/porn/urls
> 2010-05-02 20:11:22 [2041] loading dbfile
> /usr/local/squidGuard/db/BL/porn/urls.db 2010-05-02 20:11:22 [2041]
> squidGuard 1.4 started (1272845482.937) 2010-05-02 20:11:22 [2041]
> squidGuard ready for requests (1272845482.940) 2010-05-02 20:11:22 [2042]
> New setting: dbhome: /usr/local/squidGuard/db/BL 2010-05-02 20:11:22
> [2042] New setting: logdir: /usr/local/squidGuard/log 2010-05-02 20:11:22
> [2042] init domainlist /usr/local/squidGuard/db/BL/porn/domains 2010-05-02
> 20:11:22 [2042] loading dbfile /usr/local/squidGuard/db/BL/porn/domains.db
> 2010-05-02 20:11:22 [2042] init urllist
> /usr/local/squidGuard/db/BL/porn/urls 2010-05-02 20:11:22 [2042] loading
> dbfile /usr/local/squidGuard/db/BL/porn/urls.db 2010-05-02 20:11:22 [2042]
> squidGuard 1.4 started (1272845482.955) 2010-05-02 20:11:22 [2042]
> squidGuard ready for requests (1272845482.967) 2010-05-02 20:11:22 [2043]
> New setting: dbhome: /usr/local/squidGuard/db/BL 2010-05-02 20:11:22
> [2043] New setting: logdir: /usr/local/squidGuard/log 2010-05-02 20:11:22
> [2043] init domainlist /usr/local/squidGuard/db/BL/porn/domains 2010-05-02
> 20:11:22 [2043] loading dbfile /usr/local/squidGuard/db/BL/porn/domains.db
> 2010-05-02 20:11:22 [2043] init urllist
> /usr/local/squidGuard/db/BL/porn/urls 2010-05-02 20:11:22 [2043] loading
> dbfile /usr/local/squidGuard/db/BL/porn/urls.db 2010-05-02 20:11:22 [2043]
> squidGuard 1.4 started (1272845482.971) 2010-05-02 20:11:22 [2043]
> squidGuard ready for requests (1272845482.974)
>
> Don't understand why is not working...
>
> Any suggestions?
>
> Thanks in advanced for yout time.

I'm not sure you should use redirector_bypass on, turn it off.
If that doesnt works, then:

Just to be 100% sure, add this line
url_rewrite_access allow all

in case you have modified default values when compiling squid

LD
Received on Mon May 03 2010 - 06:36:37 MDT

This archive was generated by hypermail 2.2.0 : Mon May 03 2010 - 12:00:03 MDT