{"id":60,"date":"2011-11-17T23:15:44","date_gmt":"2011-11-17T19:15:44","guid":{"rendered":"http:\/\/blog.mgvmi-hipl.ru\/?p=60"},"modified":"2011-11-17T23:15:44","modified_gmt":"2011-11-17T19:15:44","slug":"clamav-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-%d0%b8-%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0","status":"publish","type":"post","link":"https:\/\/blog.5flor.ru\/?p=60","title":{"rendered":"ClamAV \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430"},"content":{"rendered":"<p>\u0410\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 ClamAV: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/p>\n<p>\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u0432\u043e\u0442 \u044d\u0442\u043e\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438:<br \/>\nhttp:\/\/pcbsd.su\/docs\/clamav<br \/>\nhttp:\/\/ben.org.ua\/manual\/unix\/freebsd_server\/mail\/turbo\/postfix\/postfix_2.htm#clamav<\/p>\n<p>\u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432:<\/p>\n<p># cd \/usr\/ports\/security\/clamav<\/p>\n<p># make install clean<br \/>\n# rehash<\/p>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432: \/usr\/local\/bin\/, \u0430 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432: \/usr\/local\/etc\/<br \/>\n\u0410\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.<br \/>\n\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430:<br \/>\n\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \/usr\/local\/etc\/clamd.conf (\u0441 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u044f\u043c\u0438 root&#8217;a) \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435, \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443: &#171;Example&#187;. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \/usr\/local\/etc\/freshclam.conf<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 # freshclam. \u0417\u0430\u043f\u0443\u0441\u043a \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u0430: # clamscan \/ -ri. \u041e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0446\u0438\u044f\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443: # clamscan -h.<br \/>\n\u041a\u0430\u043a \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0430\u0445, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b \/etc\/crontab \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430: 1 * * * * \/usr\/local\/bin\/freshclam -quiet. \u0422\u0435\u043f\u0435\u0440\u044c \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438 \u0442\u0430\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u043f\u0435\u0440\u0432\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0447\u0430\u0441\u0430. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f. \u0418\u041c\u0425\u041e, \u043d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0447\u0430\u0449\u0435 \u0440\u0430\u0437\u0430 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e..<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0430\u043d\u0442\u0438\u0432\u044b\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b \/etc\/rc.conf:<br \/>\n\u0432 \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \/etc\/rc.d\/rc.conf<\/p>\n<p># echo &#8216;clamav_clamd_enable=&#187;YES&#187;&#8216; &gt;&gt; \/etc\/rc.conf<br \/>\n# echo &#8216;clamav_freshclam_enable=&#187;YES&#187;&#8216; &gt;&gt; \/etc\/rc.conf<\/p>\n<p>clamd &#8212; \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441<br \/>\nfreshclam &#8212; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u044b\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430:<\/p>\n<p>#<br \/>\n# \/usr\/local\/etc\/clamd.conf<br \/>\n#<\/p>\n<p># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043b\u043e\u0433 \u0444\u0430\u0439\u043b.<br \/>\nLogFile \/var\/log\/clamav\/clamd.log<\/p>\n<p># \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u0430<br \/>\nLogFileMaxSize 2M<\/p>\n<p># \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u0432\u043e\u0437\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u043b\u043e\u0433 \u0444\u0430\u0439\u043b\u0435<br \/>\nLogTime yes<\/p>\n<p># \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432 \u043b\u043e\u0433\u0435. \u041d\u0430 \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043b\u0443\u0447\u0448\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c.<br \/>\n# \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u043b\u0441\u044f \u043b\u043e\u0433 \u0444\u0430\u0439\u043b.<br \/>\nLogVerbose yes<\/p>\n<p># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d pid \u0444\u0430\u0439\u043b.<br \/>\nPidFile \/var\/run\/clamav\/clamd.pid<\/p>\n<p># \u041f\u0443\u0442\u044c \u043a \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>\n# \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \/tmp \u0438\u043b\u0438 \/var\/tmp<br \/>\nTemporaryDirectory \/tmp<\/p>\n<p># \u041f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445<br \/>\nDatabaseDirectory \/var\/db\/clamav<\/p>\n<p># \u041f\u0443\u0442\u044c \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u043e\u043a\u0435\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u0434\u0435\u043c\u043e\u043d clamd<br \/>\nLocalSocket \/var\/run\/clamav\/clamd<\/p>\n<p># \u0423\u0434\u0430\u043b\u044f\u0442\u044c stale \u0441\u043e\u043a\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f.<br \/>\nFixStaleSocket yes<\/p>\n<p># Maximum length the queue of pending connections may grow to.<br \/>\n# \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439<br \/>\nMaxConnectionQueueLength 30<\/p>\n<p># \u0417\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u043b \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<br \/>\n# \u0414\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u043f\u0438\u0441\u044c\u043c\u0430<br \/>\n# \u0432\u0430\u0448\u0435\u0433\u043e MTA. \u0412 postfix \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e message_size_limit<br \/>\n# StreamMaxLength 10M<\/p>\n<p># \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u0441\u043e\u043a\u0435\u0442\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u0417\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445.<br \/>\n# ReadTimeout 300<\/p>\n<p># \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f<br \/>\n# IdleTimeout 60<\/p>\n<p># \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u043f\u0440\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438<br \/>\n# MaxDirectoryRecursion 20<\/p>\n<p># \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0430\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439<br \/>\n# FollowDirectorySymlinks<\/p>\n<p># \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u043b\u0438\u043d\u043a\u0430\u043c \u0444\u0430\u0439\u043b\u043e\u0432<br \/>\n# FollowFileSymlinks<\/p>\n<p># \u0427\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u044e\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c<br \/>\n# SelfCheck 600<\/p>\n<p># \u041e\u0442 \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d clamd<br \/>\nUser clamav<\/p>\n<p># \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u043c\u043e\u043d, \u043a\u043e\u0433\u0434\u0430 libclamav \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u0442 \u043e \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0435 \u043f\u0430\u043c\u044f\u0442\u0438<br \/>\nExitOnOOM yes<\/p>\n<p># \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c PE (Portable Executable) &#8212; \u044d\u0442\u043e \u0444\u043e\u0440\u043c\u0430\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432,<br \/>\n# \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 32 \u0431\u0438\u0442\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u041e\u0421 Windows. \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439<br \/>\n# \u043e\u043f\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\nScanPE yes<\/p>\n<p># Clamav \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0432\u0440\u0435\u0436\u0434\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<br \/>\nDetectBrokenExecutables yes<\/p>\n<p># \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b Microsoft Office \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432<br \/>\nScanOLE2 yes<\/p>\n<p># \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0441\u043a\u0430\u043d\u0435\u0440 e-mail<br \/>\nScanMail yes<\/p>\n<p># \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c HTML \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430 MS Script Encoder.<br \/>\nScanHTML yes<\/p>\n<p># \u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432\u044b \u0438 \u0441\u0436\u0430\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b<br \/>\nScanArchive yes<\/p>\n<p># \u0424\u0430\u0439\u043b\u044b \u0432 \u0430\u0440\u0445\u0438\u0432\u0430\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f<br \/>\n# ArchiveMaxFileSize 15M<\/p>\n<p># \u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0432\u044b \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e.<br \/>\n# \u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e<br \/>\n# \u0443\u0440\u043e\u0432\u0435\u043d\u0435\u0439 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c<br \/>\n# ArchiveMaxRecursion 9<\/p>\n<p># \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0432 \u0430\u0440\u0445\u0438\u0432\u0435<br \/>\n# ArchiveMaxFiles 1500<\/p>\n<p># \u0415\u0441\u043b\u0438 \u0444\u0430\u0439\u043b \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u0441\u0436\u0430\u0442 \u0431\u043e\u043b\u044c\u0448\u0435,<br \/>\n# \u0447\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0432 ArchiveMaxCompressionRatio,<br \/>\n# \u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d \u043a\u0430\u043a \u0432\u0438\u0440\u0443\u0441.<br \/>\n# ArchiveMaxCompressionRatio 300<\/p>\n<p>******************************************<br \/>\n\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c clamav<br \/>\n# \/usr\/local\/etc\/rc.d\/clamav-clamd start<br \/>\nStarting clamav_clamd.<br \/>\n\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432 \u043b\u043e\u0433\u0430\u0445 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>\n# cat \/var\/log\/clamav\/clamd.log<br \/>\n+++ Started at Mon Jan\u00a0 9 20:29:47 2006<br \/>\nclamd daemon 0.87.1 (OS: freebsd5.4, ARCH: i386, CPU: i386)<br \/>\nLog file size limited to 2097152 bytes.<br \/>\nVerbose logging activated.<br \/>\nRunning as user clamav (UID 106, GID 106)<br \/>\nReading databases from \/var\/db\/clamav<br \/>\nProtecting against 40931 viruses.<br \/>\nUnix socket file \/var\/run\/clamav\/clamd<br \/>\nSetting connection queue length to 30<br \/>\nListening daemon: PID: 16692<br \/>\nArchive: Archived file size limit set to 15728640 bytes.<br \/>\nArchive: Recursion level limit set to 9.<br \/>\nArchive: Files limit set to 1500.<br \/>\nArchive: Compression ratio limit set to 300.<br \/>\nArchive support enabled.<br \/>\nArchive: RAR support enabled.<br \/>\nPortable Executable support enabled.<br \/>\nDetection of broken executables enabled.<br \/>\nMail files support enabled.<br \/>\nOLE2 support enabled.<br \/>\nHTML support enabled.<br \/>\nSelf checking every 600 seconds.<br \/>\n\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c freshclam<br \/>\n#<br \/>\n# \/usr\/local\/etc\/freshclam.conf<br \/>\n#<\/p>\n<p># \u041f\u0443\u0442\u044c \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445. \u0417\u0434\u0435\u0441\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e<br \/>\n# \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043f\u0443\u0442\u044c \u043a\u0430\u043a \u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 clamd.conf<br \/>\nDatabaseDirectory \/var\/db\/clamav<\/p>\n<p># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043b\u043e\u0433 \u0444\u0430\u0439\u043b.<br \/>\nUpdateLogFile \/var\/log\/clamav\/freshclam.log<\/p>\n<p># \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432 \u043b\u043e\u0433\u0435 (\u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043b\u0443\u0447\u0448\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c)<br \/>\nLogVerbose yes<\/p>\n<p># \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d pid \u0444\u0430\u0439\u043b.<br \/>\nPidFile \/var\/run\/clamav\/freshclam.pid<\/p>\n<p># \u0412\u043b\u0430\u0434\u0435\u043b\u0435\u0446 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043d\u043e\u0439 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<br \/>\nDatabaseOwner clamav<\/p>\n<p># \u0417\u0435\u0440\u043a\u0430\u043b\u043e \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043d\u0430\u0448\u0443 \u0411\u0414<br \/>\nDatabaseMirror db.ua.clamav.net<\/p>\n<p># \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0437\u0435\u0440\u043a\u0430\u043b\u0443<br \/>\nMaxAttempts 5<\/p>\n<p># \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0432 \u0434\u0435\u043d\u044c. 24 &#8212; \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u0430\u0441.<br \/>\nChecks 24<\/p>\n<p># \u041f\u043e\u0441\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 RELOAD (\u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430) \u0434\u0435\u043c\u043e\u043d\u0443 clamd.<br \/>\n# NotifyClamd<br \/>\n\u042d\u0442\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435. \u0423 \u0441\u0435\u0431\u044f \u044f \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 LogVerbose<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c freshclam<\/p>\n<p># \/usr\/local\/etc\/rc.d\/clamav-freshclam start \u0432 \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e freshclam<br \/>\nStarting clamav_freshclam<br \/>\n*******************************************************************<br \/>\n********************************************************************<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u043e\u043c:<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0430\u0440\u0445\u0438\u0432 MAX.RAR<br \/>\n# clamscan MAX.RAR<br \/>\n# MAX.RAR: Eicar-Test-Signature FOUND<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043f\u0430\u043f\u043a\u0443 ~\/temp\/folder\/with\/viruses \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e:<br \/>\n# clamscan ~\/temp\/folder\/with\/viruses\/*.*<br \/>\n\u0438\u043b\u0438 \u0436\u0435 \u0442\u0430\u043a:<br \/>\n# cd ~\/temp\/folder\/with\/viruses\/*.*<br \/>\n# clamscan<\/p>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 ClamAV.<\/p>\n<p>\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e ClamAV \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c: &#8212;move=\/path_with_infected_files<br \/>\n# clamscan &#8212;move=\/home\/admin\/temp\/infected<br \/>\n\/usr\/home\/admin\/temp\/folder\/with\/viruses\/virus:\u00a0\u00a0 Eicar-Test-Signature FOUND<br \/>\n\/usr\/home\/admin\/temp\/folder\/with\/viruses\/virus:<br \/>\nmoved to &#8216;\/home\/admin\/temp\/infected\/\/virus&#8217;<br \/>\n\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>\n\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e ClamAV \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c: &#8212;remove<br \/>\n# clamscan -remove<br \/>\n\/usr\/home\/admin\/temp\/folder\/with\/viruses\/virus:<br \/>\nEicar-Test-Signature FOUND<br \/>\n\/usr\/home\/admin\/temp\/folder\/with\/viruses\/virus:<br \/>\nremoved<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0447\u0442\u044b.<br \/>\n\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 KMail, \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 Kontact.\u00a0 \u0422\u0443\u0442 \u0432\u0441\u0451 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<br \/>\n\u0412 \u0441\u0442\u0440\u043e\u043a\u0435 \u043c\u0435\u043d\u044e KMail \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 &#171;\u0421\u0435\u0440\u0432\u0438\u0441&#187;-&gt;&#187;\u041c\u0430\u0441\u0442\u0435\u0440 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441\u0430&#8230;&#187;.<br \/>\nKMail \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b\u0439 \u0430\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441, \u0438 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0435\u0433\u043e \u043d\u0430\u043c.<br \/>\n\u0416\u043c\u0430\u043a\u0430\u0435\u043c \u043d\u0430 \u0412\u043f\u0435\u0440\u0451\u0434.<br \/>\n\u041e\u0442\u043c\u0435\u0447\u0430\u0435\u043c \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u043c\u0438 \u043f\u0438\u0441\u044c\u043c\u0430\u043c\u0438, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043d\u0430 &#171;\u0413\u043e\u0442\u043e\u0432\u043e&#187;.<br \/>\n\u0412\u043e\u0442 \u0438 \u0432\u0441\u0451.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0410\u043d\u0442\u0438\u0432\u0438\u0440\u0443\u0441 ClamAV: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u0432\u043e\u0442 \u044d\u0442\u043e\u0438\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438: http:\/\/pcbsd.su\/docs\/clamav http:\/\/ben.org.ua\/manual\/unix\/freebsd_server\/mail\/turbo\/postfix\/postfix_2.htm#clamav \u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438. \u0421\u0442\u0430\u0432\u0438\u043c \u0438\u0437 \u043f\u043e\u0440\u0442\u043e\u0432: # cd \/usr\/ports\/security\/clamav # make install clean # rehash \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432: \/usr\/local\/bin\/, \u0430 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432: \/usr\/local\/etc\/ &hellip; <a href=\"https:\/\/blog.5flor.ru\/?p=60\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/60"}],"collection":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":0,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5flor.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}