Configuring the Squid service

To configure the Squid service:

  1. Change the settings of the Squid service. To do so, add the following strings to the end of the configuration file /etc/squid/squid.conf:

    icap_enable on

    adaptation_send_username on

    adaptation_send_client_ip on

    icap_service kwts_req reqmod_precache icap://

    icap_service kwts_res respmod_precache icap://

    icap_service_failure_limit -1

    adaptation_access kwts_req allow all

    adaptation_access kwts_res allow all

  2. In this same configuration file, add the tcpkeepalive option to the http_port directive:

    http_port 3128 tcpkeepalive=60,30,3

  3. Restart the Squid service. To do so, execute the command:

    service squid restart

Configuration of the Squid service is now finished.

Page top