<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>clamav Archive - Serverbiz</title>
	<atom:link href="https://www.serverbiz.de/tag/clamav/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.serverbiz.de/tag/clamav/</link>
	<description>vServer und Rootserver mieten</description>
	<lastBuildDate>Thu, 21 Apr 2022 20:47:58 +0000</lastBuildDate>
	<language>de-DE</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://www.serverbiz.de/wp-content/uploads/2022/04/cropped-serverbiz-icon-500-32x32.png</url>
	<title>clamav Archive - Serverbiz</title>
	<link>https://www.serverbiz.de/tag/clamav/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Automatischer Virenscan unter Linux Debian</title>
		<link>https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/</link>
					<comments>https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/#comments</comments>
		
		<dc:creator><![CDATA[Serverbiz Team]]></dc:creator>
		<pubDate>Fri, 28 Sep 2012 21:32:22 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[scan]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virus]]></category>
		<guid isPermaLink="false">http://blog.serverbiz.de/?p=584</guid>

					<description><![CDATA[<p>Täglicher Viren-Scan unter Linux Debian / Ubuntu Zuerst prüfen wir, ob das System aktuell ist apt-get update apt-get upgrade Jetzt ... <a class="cz_readmore" href="https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/"><i class="fa fa-angle-right"></i><span>Mehr lesen</span></a></p>
<p>Der Beitrag <a rel="nofollow" href="https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/">Automatischer Virenscan unter Linux Debian</a> erschien zuerst auf <a rel="nofollow" href="https://www.serverbiz.de">Serverbiz</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Täglicher Viren-Scan unter Linux Debian / Ubuntu</h2>
<p>Zuerst prüfen wir, ob das System aktuell ist</p>
<p>apt-get update<br />
apt-get upgrade</p>
<p>Jetzt installieren wir die benötigten Pakete</p>
<p>apt-get install mailutils clamav</p>
<p>Sollte kein Dienst zum versenden von Mails installiert sein, sollten wir noch Postfix installieren</p>
<p>apt-get install postfix</p>
<p>Jetzt erstellen wir das Verzeichnis, wo zukünftig der Scan- Log gespeichert wird</p>
<p>mkdir /home/clamav</p>
<p>Nun erstellen wir das Script, welches den Viren-Scan durch ClamAV auslöst</p>
<p>nano /root/clamav.sh</p>
<p>Mit folgendem Inhalt<br />
<span id="more-1992"></span></p>
<p>#!/bin/sh</p>
<p>### Bitte Anpassen</p>
<p>mailbetrefffund=&#8220;!!! VIRENFUND !!! &#8211; servername&#8220;<br />
mailbetreffkeinfund=&#8220;Kein Virus gefunden &#8211; servername&#8220;<br />
adminmail=&#8220;webmaster@domain.de&#8220;</p>
<p>### Ab hier muss nichts mehr geändert werden</p>
<p>rm -R /home/clamav/scanlog.log<br />
clamscan / &#8211;recursive=yes &#8211;log=/home/clamav/scanlog.log &#8211;infected &#8211;scan-html=yes &#8211;scan-pdf=yes</p>
<p>if grep -rl &#8218;Infected files: 0&#8216; /home/clamav/scanlog.log<br />
then cat /home/clamav/scanlog.log | mail -s &#8222;$mailbetreffkeinfund&#8220; $adminmail<br />
else cat /home/clamav/scanlog.log | mail -s &#8222;$mailbetrefffund&#8220; $adminmail<br />
fi[/sourcecode]</p>
<p>Jetzt erstellen wir noch einen Cronjob, der den Scan jede Nacht um 04:30 Uhr startet</p>
<p>[sourcecode language=&#8220;text&#8220;]crontab -e[/sourcecode]</p>
<p>[sourcecode language=&#8220;powershell&#8220;]## ClamAV<br />
30 4 * * * /bin/bash /root/clamav.sh</p>
<p>Sie erhalten nun eine E-Mail wenn ein Virus gefunden wird. In der Mail finden Sie den Pfad um die schädliche Datei umgehend zu löschen.</p>
<p>Der Beitrag <a rel="nofollow" href="https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/">Automatischer Virenscan unter Linux Debian</a> erschien zuerst auf <a rel="nofollow" href="https://www.serverbiz.de">Serverbiz</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.serverbiz.de/automatischer-virenscan-unter-linux-debian/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
