Squid und ClamAV: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 12: | Zeile 12: | ||
*cd squidclamav | *cd squidclamav | ||
*./configure && make && make install | *./configure && make && make install | ||
| + | =Squid Konfiguration erweitern= | ||
| + | ;/etc/squid/squid.conf | ||
| + | <pre> | ||
| + | ... | ||
| + | icap_enable on | ||
| + | icap_send_client_ip on | ||
| + | icap_send_client_username on | ||
| + | icap_client_username_encode off | ||
| + | icap_client_username_header X-Authenticated-User | ||
| + | icap_preview_enable on | ||
| + | icap_preview_size 1024 | ||
| + | |||
| + | icap_service service_req reqmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav | ||
| + | icap_service service_resp respmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav | ||
| + | |||
| + | adaptation_access service_req allow all | ||
| + | adaptation_access service_resp allow all | ||
| + | ... | ||
| + | </pre> | ||
=Links= | =Links= | ||
*https://github.com/darold/squidclamav | *https://github.com/darold/squidclamav | ||
Version vom 24. September 2022, 17:29 Uhr
Installation von Clamav
- apt install c-icap clamav clamdscan libicapapi-dev libssl-dev
Tool zum kompilieren
apt install gcc make
Über git clone squidclamav Source runterladen
- Wenn noch nicht geschehen git installieren
apt install git
- git clone https://github.com/darold/squidclamav
Kompilieren
- cd squidclamav
- ./configure && make && make install
Squid Konfiguration erweitern
- /etc/squid/squid.conf
... icap_enable on icap_send_client_ip on icap_send_client_username on icap_client_username_encode off icap_client_username_header X-Authenticated-User icap_preview_enable on icap_preview_size 1024 icap_service service_req reqmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav icap_service service_resp respmod_precache bypass=0 icap://127.0.0.1:1344/squidclamav adaptation_access service_req allow all adaptation_access service_resp allow all ...