{"id":416,"date":"2021-02-05T12:49:08","date_gmt":"2021-02-05T11:49:08","guid":{"rendered":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/?p=416"},"modified":"2021-02-08T07:26:24","modified_gmt":"2021-02-08T06:26:24","slug":"clamav-solution-antivirale-open-source","status":"publish","type":"post","link":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/clamav-solution-antivirale-open-source\/","title":{"rendered":"clamav &#8211; solution antivirale open source"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-content\/uploads\/sites\/2\/2021\/02\/clamav.png\" alt=\"clamav\" \/><\/p>\n<p>ClamAV est un antivirus open source (GPL) con\u00e7u pour d\u00e9tecter les chevaux de Troie, les virus, les logiciels malveillants et autres menaces malveillantes sur Linux. Cet article d\u00e9taille l&rsquo;installation pas-\u00e0-pas de la solution.<\/p>\n<p><!--more--><\/p>\n<h1>Installer le moteur clamav<\/h1>\n<p>Lancer les commandes suivantes depuis votre terminal<\/p>\n<pre><code># apt-get purge -y clamav-unofficial-sigs\n# apt-get update &amp;&amp; apt-get install -y clamav-base clamav-freshclam clamav clamav-daemon\n<\/code><\/pre>\n<pre><code># mkdir -p \/usr\/local\/sbin\/\n\n# wget https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/clamav-unofficial-sigs.sh -O \/usr\/local\/sbin\/clamav-unofficial-sigs.sh &amp;&amp; chmod 755 \/usr\/local\/sbin\/clamav-unofficial-sigs.sh\n\n# mkdir -p \/etc\/clamav-unofficial-sigs\/\n# wget https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/config\/master.conf -O \/etc\/clamav-unofficial-sigs\/master.conf\n\n# wget https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/config\/user.conf -O \/etc\/clamav-unofficial-sigs\/user.conf\n\n# wget \"https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/config\/os\/os.debian.conf\" -O \/etc\/clamav-unofficial-sigs\/os.conf\n<\/code><\/pre>\n<p>Executer le script suivant afin de s&rsquo;assurer qu&rsquo;il n&rsquo;y a pas d&rsquo;erreurs, corriger les d\u00e9pendances manquantes le script doit s&rsquo;ex\u00e9cuter une fois en tant que super-utilisateur pour d\u00e9finir toutes les autorisations et cr\u00e9er les r\u00e9pertoires pertinents<\/p>\n<pre><code>\/usr\/local\/sbin\/clamav-unofficial-sigs.sh --force\n<\/code><\/pre>\n<p>Installer la rotation des logs et le man<\/p>\n<pre><code>\/usr\/local\/sbin\/clamav-unofficial-sigs.sh --install-logrotate\n\/usr\/local\/sbin\/clamav-unofficial-sigs.sh --install-man\n<\/code><\/pre>\n<h1>Installer les signatures non official pour clamav<\/h1>\n<p>Installer les services pour clamav-unofficial-sigs via systemd<\/p>\n<pre><code>mkdir -p \/etc\/systemd\/system\/\nwget https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/systemd\/clamav-unofficial-sigs.service -O \/etc\/systemd\/system\/clamav-unofficial-sigs.service\nwget https:\/\/raw.githubusercontent.com\/extremeshok\/clamav-unofficial-sigs\/master\/systemd\/clamav-unofficial-sigs.timer -O \/etc\/systemd\/system\/clamav-unofficial-sigs.timer\n\nsystemctl enable clamav-unofficial-sigs.service\nsystemctl enable clamav-unofficial-sigs.timer\nsystemctl start clamav-unofficial-sigs.timer\n<\/code><\/pre>\n<pre><code>clamdscan --multiscan --allmatch --remove --no-summary --fdpass \/echange\/\nclamdscan --multiscan --allmatch --remove --fdpass \/echange\/\n\n\n30 20 * * * \/usr\/bin\/clamdscan --multiscan --allmatch --remove --fdpass \/echange &gt;&gt; \/var\/log\/clamav\/manual_clamscan.log\n\ntouch \/var\/log\/clamav\/manual_clamscan.log\n<\/code><\/pre>\n<h1>R\u00e9f\u00e9rences<\/h1>\n<p><a href=\"\">https:\/\/github.com\/extremeshok\/clamav-unofficial-sigs<\/a><br \/>\n<a href=\"\">https:\/\/github.com\/extremeshok\/clamav-unofficial-sigs\/blob\/master\/guides\/ubuntu-debian.md<\/a><br \/>\n<a href=\"\">http:\/\/manpages.ubuntu.com\/manpages\/bionic\/man1\/clamdscan.1.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ClamAV est un antivirus open source (GPL) con\u00e7u pour d\u00e9tecter les chevaux de Troie, les virus, les logiciels malveillants et autres menaces malveillantes sur Linux. Cet article d\u00e9taille l&rsquo;installation pas-\u00e0-pas de la solution.<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[50,11],"tags":[56,57,2],"class_list":["post-416","post","type-post","status-publish","format-standard","hentry","category-clamav","category-linux","tag-antivirus","tag-clamav","tag-linux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paBEVZ-6I","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/comments?post=416"}],"version-history":[{"count":2,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/posts\/416\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/media?parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/categories?post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/homepages.lcc-toulouse.fr\/colombet\/wp-json\/wp\/v2\/tags?post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}