<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nomorebluescreen.de/index.php?action=history&amp;feed=atom&amp;title=Proxy_mit_Virenscanner</id>
	<title>Proxy mit Virenscanner - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nomorebluescreen.de/index.php?action=history&amp;feed=atom&amp;title=Proxy_mit_Virenscanner"/>
	<link rel="alternate" type="text/html" href="https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;action=history"/>
	<updated>2026-05-05T14:01:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=190&amp;oldid=prev</id>
		<title>Sunflower at 23:03, 30 October 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=190&amp;oldid=prev"/>
		<updated>2018-10-30T23:03:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:03, 30 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 84:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; http://c-icap.sourceforge.net/install.html&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; http://c-icap.sourceforge.net/install.html&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; http://www.perl-online.com/blog/archives/937&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; http://www.perl-online.com/blog/archives/937&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;https://wiki.squid-cache.org/ConfigExamples/ContentAdaptation/C-ICAP&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:1.41:old-186:rev-190:wikidiff2=table:1.14.1:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>Sunflower</name></author>
	</entry>
	<entry>
		<id>https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=186&amp;oldid=prev</id>
		<title>Sunflower: /* c-icap installieren und einrichten */</title>
		<link rel="alternate" type="text/html" href="https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=186&amp;oldid=prev"/>
		<updated>2018-10-30T20:22:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;c-icap installieren und einrichten&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:22, 30 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==c-icap installieren und einrichten==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==c-icap installieren und einrichten==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;c-icap installieren&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;c-icap herunterladen und auspacken, dann ins entpackte Verzeichnis wechseln und kompiliern&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; # ./configure --prefix=/usr/local/c-icap --with-clamav&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_7_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_5_0_rhs&quot;&gt;&lt;/a&gt; # &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;apt&lt;/ins&gt; install&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; c-icap&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; # make&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_5_0_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_7_0_lhs&quot;&gt;&lt;/a&gt; # &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;make&lt;/del&gt; install&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Eventuell auftretende Fehlermeldungen deuten mit hoher Wahrscheinlichkeit auf fehlende Dependencies hin, z.B. fehlten in vorliegendem Fall die Pakete libclamav-dev und libltdl3-dev.&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Config:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Config:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:1.41:old-34:rev-186:wikidiff2=table:1.14.1:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>Sunflower</name></author>
	</entry>
	<entry>
		<id>https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=34&amp;oldid=prev</id>
		<title>Sunflower: Die Seite wurde neu angelegt: „Ziel ist, einen On-the-Fly-Virenscanner einzurichten, der Datein bereits beim Herunterladen im Browser auf Viren scannt. Hierfür brauchen wir 3 Komponenten: * sq…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.nomorebluescreen.de/index.php?title=Proxy_mit_Virenscanner&amp;diff=34&amp;oldid=prev"/>
		<updated>2012-03-13T22:22:38Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Ziel ist, einen On-the-Fly-Virenscanner einzurichten, der Datein bereits beim Herunterladen im Browser auf Viren scannt. Hierfür brauchen wir 3 Komponenten: * sq…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Ziel ist, einen On-the-Fly-Virenscanner einzurichten, der Datein bereits beim Herunterladen im Browser auf Viren scannt. Hierfür brauchen wir 3 Komponenten:&lt;br /&gt;
* squid, mindestens in der Version 3&lt;br /&gt;
* clamav&lt;br /&gt;
* c-icap als Verbindungsstück zwischen Proxy und Virenscanner&lt;br /&gt;
&lt;br /&gt;
==Squid installieren und konfigurieren==&lt;br /&gt;
&lt;br /&gt;
Zum Thema squid gibt es ja bereits eine Anleitung [[Proxy einrichten]]. Hier soll nur auf die icap-Integration eingegangen werden. Bei der Installation ist zu beachten, dass squid erst ab Version 3 mit icap zusammenarbeiten kann:&lt;br /&gt;
 # aptitude install squid3&lt;br /&gt;
Dann in der squid.conf den icap-Abschnitt heraussuchen und folgende Einstellungen vornehmen:&lt;br /&gt;
&lt;br /&gt;
 http_port 3128&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_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;
&lt;br /&gt;
==Clamav installieren==&lt;br /&gt;
Installiert werden clamav (die Scan-Engine), clamav-daemon und clamav-freshclam (zum Updaten der Patterns). Es empfiehlt sich eine möglichst neue Version zu nehmen, da bei älteren Versionen der freshclam desöfteren Probleme mit dem Update der Virenpatterns hat.&lt;br /&gt;
 # aptitude install -t testing clamav clamav-daemon clamav-freshclam&lt;br /&gt;
&lt;br /&gt;
Ein &amp;#039;&amp;#039;&amp;#039;&amp;#039;ps aux&amp;#039;&amp;#039;&amp;#039;&amp;#039; sollte dann die Prozesse clamd und freshclam zeigen.&lt;br /&gt;
&lt;br /&gt;
==c-icap installieren und einrichten==&lt;br /&gt;
c-icap herunterladen und auspacken, dann ins entpackte Verzeichnis wechseln und kompiliern&lt;br /&gt;
 # ./configure --prefix=/usr/local/c-icap --with-clamav&lt;br /&gt;
 # make&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
