{"id":904,"date":"2021-08-11T16:06:40","date_gmt":"2021-08-11T08:06:40","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=904"},"modified":"2022-09-16T12:28:46","modified_gmt":"2022-09-16T04:28:46","slug":"opnsense%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c-%e5%8f%8d%e7%97%85%e6%af%92%e5%bc%95%e6%93%8e","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=904","title":{"rendered":"OPNsense\u7528\u6237\u624b\u518c-ClamAV\u8bbe\u7f6e"},"content":{"rendered":"<p style=\"text-align: justify;\">OPNsense\u4e2d\u7684\u63d2\u4ef6ICAPc-icap\u662f ICAP \u670d\u52a1\u5668\u7684\u5b9e\u73b0\uff0c\u53ef\u4ee5\u4e0eSquid 3.x HTTP\u4ee3\u7406\u670d\u52a1\u5668\u7b49\u652f\u6301ICAP\u534f\u8bae\u7684HTTP\u4ee3\u7406\u4e00\u8d77\u4f7f\u7528\uff0c\u5b9e\u73b0\u5185\u5bb9\u9002\u914d\/\u8fc7\u6ee4\u670d\u52a1\u3002ClamAV\u5219\u63d0\u4f9b\u9488\u5bf9\u6076\u610f\u8f6f\u4ef6\u7684\u6709\u6548\u4fdd\u62a4\uff0c\u4f8b\u5982\u52d2\u7d22\u8f6f\u4ef6\uff0c\u7279\u6d1b\u4f0a\u6728\u9a6c\u548c\u75c5\u6bd2\u3002\u5185\u7f6e\u7684\u5165\u4fb5\u9632\u5fa1\u7cfb\u7edf\u548c\u57fa\u4e8e\u7c7b\u522b\u7684Web\u8fc7\u6ee4\u53ef\u4ee5\u8fdb\u4e00\u6b65\u589e\u5f3a\u8fd9\u79cd\u4fdd\u62a4\u80fd\u529b\u3002<\/p>\n<div id=\"setup-icap-anti-virus-engine\" class=\"section\" style=\"text-align: justify;\">\n<div id=\"step-6-test-using-eicar\" class=\"section\">\n<p style=\"text-align: justify;\">\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u867d\u7136\u53cd\u75c5\u6bd2\u5f15\u64ce\u53ef\u4ee5\u4fdd\u62a4\u5ba2\u6237\u7aef\u514d\u53d7\u7f51\u7edc\u4e0a\u6076\u610f\u7f51\u7ad9\u7684\u5a01\u80c1\uff0c\u4f46\u5b83\u4e0d\u80fd\u4fdd\u62a4\u672c\u5730\u5ba2\u6237\u7aef\u901a\u8fc7\u8bf8\u5982\u7535\u5b50\u90ae\u4ef6\u6216u\u76d8\u4f20\u67d3\u75c5\u6bd2\uff0c\u6240\u4ee5\u52a0\u5f3a\u672c\u5730\u5ba2\u6237\u7aef\u7684\u4fdd\u62a4\u540c\u6837\u91cd\u8981\u3002<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4f7f\u7528OPNsense\u4e2d\u7684C-ICAP\u548cClamAV\u63d2\u4ef6\u6765\u63d0\u5347\u9632\u706b\u5899\u7684\u9632\u75c5\u6bd2\u4fdd\u62a4\u80fd\u529b\u3002<\/p>\n<div id=\"step-1-setup-the-proxy\" class=\"section\" style=\"text-align: justify;\">\n<h1>\u7b2c1\u6b65 &#8211; \u8bbe\u7f6e\u4ee3\u7406<\/h1>\n<p>\u9996\u5148\u4f7f\u7528\u57fa\u672c\u914d\u7f6e<a class=\"reference internal\" href=\"https:\/\/docs.opnsense.org\/manual\/how-tos\/cachingproxy.html\"><span class=\"doc\">\u8bbe\u7f6e\u4ee3\u7406<\/span><\/a>\uff0c\u8bf7\u53c2\u9605<a class=\"reference internal\" href=\"https:\/\/docs.opnsense.org\/manual\/how-tos\/cachingproxy.html\"><span class=\"doc\">\u8bbe\u7f6e\u9ad8\u901f\u7f13\u5b58\u4ee3\u7406<\/span><\/a>\u3002<\/p>\n<\/div>\n<div id=\"step-2-setup-transparent-mode\" class=\"section\" style=\"text-align: justify;\">\n<h1>\u7b2c2\u6b65 &#8211; \u8bbe\u7f6e\u900f\u660e\u6a21\u5f0f<\/h1>\n<p>\u8981\u8bbe\u7f6e\u900f\u660e\u6a21\u5f0f\uff0c\u8bf7\u53c2\u9605\uff1a<a class=\"reference internal\" href=\"https:\/\/docs.opnsense.org\/manual\/how-tos\/proxytransparent.html\"><span class=\"doc\">\u5b89\u88c5\u900f\u660e\u4ee3\u7406<\/span><\/a>\u3002<\/p>\n<\/div>\n<div id=\"step-3-install-and-configure-the-clamav-and-the-c-icap-plugins\" class=\"section\" style=\"text-align: justify;\">\n<h1>\u7b2c3\u6b65 &#8211; \u5b89\u88c5\u914d\u7f6e\u63d2\u4ef6<\/h1>\n<div class=\"admonition note\">\n<p class=\"first admonition-title\">\u6ce8\u610f\uff1a\u5c3d\u91cf\u4f7f\u7528c-icap\u548cClamAV\u7684\u9ed8\u8ba4\u503c\uff0c\u4e0d\u6b63\u786e\u7684\u4fee\u6539\u53ef\u80fd\u4f1a\u5f71\u54cd\u5b89\u5168\u6027\u6216\u9632\u706b\u5899\u6027\u80fd\u3002\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u67d0\u4e2a\u8bbe\u7f6e\u4ea7\u751f\u4ec0\u4e48\u6837\u7684\u5f71\u54cd\u540e\u679c\uff0c\u5219\u5e94\u8be5\u5c06\u5176\u4fdd\u6301\u4e3a\u9ed8\u8ba4\u503c\u3002<\/p>\n<\/div>\n<h2><strong><span class=\"doc\">ClamAV<\/span><\/strong><\/h2>\n<div class=\"admonition warning\">\n<p class=\"last\">\u9632\u706b\u5899\u81f3\u5c11\u9700\u89811.5 GB \u5185\u5b58\u3002\u5efa\u8bae\u4f7f\u7528\u81f3\u5c112 GB \u5185\u5b58\u3002<\/p>\n<\/div>\n<div class=\"admonition warning\">\n<p class=\"first admonition-title\">\u8b66\u544a\uff1a\u6709\u4e00\u4e9b\u6280\u672f\u53ef\u4ee5\u907f\u514d\u4f7f\u7528AV\u8f6f\u4ef6\u8fdb\u884c\u68c0\u6d4b\u548c\u626b\u63cf\uff0c\u800cAV\u4ea7\u54c1\u5e76\u4e0d\u77e5\u9053\u6bcf\u79cd\u6076\u610f\u8f6f\u4ef6\u3002\u57fa\u4e8e\u7b7e\u540d\u7684AV\u8f6f\u4ef6\u53ef\u4ee5\u964d\u4f4e\u88ab\u5df2\u77e5\u6076\u610f\u8f6f\u4ef6\u653b\u51fb\u7684\u98ce\u9669\uff0c\u4f46\u5b83\u7edd\u4e0d\u80fd\u4fdd\u8bc1\u60a8\u7684\u8ba1\u7b97\u673a\u4e0d\u4f1a\u53d7\u5230\u611f\u67d3\u3002\u6559\u4f1a\u7528\u6237\u5982\u4f55\u5904\u7406\u4ece\u4e92\u8054\u7f51\u4e0b\u8f7d\u6587\u4ef6\u548c\u786e\u4fdd\u4e0d\u4fe1\u4efb\u7684\u8bbe\u5907\u5b89\u5168\u66f4\u91cd\u8981\u3002\u8fd8\u8981\u5b9a\u671f\u5907\u4efd\u91cd\u8981\u6587\u4ef6\uff0c\u786e\u4fdd\u6b63\u786e\u4f7f\u7528ACL\u5e76\u5c3d\u5feb\u5e94\u7528\u8865\u4e01\uff0c\u4ee5\u5c3d\u53ef\u80fd\u51cf\u5c11\u653b\u51fb\u8303\u56f4\u548c\u635f\u5931\u3002<\/p>\n<\/div>\n<div class=\"admonition note\">\n<p class=\"first admonition-title\">\u6ce8\u610f\uff1a\u8981\u4f7fClamAV\u6b63\u5e38\u5de5\u4f5c\uff0c\u60a8\u9700\u8981\u4e0b\u8f7d\u7b7e\u540d\u3002\u5982\u679c\u8fd9\u4e9b\u6587\u4ef6\u5b58\u50a8\u5728\u5185\u5b58\u78c1\u76d8\u4e0a\uff0c\u5219\u9700\u8981\u5728\u91cd\u65b0\u5f15\u5bfc\u540e\u518d\u83b7\u53d6\u8fd9\u4e9b\u6587\u4ef6\u3002<\/p>\n<\/div>\n<div id=\"installation\" class=\"section\">\n<h3>1\u3001\u5b89\u88c5<\/h3>\n<p>\u9996\u5148\uff0c\u4ece\u63d2\u4ef6\u89c6\u56fe\u5b89\u88c5ClamAV\u63d2\u4ef6\uff08os-clamav\uff09\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/menu_plugins1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9456\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/menu_plugins1.png\" alt=\"\" width=\"265\" height=\"243\" \/><\/a><\/p>\n<p>\u9875\u9762\u91cd\u65b0\u52a0\u8f7d\u540e\uff0c\u60a8\u5c06\u83b7\u5f97ClamAV\u670d\u52a1\u4e0b\u7684\u65b0\u83dc\u5355\u6761\u76ee\u3002\u9009\u62e9\u5b83\uff0c\u60a8\u5c06\u8fdb\u5165\u4ee5\u4e0b\u9875\u9762\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3221\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings.png\" alt=\"..\/..\/_images\/clamav_settings.png\" width=\"1145\" height=\"1280\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings.png 1145w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings-916x1024.png 916w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings-268x300.png 268w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/clamav_settings-768x859.png 768w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><\/a><\/p>\n<\/div>\n<div id=\"configuration-options\" class=\"section\">\n<h3>2\u3001\u914d\u7f6e<\/h3>\n<table class=\"docutils field-list\" frame=\"void\" rules=\"none\">\n<colgroup>\n<col class=\"field-name\" \/>\n<col class=\"field-body\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u542f\u7528clamd\u670d\u52a1\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u9009\u4e2d\u6b64\u590d\u9009\u6846\u53ef\u542f\u7528clamd\uff0c\u4ee5\u4fbf\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u626b\u63cf\u6587\u4ef6\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\" colspan=\"2\">\u542f\u7528freshclam\u670d\u52a1\uff1a<\/th>\n<\/tr>\n<tr class=\"field-even field\">\n<td><\/td>\n<td class=\"field-body\">Freshclam\u662f\u4e00\u9879\u66f4\u65b0\u6076\u610f\u8f6f\u4ef6\u7b7e\u540d\u7684\u670d\u52a1\u3002\u5982\u679c\u60a8\u4f7f\u7528ClamAV\uff0c\u5efa\u8bae\u5b9a\u671f\u66f4\u65b0\u7b7e\u540d\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u542f\u7528TCP\u7aef\u53e3\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u8981\u901a\u8fc7\u7f51\u7edc\u4f7f\u7528clamd\u6216\u4f7f\u7528TCP\u8fde\u63a5\u672c\u5730\u670d\u52a1\uff0c\u5219\u9700\u8981\u9009\u4e2d\u6b64\u590d\u9009\u6846\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\" colspan=\"2\">\u6700\u5927\u8fd0\u884c\u7ebf\u7a0b\u6570\uff1a<\/th>\n<\/tr>\n<tr class=\"field-even field\">\n<td><\/td>\n<td class=\"field-body\">\u7ebf\u7a0b\u9650\u5236\u7528\u4e8e\u907f\u514d\u5b88\u62a4\u7a0b\u5e8f\u548c\u8ba1\u7b97\u673a\u7684\u62d2\u7edd\u670d\u52a1\u3002\u901a\u5e38\uff0c\u4e0b\u4e00\u4e2a\u6216\u7b49\u4e8e\u6838\u5fc3\u6570\u91cf\u7684\u6570\u5b57\u5c06\u662f\u597d\u7684\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u6700\u5927\u6392\u961f\u9879\u76ee\u6570\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u8fd9\u662f\u53ef\u4ee5\u6392\u961f\u7b49\u5f85\u626b\u63cf\u7684\u6587\u4ef6\u7684\u6700\u5927\u503c\u3002\u539f\u56e0\u4e0e\u7ebf\u7a0b\u76f8\u540c\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u7a7a\u95f2\u8d85\u65f6\uff1a<\/th>\n<td class=\"field-body\">\u5982\u679c\u8fde\u63a5\u5728\u8fd9\u6bb5\u65f6\u95f4\u5185\u5904\u4e8e\u975e\u6d3b\u52a8\u72b6\u6001\uff0c\u5219\u4f1a\u65ad\u5f00\u8fde\u63a5\u3002\u5982\u679c\u53e6\u4e00\u4e2a\u5957\u63a5\u5b57\u7aef\u70b9\u662f\u4e00\u53f0\u673a\u5668\uff0c\u5219\u8be5\u503c\u53ef\u80fd\u5f88\u4f4e\uff0c\u4f46\u5982\u679c\u60a8\u8ba1\u5212\u5c06\u5176\u7528\u4e8e\u5f00\u53d1\u539f\u56e0\uff0c\u5219\u53ef\u4ee5\u5c06\u5176\u8bbe\u7f6e\u4e3a\u66f4\u9ad8\u7684\u503c\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u6700\u5927\u76ee\u5f55\u9012\u5f52\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u9650\u5236\u76ee\u5f55\u6811\u7684\u6df1\u5ea6\u3002\u5728\u6700\u574f\u7684\u60c5\u51b5\u4e0b\uff0c\u6709\u4e00\u4e2a\u5faa\u73af\u5bfc\u81f4\u626b\u63cf\u65e0\u4f11\u6b62\u5730\u8fd0\u884c\uff0c\u6b64\u8bbe\u7f6e\u5e94\u8be5\u963b\u6b62\u5b83\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\" colspan=\"2\">\u6309\u7167\u76ee\u5f55\u7b26\u53f7\u94fe\u63a5\uff1a<\/th>\n<\/tr>\n<tr class=\"field-even field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u9009\u9879\uff0cclamav\u5c06\u9075\u5faa\u76ee\u5f55\u7b26\u53f7\u94fe\u63a5\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5faa\u73af\u3002\u5982\u679c\u8981\u8bbe\u7f6e\u6b64\u9879\uff0c\u8bf7\u786e\u4fdd\u5c06\u9012\u5f52\u9650\u5236\u8bbe\u7f6e\u4e3a\u6709\u7528\u7684\u503c\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u9075\u5faa\u5e38\u89c4\u6587\u4ef6\u7b26\u53f7\u94fe\u63a5\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u9009\u9879\uff0cclamav\u5c06\u9075\u5faa\u7b26\u53f7\u94fe\u63a5\u5230\u5e38\u89c4\u6587\u4ef6\u3002\u8fd9\u53ef\u80fd\u4f1a\u66b4\u9732\u6709\u5173\u6587\u4ef6\u7cfb\u7edf\u7684\u4fe1\u606f\uff0c\u7528\u6237\u65e0\u6743\u8bbf\u95ee\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u7981\u7528\u7f13\u5b58\uff1a<\/th>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u9009\u9879\uff0c\u5219\u4e0d\u4f1a\u7f13\u5b58\u7ed3\u679c\u3002\u8fd9\u4ec5\u9002\u7528\u4e8e\u5f00\u53d1\u73af\u5883\uff0c\u56e0\u4e3a\u5b83\u4f1a\u7f29\u77ed\u54cd\u5e94\u65f6\u95f4\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u626b\u63cf\u53ef\u79fb\u690d\u7684\u6267\u884c\u6587\u4ef6<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u8981\u626b\u63cfPE\u6587\u4ef6\uff0c\u8bf7\u9009\u4e2d\u6b64\u6846\u3002\u5982\u679c\u60a8\u5728\u7f51\u7edc\u4e2d\u4f7f\u7528PE\u6587\u4ef6\uff08* .exe\uff0c* .dll\u7b49\uff09\u6587\u4ef6\uff0c\u5efa\u8bae\u9009\u4e2d\u6b64\u6846\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\" colspan=\"2\">\u626b\u63cf\u53ef\u6267\u884c\u548c\u94fe\u63a5\u683c\u5f0f\uff1a<\/th>\n<\/tr>\n<tr class=\"field-even field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u8981\u626b\u63cfELF\u6587\u4ef6\uff0c\u8bf7\u9009\u4e2d\u6b64\u6846\u3002\u4f8b\u5982\uff0cELF\u7528\u4e8e\u57fa\u4e8eLinux\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c* BSD\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u68c0\u6d4b\u635f\u574f\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u4e0e\u89c4\u8303\u4e0d\u5339\u914d\uff0c\u5219\u6b64\u8bbe\u7f6e\u5c06\u6807\u8bb0\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002\u7531\u4e8e\u4e0b\u8f7d\u95ee\u9898\u6216\u64cd\u4f5c\uff0c\u53ef\u6267\u884c\u6587\u4ef6\u53ef\u80fd\u4f1a\u88ab\u7834\u574f\u3002\u65e0\u8bba\u5982\u4f55\uff0c\u4f20\u9001\u7834\u574f\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e0d\u5e94\u8be5\u6709\u4efb\u4f55\u5408\u6cd5\u7684\u60c5\u51b5\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u626b\u63cfOLE2\uff1a<\/th>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u9009\u9879\uff0c\u5c06\u5206\u6790OLE2\u6587\u4ef6\uff08\u4f8b\u5982Microsoft Office\u6587\u4ef6\uff09\u3002\u5e94\u8be5\u5206\u6790\u8fd9\u4e9b\u6587\u4ef6\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u80fd\u5305\u542b\u7528\u4e8e\u4e0b\u8f7d\u548c\u5b89\u88c5\u6076\u610f\u8f6f\u4ef6\uff08\u901a\u5e38\u662f\u52d2\u7d22\u8f6f\u4ef6\uff09\u7684\u5b8f\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">OLE2\u963b\u6b62\u5b8f\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u5e94\u963b\u6b62\u5305\u542b\u5b8f\u7684\u6587\u6863\uff0c\u8bf7\u9009\u4e2d\u6b64\u6846\u3002\u5982\u679c\u60a8\u4e0d\u4f7f\u7528\u5b8f\uff0c\u5e76\u4e14\u60a8\u4e0d\u5e0c\u671b\u5546\u4e1a\u4f19\u4f34\u6216\u670b\u53cb\u4f7f\u7528\u5b8f\uff0c\u5219\u5efa\u8bae\u4f7f\u7528\u6b64\u8bbe\u7f6e\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u626b\u63cfPDF\u6587\u4ef6\uff1a<\/th>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u590d\u9009\u6846\uff0c\u5c06\u626b\u63cfPDF\u6587\u4ef6\u3002PDF\u6587\u4ef6\u53ef\u4ee5\u643a\u5e26\u5176\u4ed6\u6587\u4ef6\u6216\u591a\u5a92\u4f53\u4ee5\u53cajavascript\u548c\u5b57\u4f53\u3002\u5efa\u8bae\u626b\u63cfPDF\u6587\u4ef6\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\">\u626b\u63cfSWF\uff1a<\/th>\n<td class=\"field-body\">\u5982\u679c\u9009\u4e2d\u6b64\u6846\uff0c\u5219\u4f1a\u626b\u63cfFlash\u6587\u4ef6\u3002Flash\u7528\u4e8e\u63d0\u4f9b\u89c6\u9891\u64ad\u653e\u5668\u6216\u4ea4\u4e92\u5f0f\u5185\u5bb9\u3002\u73b0\u5728\u5b83\u5e94\u8be5\u88abHTML5\u53d6\u4ee3\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u626b\u63cfXMLDOCS\uff1a<\/th>\n<td class=\"field-body\">\u626b\u63cfXML\u6587\u6863<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\">\u626b\u63cfHWP3\uff1a<\/th>\n<td class=\"field-body\">HWP\u4f3c\u4e4e\u662f\u4e00\u79cd\u97e9\u56fd\u6587\u6863\u683c\u5f0f\u3002\u5982\u679c\u4e0d\u4f7f\u7528\u5b83\u4eec\uff0c\u6700\u597d\u5728\u4ee3\u7406\u4e2d\u963b\u6b62\u5b83\u4eec\u800c\u4e0d\u662f\u626b\u63cf\u5b83\u4eec\u3002\u5982\u679c\u60a8\u6b63\u5728\u4f7f\u7528\u5b83\u4eec\uff0c\u5219\u5e94\u626b\u63cf\u5b83\u4eec\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\" colspan=\"2\">\u89e3\u7801\u90ae\u4ef6\u6587\u4ef6\uff1a<\/th>\n<\/tr>\n<tr class=\"field-even field\">\n<td><\/td>\n<td class=\"field-body\">\u5982\u679c\u9009\u62e9\u6b64\u9009\u9879\uff0c\u5c06\u4f1a\u8bfb\u53d6\u7535\u5b50\u90ae\u4ef6\u7684\u5404\u4e2a\u90e8\u5206\uff0c\u56e0\u6b64\u53ef\u4ee5\u626b\u63cf\u7535\u5b50\u90ae\u4ef6\u9644\u4ef6\u3002\u90ae\u4ef6\u9644\u4ef6\u5bf9\u4e8e\u626b\u63cf\u5f88\u91cd\u8981\uff0c\u56e0\u4e3a\u9644\u4ef6\u53ef\u80fd\u5305\u542b\u6076\u610f\u8f6f\u4ef6\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u6076\u610f\u8f6f\u4ef6\u5e7f\u544a\u7cfb\u5217\u4f7f\u7528\u7684JScript\u6587\u4ef6\u5df2\u6253\u5305\u5728\u9644\u52a0\u5230\u7535\u5b50\u90ae\u4ef6\u7684ZIP\u6587\u4ef6\u4e2d\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\">\u626b\u63cfHTML\uff1a<\/th>\n<td class=\"field-body\">\u626b\u63cf\u53ef\u80fd\u5305\u542b\u5371\u9669\u7684\u5d4c\u5165\u5f0fJavaScript\u7684HTML\u6587\u4ef6\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u626b\u63cf\u6863\u6848\uff1a<\/th>\n<td class=\"field-body\">\u626b\u63cf\u6863\u6848\u4e2d\u7684\u6587\u4ef6\u3002\u8fd9\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u6863\u6848\u53ef\u80fd\u5305\u542b\u6076\u610f\u8f6f\u4ef6\u3002\u8bf7\u6ce8\u610f\uff0c\u5f52\u6863\u5d4c\u5957\u7528\u4e8e\u7ed5\u8fc7\u626b\u63cf\uff0c\u56e0\u6b64\u626b\u63cf\u7a0b\u5e8f\u4f1a\u5728\u7279\u5b9a\u7684\u9012\u5f52\u7ea7\u522b\u68c0\u6d4b\u5230\u6b64\u7c7b\u5f52\u6863\u662f\u5371\u9669\u7684\u3002<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\" colspan=\"2\">\u963b\u6b62\u52a0\u5bc6\u5b58\u6863\uff1a<\/th>\n<\/tr>\n<tr class=\"field-odd field\">\n<td><\/td>\n<td class=\"field-body\">\u52a0\u5bc6\u5b58\u6863\u901a\u5e38\u7528\u4e8e\u4f20\u8f93\u52a0\u5bc6\u7684\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u672c\u8eab\u4e0d\u652f\u6301\u52a0\u5bc6\uff0c\u6216\u8005\u53d1\u4ef6\u4eba\u4e0d\u77e5\u9053\u5982\u4f55\u52a0\u5bc6\u8fd9\u4e9b\u6587\u4ef6\u3002\u50cf7z\u8fd9\u6837\u7684\u5de5\u5177\u53ef\u4ee5\u4ece\u6587\u4ef6\u521b\u5efa\u8005\u7ed9\u51fa\u7684\u5bc6\u7801\u4e2d\u5bfc\u51fa\u5bc6\u94a5\uff0c\u8be5\u5bc6\u7801\u5c06\u7528\u4e8e\u52a0\u5bc6\u538b\u7f29\u6570\u636e\u3002ClamAV\u65e0\u6cd5\u626b\u63cf\u6b64\u6570\u636e\uff0c\u56e0\u4e3a\u5b83\u7f3a\u5c11\u5bc6\u94a5\/\u5bc6\u7801\u3002\u4e00\u4e9b\u6076\u610f\u8f6f\u4ef6\u4f5c\u8005\u4f7f\u7528\u52a0\u5bc6\u5b58\u6863\u6765\u907f\u514d\u626b\u63cf\uff0c\u5e76\u5728\u7535\u5b50\u90ae\u4ef6\u6587\u672c\u4e2d\u544a\u8bc9\u53d7\u5bb3\u8005\u5982\u4f55\u89e3\u538b\u7f29\u5b83\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2><strong>C-ICAP<\/strong><\/h2>\n<div id=\"installation\" class=\"section\">\n<p>\u9996\u5148\uff0c\u60a8\u5fc5\u987b\u4ece\u63d2\u4ef6\u89c6\u56fe\u5b89\u88c5c-icap\u63d2\u4ef6\uff0c<span style=\"color: #ff0000;\">\u65b0\u7248\u672c\u5df2\u7ecf\u6539\u6210os-c-icap\u4e86<\/span>\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/menu_plugins1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9458\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/menu_plugins1-1.png\" alt=\"\" width=\"265\" height=\"243\" \/><\/a><\/p>\n<p>\u9875\u9762\u91cd\u65b0\u52a0\u8f7d\u540e\uff0c\u60a8\u5c06\u5728C-ICAP\u670d\u52a1\u4e0b\u83b7\u5f97\u4e00\u4e2a\u65b0\u7684\u83dc\u5355\u9879\u3002\u9009\u62e9\u5b83\uff0c\u8fdb\u5165\u4ee5\u4e0b\u9875\u9762\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/c-icap_settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9459\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/c-icap_settings.png\" alt=\"\" width=\"698\" height=\"700\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/c-icap_settings.png 698w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/c-icap_settings-300x300.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/c-icap_settings-299x300.png 299w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/a><\/p>\n<\/div>\n<div id=\"general-settings\" class=\"section\">\n<h3>1\u3001\u5e38\u89c4\u8bbe\u7f6e<\/h3>\n<p>Enable c-icap service\uff1a\u542f\u7528C-ICAP\u670d\u52a1\u4ee5\u5904\u7406ICAP\u8bf7\u6c42\u3002<\/p>\n<\/div>\n<div id=\"general-settings\" class=\"section\">Timeout\uff1a \u5957\u63a5\u5b57\u5173\u95ed\u7684\u65f6\u95f4\u3002<\/div>\n<div id=\"general-settings\" class=\"section\">Max keepalive timeout\uff1a\u5982\u679c\u5957\u63a5\u5b57\u4fdd\u6301\u4e0d\u6d3b\u52a8\u72b6\u6001\uff0c\u5219\u5173\u95ed\u5957\u63a5\u5b57\u7684\u65f6\u95f4\u3002<\/div>\n<div id=\"general-settings\" class=\"section\">Start servers:\uff1a \u5c06\u751f\u6210\u7684\u670d\u52a1\u5668\u8fdb\u7a0b\u7684\u8ba1\u6570\u3002<\/div>\n<div id=\"general-settings\" class=\"section\">Max servers\uff1a \u9650\u5236\u8fdb\u7a0b\u6570<\/div>\n<div id=\"general-settings\" class=\"section\">Listen address\uff1a \u670d\u52a1\u5668\u5e94\u7ed1\u5b9a\u7684\u5730\u5740\u3002\u8be5\u5730\u5740\u901a\u5e38\u662f\u73af\u56de\u5730\u5740\uff08\u5bf9\u4e8eIPV6\u4e3a:: 1\u6216\u5bf9\u4e8eIPV4\u4e3a127.0.0.1\uff09\u3002\u9ed8\u8ba4\u503c\u4e3a:: 1\u3002<\/div>\n<div id=\"general-settings\" class=\"section\">Server admin\uff1a \u6b64\u5b57\u6bb5\u5e94\u8bbe\u7f6e\u4e3a\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff0c\u8be5\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u5145\u5f53\u4e0e\u670d\u52a1\u5668\u6709\u95ee\u9898\u7684\u7528\u6237\u7684\u8054\u7cfb\u4eba\u3002<\/div>\n<div id=\"general-settings\" class=\"section\">Servername\uff1a \u5982\u679c\u8981\u8986\u76d6\u670d\u52a1\u5668\u540d\u79f0\uff08\u663e\u793a\u5728\u9519\u8bef\u9875\u9762\u4e0a\uff09\uff0c\u53ef\u4ee5\u5728\u6b64\u5904\u8f93\u5165\u3002<\/div>\n<div id=\"general-settings\" class=\"section\"><\/div>\n<div id=\"antivirus\" class=\"section\">\n<h3>2\u3001\u9632\u75c5\u6bd2<\/h3>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3239\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av.png\" alt=\"..\/..\/_images\/c-icap_av.png\" width=\"858\" height=\"606\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av.png 858w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av-300x212.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av-768x542.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/c-icap_av-425x300.png 425w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/a><\/p>\n<p>Enable ClamAV\uff1a\u542f\u7528\u53cd\u75c5\u6bd2\u626b\u63cf\u63d2\u4ef6<\/p>\n<p>Scan for filetypes\uff1a\u5e94\u5206\u6790\u7684\u6587\u4ef6\u7c7b\u578b\u3002\u60a8\u5e94\u8be5\u626b\u63cf\u5c3d\u53ef\u80fd\u591a\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u4f46\u8bf7\u8bb0\u4f4f\uff0c\u626b\u63cf\u9700\u8981\u5fc5\u987b\u62e5\u6709\u7684\u8d44\u6e90\u3002<\/p>\n<p>Send percentage data\uff1a\u5e94\u5305\u542b\u5728\u9884\u89c8\u4e2d\u7684\u539f\u59cb\u6587\u4ef6\u7684\u6570\u636e\u91cf\u3002\u66f4\u591a\u6570\u636e\u5c06\u5177\u6709\u66f4\u597d\u7684\u626b\u63cf\u7ed3\u679c\uff0c\u5e76\u4e14\u66f4\u597d\u7684\u5b89\u5168\u6027\uff0c\u800c\u8f83\u4f4e\u7684\u503c\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<p>Allow 204 response\uff1a204\u54cd\u5e94\u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a\u4e0d\u5fc5\u518d\u6b21\u901a\u8fc7\u7ebf\u8def\u53d1\u9001\u6570\u636e\u3002\u5728\u9884\u89c8\u7684\u60c5\u51b5\u4e0b\uff0c\u5c06\u4e0d\u518d\u5411ICAP\u670d\u52a1\u5668\u53d1\u9001\u6570\u636e\uff0c\u5e76\u4e14\u6570\u636e\u5c06\u88ab\u8f6c\u53d1\u5230\u5ba2\u6237\u7aef\u3002\u5982\u679cICAP\u670d\u52a1\u5668\u5df2\u6536\u5230\u6240\u6709\u6570\u636e\uff0c\u5219\u65e0\u9700\u53d1\u56de\u6570\u636e\u3002\u8bf7\u6ce8\u610f\uff0cICAP\u5ba2\u6237\u7aef\u5fc5\u987b\u652f\u6301204\u54cd\u5e94\u3002<\/p>\n<p>Pass on error\uff1a \u5982\u679c\u626b\u63cf\u5931\u8d25\uff0c\u5219\u53ef\u4ee5\u4f20\u9012\u6587\u4ef6\u3002\u8fd9\u6837\u5b89\u5168\u6027\u8f83\u4f4e\uff0c\u4f46\u5728\u53d1\u751f\u6545\u969c\u65f6\u53ef\u4ee5\u4fdd\u6301\u4e1a\u52a1\u6b63\u5e38\u8fd0\u884c\u3002\u8bf7\u8bb0\u4f4f\uff0c\u8fd9\u53ef\u80fd\u4f1a\u4f7f\u60a8\u7684\u7f51\u7edc\u9762\u4e34\u98ce\u9669\u3002<\/p>\n<\/div>\n<\/div>\n<div id=\"step-4-configure-icap\" class=\"section\" style=\"text-align: justify;\">\n<h1>\u7b2c4\u6b65 &#8211; \u914d\u7f6e<\/h1>\n<p>\u8981\u914d\u7f6eICAP\u8f6c\u5230\u00a0Services-&gt;Proxy-&gt;Administration\uff0c\u9009\u62e9\u201cForward Proxy\u201d\u9009\u9879\u5361\u4e0a\u7684\u201cICAP Settings\u201d\u3002<\/p>\n<p>\u9009\u62e9\u542f\u7528ICAP\u5e76\u586b\u5199\u8bf7\u6c42\u548c\u54cd\u5e94URL\u3002\u5bf9\u4e8eC-ICAP\u63d2\u4ef6\uff0c\u9ed8\u8ba4URL\u5c06\u662f\uff1a<\/p>\n<div class=\"wy-table-responsive\">\n<table class=\"docutils\" border=\"1\">\n<colgroup>\n<col width=\"49%\" \/>\n<col width=\"51%\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr class=\"row-odd\">\n<td>\u8bf7\u6c42\u4fee\u6539URL<\/td>\n<td>icap:\/\/[::1]:1344\/avscan<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>\u54cd\u5e94\u4fee\u6539URL<\/td>\n<td>icap:\/\/[::1]:1344\/avscan<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u70b9\u51fb\u5e94\u7528\u66f4\u6539\u3002<\/p>\n<\/div>\n<div id=\"step-5-test-using-eicar\" class=\"section\">\n<h1 style=\"text-align: justify;\">\u7b2c5\u6b65 &#8211; \u6d4b\u8bd5<\/h1>\n<p style=\"text-align: left;\">\u8981\u6d4b\u8bd5\u5f15\u64ce\u662f\u5426\u6b63\u5e38\u8fd0\u884c\uff0c\u8bf7\u8bbf\u95ee\u6b64<a href=\"http:\/\/www.eicar.org\/85-0-Download.html\">\u9875\u9762<\/a>\uff0c\u627e\u5230\u51e0\u4e2a\u6d4b\u8bd5\u6587\u4ef6\u8fdb\u884c\u4e0b\u8f7d\u3002\u9996\u5148\u6d4b\u8bd5http\u534f\u8bae\u7248\u672c\uff0c\u5982\u679c\u4f60\u8fd8\u914d\u7f6e\u4e86\u900f\u660eSSL\u4ee3\u7406\u6a21\u5f0f\uff0c\u90a3\u4e48\u5b83\u4e5f\u9002\u7528\u4e8ehttps\u7248\u672c\u3002<\/p>\n<div class=\"admonition warning\" style=\"text-align: justify;\">\n<p class=\"first admonition-title\">\u6ce8\u610f\uff1a\u4e0b\u8f7d\u8fd9\u4e9b\u5305\u542b\u75c5\u6bd2\u7684\u6587\u4ef6\u5b58\u5728\u4e00\u5b9a\u7684\u98ce\u9669\uff01\u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u5e94\u8be5\u5728\u6d4f\u89c8\u5668\u4e2d\u770b\u5230\u4e0e\u6b64\u7c7b\u4f3c\u7684\u5185\u5bb9\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/78998l.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-907\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/78998l.png\" alt=\"\" width=\"706\" height=\"79\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/78998l.png 706w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/78998l-300x34.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/78998l-500x56.png 500w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/a><\/p>\n<\/div>\n<p style=\"text-align: justify;\">\u4e0b\u9762\u7684\u89c6\u9891\u8be6\u7ec6\u4ecb\u7ecd\u4e86ClamAV\u7684\u8bbe\u7f6e\u8fc7\u7a0b\u3002<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-904-1\" width=\"584\" height=\"309\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/3-Antivirus-Protection-using-OPNsense-Plugins.mp4?_=1\" \/><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/3-Antivirus-Protection-using-OPNsense-Plugins.mp4\">https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/3-Antivirus-Protection-using-OPNsense-Plugins.mp4<\/a><\/video><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OPNsense\u4e2d\u7684\u63d2\u4ef6ICAPc-icap\u662f ICAP \u670d\u52a1\u5668\u7684\u5b9e\u73b0\uff0c\u53ef\u4ee5\u4e0eS &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=904\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[333],"class_list":["post-904","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-clamav"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=904"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/904\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}