<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Squid_mit_ClamAV</id>
	<title>Squid mit ClamAV - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Squid_mit_ClamAV"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Squid_mit_ClamAV&amp;action=history"/>
	<updated>2026-06-29T15:02:00Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Squid_mit_ClamAV&amp;diff=4913&amp;oldid=prev</id>
		<title>Thomas: Die Seite wurde neu angelegt: „Sachen installieren  apt-get install squid3 clamav libclamav-dev make gcc  icap herunterladen und installieren  http://sourceforge.net/project/showfiles.php?gr…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Squid_mit_ClamAV&amp;diff=4913&amp;oldid=prev"/>
		<updated>2014-08-06T14:17:42Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Sachen installieren  apt-get install squid3 clamav libclamav-dev make gcc  icap herunterladen und installieren  http://sourceforge.net/project/showfiles.php?gr…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sachen installieren&lt;br /&gt;
 apt-get install squid3 clamav libclamav-dev make gcc&lt;br /&gt;
&lt;br /&gt;
icap herunterladen und installieren&lt;br /&gt;
 http://sourceforge.net/project/showfiles.php?group_id=123427&lt;br /&gt;
 tar -xzf ...&lt;br /&gt;
 ./configure --enable-static --with-clamav --prefix=/usr/local/icap&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Gruppe nobody für icap erstellen, falls diese nicht existiert&lt;br /&gt;
 groupadd nobody&lt;br /&gt;
&lt;br /&gt;
Konfiguration von c_icap&lt;br /&gt;
/usr/local/icap/etc/c-icap.conf&lt;br /&gt;
man ändert “User wwwrun” zu “User proxy” und fügt am Ende der Config folgende Zeilen ein:&lt;br /&gt;
 acl localsquid_respmod src 127.0.0.1 type respmod&lt;br /&gt;
 acl localsquid src 127.0.0.1&lt;br /&gt;
 acl externalnet src 0.0.0.0/0.0.0.0&lt;br /&gt;
 icap_access allow localsquid_respmod&lt;br /&gt;
 icap_access allow localsquid&lt;br /&gt;
 icap_access deny externalnet&lt;br /&gt;
&lt;br /&gt;
Squid-Konfiguration:&lt;br /&gt;
 icap_enable on&lt;br /&gt;
 icap_preview_enable on&lt;br /&gt;
 icap_preview_size 128&lt;br /&gt;
 icap_send_client_ip on&lt;br /&gt;
 #icap_send_auth_user on&lt;br /&gt;
 icap_send_auth_username on&lt;br /&gt;
 #icap_auth_scheme Local://%u&lt;br /&gt;
 icap_service service_avi_req reqmod_precache 0 icap://localhost:1344/srv_clamav&lt;br /&gt;
 icap_service service_avi respmod_precache 1 icap://localhost:1344/srv_clamav&lt;br /&gt;
 #icap_class class_antivirus service_avi service_avi_req&lt;br /&gt;
 #icap_access class_antivirus allow all &lt;br /&gt;
 icap_class class_antivirus service_avi&lt;br /&gt;
 icap_access class_antivirus allow all !lan&lt;br /&gt;
 icap_class class_antivirus_req service_avi_req&lt;br /&gt;
 icap_access class_antivirus_req allow all&lt;br /&gt;
&lt;br /&gt;
noch die acl lan mit dem Lokalen Netzwerk konfigurieren&lt;br /&gt;
 acl lan  dst 192.168.240.0/20&lt;br /&gt;
damit lokale Sachen und vor allem die heruntergeladenen Dateien vom Proxy nicht über icap laufen&lt;br /&gt;
&lt;br /&gt;
Download-Verzeichnis von heruntergeladenen Dateien in (/usr/local/icap/etc/c-icap.conf) gegebenenfalls erstellen und am besten Rechte 777 vergeben. :&lt;br /&gt;
 srv_clamav.VirSaveDir /var/www/downloads&lt;br /&gt;
&lt;br /&gt;
Die Datei get_file.pl aus dem Sourcenverzeichnis in contrib nach /usr/lib/cgi-bin kopieren  &lt;br /&gt;
 cp /usr/src/c_icap-060708rc1/contrib/get_file.pl /usr/lib/cgi-bin/&lt;br /&gt;
nicht vergessen die Datei ausführbar zu machen&lt;br /&gt;
 chmod +x /usr/lib/cgi-bin/get_file.pl&lt;br /&gt;
und in der Datei die Filevariable umbenennen&lt;br /&gt;
 vi /usr/lib/cgi-bin/get_file.pl&lt;br /&gt;
 $filename=&amp;quot;/var/www/downloads/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Fehlermeldungen ==&lt;br /&gt;
&lt;br /&gt;
beim configure von c_icap&lt;br /&gt;
 configure: error: no acceptable C compiler found in $PATH&lt;br /&gt;
&lt;br /&gt;
Es muss ein C Compiler inkl. Abhängigkeiten installiert werden:&lt;br /&gt;
 apt-get install gcc&lt;br /&gt;
 inklusiv Abhängigkeiten&lt;br /&gt;
&lt;br /&gt;
checking for C compiler default output file name… configure: error: C compiler cannot create executables&lt;br /&gt;
G++ inkl. Abhängigkeiten installieren&lt;br /&gt;
 apt-get install g++&lt;br /&gt;
 -bash: make: command not found&lt;br /&gt;
&lt;br /&gt;
make inkl. Abhängigkeiten installieren&lt;br /&gt;
 apt-get install make&lt;br /&gt;
&lt;br /&gt;
bei make von c_icap&lt;br /&gt;
 srv_clamav.c:27:20: error: clamav.h: No such file or directory&lt;br /&gt;
 srv_clamav.c:121: error: invalid use of undefined type ’struct cl_limits’&lt;br /&gt;
&lt;br /&gt;
clam Antivirus library development files müssen installiert werden&lt;br /&gt;
 apt-get install libclamav-dev&lt;br /&gt;
&lt;br /&gt;
bei make install von c_icap&lt;br /&gt;
 chgrp nobody /usr/local/icap/var/log/&lt;br /&gt;
 chgrp: ungültige Gruppe nobody&lt;br /&gt;
&lt;br /&gt;
Gruppe nobody anlegen und make install erneut ausführen&lt;br /&gt;
 groupadd nobody&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
{{HOWTO}}&lt;/div&gt;</summary>
		<author><name>Thomas</name></author>
	</entry>
</feed>