Ladies and Gents;

After rather a long time tring to get squid work with squidguard
without success, I decided to ask for help on this list. 
config first:

General
===
squid version: squid-2.5.STABLE1-2
OS: Redhat 9
Kernel: 2.4.20-30.9 
squidGuard: version 1.2.0

Relevant Snippet of Squid.conf
===
#  TAG: redirect_program
redirect_program /usr/local/squidguard/squidguard

#  TAG: redirect_children
#Default:
# redirect_children 5

# redirect_rewrites_host_header on
#Default:
# redirect_rewrites_host_header on

#  TAG: redirector_access
#Default:
# none

squidGuard.conf
===
dbhome /usr/local/squidguard/db

acl {
    default {
        pass none
        redirect www.domain.com/blocked?ip=%a&url=%u
        log block.log
    }
}
==============

OKay, so now squidguard should redirect every request. This test confirms it:

# echo "http://foo/bar 10.0.0.1/- - GET" | ./squidguard
www.domain.com/proxy/?ip=10.0.0.1&url=http://foo/bar 10.0.0.1/- - GET
# 

So what's the problem? The problem is that under squid, no redirection occurs.

The redirector processes are launched and squidgaurd is not in emergency mode. 
Moreover, I see that a new entry is appeneded to block.log of squidgard for 
every request squid serves:

2004-04-14 15:22:00 [25044] Request(default/none/-) http://www.anydomain.com/ 
10.1.1.10/- - GET

----
So there are 2 posiblities. Either squid, for a reason I dont know, does not
honor redirector output or the redirector is sending a malformatted output
which squid does not understand. 

The entries in block.log of squidguard shows squid tries to comminucate with
the redirector. However tring to debug squid redirector code section
(debug_options 29, 9), yields no output in cache.log of squid.

So what's the matter? Hope I am not missing something obvious or it's not a bug 
everyone is aware of. I tried to figure it out by myself without any success.


Regards,
Mohsen Moeeni,

Reply via email to