Configuring the Squid service

December 13, 2023

ID 166324

These instructions are applicable if Kaspersky Web Traffic Security was installed from an RPM or DEB package to a ready-to-use operating system. If Kaspersky Web Traffic Security was installed from an ISO file, configuration files for the built-in proxy server cannot be manually changed.

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://127.0.0.1:1344/av/reqmod

    icap_service kwts_res respmod_precache icap://127.0.0.1:1344/av/respmod

    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.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.