Search squid archive

Re: how to use adaptation_service_chain ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear

I'm using squid 3.1.4

i would like to use 2 AV ICAP services chains but i did not really
understand how to use adaptation_service_chain

here it is my config

# --------- ICAP Services.(2 service(s))

icap_enable on
icap_preview_enable off
icap_preview_size 128
icap_send_client_ip on
icap_send_client_username on
icap_client_username_header X-Authenticated-User
icap_client_username_encode on

# Kaspersky For Proxy server:
# --------- icap_service KASPERSKY mode 3.1.1

icap_service is_kav_resp respmod_precache 0
icap://127.0.0.1:1344/av/respmod
icap_service is_kav_req reqmod_precache 0 icap://127.0.0.1:1344/av/reqmod

# --------- adaptation

adaptation_access is_kav_req allow all
adaptation_access is_kav_resp allow all
adaptation_service_set class_kavAV service is_kav_resp

# C-ICAP:
# --------- icap_service C-ICAP mode 3.1.x
acl MULTIMEDIA rep_mime_type -i
^(audio\/x-mpegurl|audio\/mpeg|video\/flv|video\/x-flv|application\/x-shockwave-flash|audio\/ogg|video\/ogg|application\/ogg)$

icap_service service_antivir respmod_precache 1
icap://127.0.0.1:1344/srv_clamav

adaptation_service_set class_antivirus service_antivir
adaptation_access class_antivirus deny MULTIMEDIA
adaptation_access class_antivirus allow all


does the directive

adaptation_service_chain class_kavAV class_antivirus

is the right one in order to set Kaspersky has the first av and C-ICAP
has the second ?

Best regards







On 27/08/2010 13:41, David Touzeau wrote:
I have made some fix (especially the name of the service_chain class)

squid reject the configuration directive by

2010/08/27 15:15:20| ERROR: ERROR: Unknown adaptation name class_antivirus in adaptation chain 'class_chain' 2010/08/27 15:15:20| ERROR: ERROR: Unknown adaptation name class_kavAV in adaptation chain 'class_chain'

this event specify that i'm really wrong but i did not known wich adaptation name i must specify in adaptation chain ??


# --------- ICAP Services.(2 service(s))

# Kaspersky For Proxy server:
# --------- icap_service KASPERSKY mode 3.1.1

icap_service	is_kav_resp respmod_precache 0 icap://127.0.0.1:1344/av/respmod
icap_service	is_kav_req reqmod_precache 0 icap://127.0.0.1:1344/av/reqmod

# --------- adaptation

adaptation_service_set class_kavAV is_kav_resp
adaptation_access is_kav_req allow all
adaptation_access is_kav_resp allow all

# C-ICAP:
# --------- icap_service C-ICAP mode 3.1.x
acl MULTIMEDIA rep_mime_type -i ^(audio\/x-mpegurl|audio\/mpeg|video\/flv|video\/x-flv|application\/x-shockwave-flash|audio\/ogg|video\/ogg|application\/ogg)$
# --------- icap_service C-ICAP + SquidGuard
icap_service service_url_check reqmod_precache 1 icap://127.0.0.1:1345/url_check

# --------- adaptation

adaptation_service_set  class_url_check   service_url_check
adaptation_access  class_url_check  allow all
icap_service service_antivir respmod_precache 1 icap://127.0.0.1:1345/srv_clamav

# --------- adaptation

adaptation_service_set  class_antivirus service_antivir
adaptation_access       class_antivirus deny MULTIMEDIA
adaptation_access       class_antivirus allow all

icap_enable on
icap_preview_enable off
icap_preview_size 128
icap_service_failure_limit -1
icap_send_client_ip on
icap_send_client_username on
icap_client_username_header X-Authenticated-User
icap_client_username_encode on


adaptation_service_chain class_chain class_antivirus class_kavAV


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux