{"id":176,"date":"2010-03-11T01:24:02","date_gmt":"2010-03-10T16:24:02","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=176"},"modified":"2010-03-11T13:47:35","modified_gmt":"2010-03-11T04:47:35","slug":"debian%e3%81%a7communigate-pro-clamav-cgpav%e3%82%92%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/176","title":{"rendered":"Debian\u3067CommuniGate Pro + ClamAV + cgpav\u3092\u5229\u7528\u3059\u308b"},"content":{"rendered":"<p>Debian\u3067CommuniGate Pro + ClamAV + cgpav\u3092\u5229\u7528\u3059\u308b\u307e\u3067\u306e\u624b\u9806\u3002CentOS\u3068\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3084\u30d1\u30b9\u304c\u7570\u306a\u308b\u306e\u3067\u4e00\u5fdc\u66f8\u3044\u3066\u304a\u304f\u3002<\/p>\n<p><strong>\u25a0clamd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\nDebian\u3067\u306f\u901a\u5e38\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u6700\u65b0\u5316\u3055\u308c\u3066\u3044\u308b\u3002clamd\u306fclamav-daemon\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306a\u308b\u3002<br \/>\n[code]# apt-get install clamav clamav-daemon[\/code]<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u5f8c\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u66f4\u65b0\u3002<br \/>\n[code]# freshclam[\/code]<\/p>\n<p>clamd.conf\u306e\u7de8\u96c6<br \/>\n[code]# vi \/etc\/clamav\/clamd.conf<br \/>\nUser clamav<br \/>\n\u2193<br \/>\nUser root \uff08CGServer\u3068\u540c\u3058\u30e6\u30fc\u30b6\u3067\u52d5\u4f5c\u3055\u305b\u308b\uff09<br \/>\n\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u5834\u5408\uff08CGP\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u5236\u9650\u3068\u5408\u308f\u305b\u308b\uff09<br \/>\nStreamMaxLength 100M[\/code]<\/p>\n<p>\u7de8\u96c6\u3057\u305f\u3089\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5<br \/>\n[code]# \/etc\/init.d\/clamav-daemon restart[\/code]<\/p>\n<p><strong>\u25a0cgpav\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/strong><br \/>\n[code]# cd ~\/download\/<br \/>\n# wget http:\/\/program.farit.ru\/antivir\/cgpav-1.4.tar.gz<br \/>\n# tar zxvf cgpav-1.4.tar.gz<br \/>\n# cd cgpav-1.4<br \/>\n# .\/configure &#8211;with-antivirus=clamav &#8211;with-spamassassin=no (ClamAV\u6307\u5b9a\u3001\u30b9\u30d1\u30e0\u5bfe\u7b56\u7121\u3057\uff09<br \/>\n# make<br \/>\n# make install<\/p>\n<p># vi \/var\/CommuniGate\/Settings\/cgpav.conf<br \/>\nclamd_socket = \/tmp\/clmad<br \/>\n\u2193<br \/>\nclamd_socket = \/var\/run\/clamav\/clamd.ctl<\/p>\n<p>infected_action = discard<br \/>\n\u2193<br \/>\ninfected_action = addheader\uff08\u6a19\u6e96\u3067\u306f\u6709\u7121\u3092\u8a00\u308f\u3055\u305a\u30a6\u30a4\u30eb\u30b9\u30e1\u30fc\u30eb\u81ea\u4f53\u3092\u6d88\u53bb\u3059\u308b\u306e\u3067\u6ce8\u610f\uff09<\/p>\n<p>add_not_infected_header = false<br \/>\n\u2193<br \/>\nadd_not_infected_header = true\uff08\u30c1\u30a7\u30c3\u30af\u3057\u3066\u554f\u984c\u306a\u304b\u3063\u305f\u3053\u3068\u304c\u308f\u304b\u308b\uff09<\/p>\n<p>recipients_notification = false\uff08\u53d7\u4fe1\u5148\u306b\u30a6\u30a4\u30eb\u30b9\u30e1\u30fc\u30eb\u304c\u6765\u305f\u3053\u3068\u3092\u901a\u77e5\u3059\u308b\u5834\u5408true\u306b\u3059\u308b\uff09[\/code]<\/p>\n<p>\u52d5\u4f5c\u8a66\u9a13\u3053\u3061\u3089\u3082\u30d1\u30b9\u3002\u306a\u305c\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>\u25a0\u305d\u306e\u4ed6<br \/>\nCommuniGate Pro\u4e0a\u306e\u8a2d\u5b9a\u306fCentOS\u3068\u540c\u3058\u3002<\/p>\n<p>\u30ed\u30b0\u306e\u30c1\u30a7\u30c3\u30af<br \/>\n[code]# cat \/var\/log\/syslog | grep cgpav[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian\u3067CommuniGate Pro + ClamAV + cgpav\u3092\u5229\u7528\u3059\u308b\u307e\u3067\u306e\u624b\u9806\u3002CentOS\u3068\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u3084\u30d1\u30b9\u304c\u7570\u306a\u308b\u306e\u3067\u4e00\u5fdc\u66f8\u3044\u3066\u304a\u304f\u3002 \u25a0clamd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Debian\u3067\u306f\u901a\u5e38\u7528\u610f\u3055\u308c &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/176\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Debian\u3067CommuniGate Pro + ClamAV + cgpav\u3092\u5229\u7528\u3059\u308b&#8221;<\/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":[1],"tags":[45,46,21,39],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-linux","tag-cgpav","tag-clamav","tag-communigate","tag-debian"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":5,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/176\/revisions\/184"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}