配置 Squid 服务

2023年12月13日

ID 166324

如果 Kaspersky Web Traffic Security 是从 RPM 或 DEB 软件包安装到即用型操作系统的,则这些说明适用。如果 Kaspersky Web Traffic Security 是从 ISO 文件安装的,则无法手动更改内置代理服务器的配置文件。

要配置 Squid 服务,请:

  1. 更改 Squid 服务的设置。为此,添加以下字符串到配置文件 /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. 在同一个配置文件中,添加 tcpkeepalive 选项到 http_port 指令:

    http_port 3128 tcpkeepalive=60,30,3

  3. 重启 Squid 服务。为此,请执行命令:

    service squid restart

Squid 服务配置现在已完成。

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.