Eventuell auftretende Fehlermeldungen deuten mit hoher Wahrscheinlichkeit auf fehlende Dependencies hin, z.B. fehlten in vorliegendem Fall die Pakete libclamav-dev und libltdl3-dev.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Config:&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Voraussetzung: Host liegt im Netz 192.168.178.0/24, Zugriff soll nur von intern erfolgen, gescannte Files werden in /srv/www/downloads zwischengelagert&lt;br /&gt;
&lt;br /&gt;
Editiert wird die Datei  /usr/local/c-icap/etc/c-icap.conf. In den meisten Fällen sind die Defaults ausreichend. Hier ein Beispiel für Variablen, die geändert werden sollen/müssen:&lt;br /&gt;
&lt;br /&gt;
 User wwwrun&lt;br /&gt;
 Group nogroup&lt;br /&gt;
 acl localnet src 192.168.178.0/255.255.255.0&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 localnet&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;
 srv_clamav.VirSaveDir /srv/www/downloads/&lt;br /&gt;
 srv_clamav.VirHTTPServer  &amp;quot;http://localhost/cgi-bin/get_file.pl?usename=%f&amp;amp;remove=1&amp;amp;file=&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Abschließende Arbeiten==&lt;br /&gt;
&lt;br /&gt;
Anschließend noch den User “wwwrun“ hinzufügen und eine /bin/false als Shell zuweisen.&lt;br /&gt;
Das Verzeichnis, in dem heruntergeladene Dateien zwischengespeichert werden, anlegen und die Rechte setzen:&lt;br /&gt;
 chown -R wwwuser.www-data /srv/www&lt;br /&gt;
 chmod -R 754 /srv/www&lt;br /&gt;
&lt;br /&gt;
Der Download von Dateien erfolgt über ein cgi-Script. Daher muss auf dem Proxy ein Webserver laufen. Apache installieren und das Script “get_file.pl“ aus den Sourcen (im contrib-Verzeichnis) nach  /usr/lib/cgi-bin/ kopieren. Darauf achten, dass es für alle lesbar ist. Eine kleine Anpassung ist noch an das Script zu machen: Die filename-Variable muss auf den in die c-icap.conf eingetragenen Wert gesetzt werden, in unserem Fall also statt&lt;br /&gt;
 $filename=&amp;quot;/srv/www/htdocs/downloads/&amp;quot;.$args{&amp;quot;file&amp;quot;};&lt;br /&gt;
den aktuellen Pfad&lt;br /&gt;
 $filename=&amp;quot;/srv/www/downloads/&amp;quot;.$args{&amp;quot;file&amp;quot;};&lt;br /&gt;
&lt;br /&gt;
Danach den icap-Dienst starten. Für den Anfang kann man ihn erstmal nicht als Daemon und mit hohem debug-Level starten:&lt;br /&gt;
 # bin/c-icap -D -N -d 10&lt;br /&gt;
Ein Neustart erfolgt mittels&lt;br /&gt;
 pkill c-icap &amp;amp;&amp;amp; bin/c-icap&lt;br /&gt;
Da dies nicht sehr elegant ist, empfiehlt sich die Verwendung eines Startscripts. Hierfür lässt sich die Vorlage unter /etc/init.d/skeleton verwenden. Ein Beispielscript ist unter [[c-icap.sh]] hinterlegt. Dann muss das Initscript noch in die einzelnen Runlevel verlinkt werden:&lt;br /&gt;
 # update-rc.d  c-icap defaults&lt;br /&gt;
&lt;br /&gt;
Danach noch squid, c-icap und clamav durchstarten, den Proxy im Browser eintragen (localhost:3128) und testweise Dateien, z.B. den altbewährten eicar-Testvirus [[http://eicar.org/]], herunterladen (letztere sollte die Fehlermeldung “Virus found“ hervorrufen).&lt;br /&gt;
&lt;br /&gt;
Sollte etwas nicht funktionieren, wird man im in ServerLog angegebenen Logfile fündig. Default ist /usr/local/c-icap/var/log/server.log .&lt;br /&gt;
&lt;br /&gt;
==Anmerkungen==&lt;br /&gt;
Ein Problem ist, dass https-Dateien nicht gescannt werden, s. z.B. https://secure.eicar.org/eicar.com.txt&lt;br /&gt;
&lt;br /&gt;
Außerdem sollte ein cronjob eingerichtet werden, der regelmäßig die Files im c-icap-Cache löscht. Hier ein Beispiel für die Verweildauer von 100 Tagen:&lt;br /&gt;
 find /srv/www/downloads/ -mtime +100 | xargs rm&lt;br /&gt;
&lt;br /&gt;
Nützliche Links&lt;br /&gt;
 http://sourceforge.net/projects/c-icap/&lt;br /&gt;
 http://www.freebsdonline.com/content/view/345/354/&lt;br /&gt;
 http://c-icap.sourceforge.net/install.html&lt;br /&gt;
 http://www.perl-online.com/blog/archives/937&lt;/div&gt;</summary>
		<author><name>Sunflower</name></author>
	</entry>
</feed>