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

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 03 May 2010 22:12:31 +1200

Landy Landy wrote:
> 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)

This is 1/5...

> 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)

... 2/5...

> 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)

... 3/5 ... no information about SG instances 4/5 or 5/5 or what
happened during your failed test request when they were all running.

Also, try setting "debug_options 84,9 " to get a view of what lines are
being passed in and real back from the helpers.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.3
Received on Mon May 03 2010 - 10:12:38 MDT

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