That's elementary and ecplained in squidclamav documentation. Just read it.
Use squidclamav as primary redirector in squid.conf, set squidGuard as
secondary redirector in squidclamav.conf
My squidclamav.conf:
-------------------------------
#-----------------------------------------------------------------------------
# SquidClamav v5.3 default configuration file
#
# To know to customize your configuration file, see squidclamav manpage
# or go to http://squidclamav.darold.net/
#
#-----------------------------------------------------------------------------
#
# Global configuration
#
squid_ip 127.0.0.1
squid_port 3128
logfile /usr/local/squid/var/logs/squidclamav.log
maxsize 5000000
redirect http://localhost/cgi-bin/clwarn.cgi.ru_RU
squidguard /usr/local/bin/squidGuard
debug 0
stat 0
maxredir 96
clamd_local /tmp/clamd.socket
clamd_ip 127.0.0.1
clamd_port 3310
timeout 60
useragent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
trust_cache 0
logredir 0
My squid.conf fragment:
-----------------------------------
# SquidGuard rewriter
#url_rewrite_program /usr/local/bin/squidGuard -c
/usr/local/squidGuard/squidGuard.conf
# SquidClamAV rewriter
url_rewrite_program /usr/local/bin/squidclamav
url_rewrite_children 96
redirect_rewrites_host_header on
#redirector_bypass on
All works perfectly.
On 2/27/11, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 27/02/11 13:58, marco wrote:
>> Howdi folks,
>>
>> Iam using squid 2.7 with clamav and Squidguard, all works fine.
>> For the CEO of a Company i setup webmin, that he can get done his jobs
>> easy
>> by gui.
>> I installed the webmin extension für SquidGuard, but it says squidguard
>> isn´t configured in the cfg.
>> Thats right, but if i do this, it will insert "redirect_programm
>> /usr/local/bin/squidGuard" and clamav fails....
>>
>> for squidclamav i used url_rewrite_programm. In the Configfile from
>> squidclamav i can add squidguard, but the Webminmodule says then "not
>> insert
>> in squid cfg file".
>>
>> Is there a way to do handle the problem ?
>
> Not with Squid. Only one helper is possible in Squid.
>
> This is a webmin problem detecting the wrong config state. Contact the
> webmin project for help.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE9 or 3.1.11
> Beta testers wanted for 3.2.0.5
>
-- -= WBR, Yuri. Powered by Google =-Received on Sun Feb 27 2011 - 06:52:51 MST
This archive was generated by hypermail 2.2.0 : Sun Feb 27 2011 - 12:00:03 MST