To configure ICAP, do the following: - To configure ICAP, in the squid.conf configuration file, add lines for processing ICAP:
icap_enable on
icap_service service_req reqmod_precache bypass=1 icap://10.60.7.7:1344/request
adaptation_access service_req allow all
icap_send_client_ip on
icap_send_client_username on
To configure working on ICAP UserGate Web Filter server, in the squid.conf configuration file, add the following:
icap_enable on
icap_preview_enable on
icap_preview_size 4096
icap_send_client_ip on
icap_service service_req reqmod_precache bypass=0 icap://10.0.3.10:1344/request
adaptation_access service_req allow all
icap_service service_resp respmod_precache bypass=0 icap://10.0.3.10:1344/response
adaptation_access service_resp allow all http_port 8080 transparent
where 10.0.3.10 - is the UserGate Web Filter server address. | Предупреждение |
|---|
| UserGate Web Filter server does not support icap_preview_enable off mode. Working with https traffic is not supported at the moment. |
Restart Squid: sudo service squid3 restart
|