{"id":1610,"date":"2019-10-04T16:30:45","date_gmt":"2019-10-04T08:30:45","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=1610"},"modified":"2022-06-27T09:04:15","modified_gmt":"2022-06-27T01:04:15","slug":"%e9%80%82%e7%94%a8%e4%ba%8epfsense%e7%9a%84bro%e7%bd%91%e7%bb%9c%e5%ae%89%e5%85%a8%e7%9b%91%e6%8e%a7%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=1610","title":{"rendered":"\u9002\u7528\u4e8epfSense\u7684Bro\u7f51\u7edc\u5b89\u5168\u76d1\u63a7\u63d2\u4ef6"},"content":{"rendered":"<div id=\"bro-title\" style=\"text-align: justify;\"><strong>Bro<\/strong>\u7f51\u7edc\u5b89\u5168\u76d1\u63a7\u73b0\u5728\u5df2\u7ecf\u6539\u540d\u4e3a<strong><a href=\"https:\/\/www.zeek.org\/\">Zeek<\/a><\/strong>\uff0c\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u5206\u6790\u8f6f\u4ef6\uff0c\u4e0e\u4e00\u822c\u5178\u578b\u7684IDS\u6709\u5f88\u5927\u4e0d\u540c\u3002\u5b83\u5177\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a<\/div>\n<div class=\"grid_4 alpha\" style=\"text-align: justify;\">\n<ul>\n<li>\u9002\u5e94\u6027\u5f3a\uff1aZeek\u7684\u7279\u5b9a\u4e8e\u57df\u7684\u811a\u672c\u8bed\u8a00\u53ef\u542f\u7528\u7279\u5b9a\u4e8e\u7ad9\u70b9\u7684\u76d1\u89c6\u7b56\u7565\u3002<\/li>\n<li>\u9ad8\u6548\uff1aZeek\u4ee5\u9ad8\u6027\u80fd\u7f51\u7edc\u4e3a\u76ee\u6807\uff0c\u53ef\u5728\u5404\u79cd\u5927\u578b\u7ad9\u70b9\u4e0a\u4f7f\u7528\u3002<\/li>\n<li>\u7075\u6d3b\uff1aZeek\u4e0d\u9650\u4e8e\u4efb\u4f55\u7279\u5b9a\u7684\u68c0\u6d4b\u65b9\u6cd5\uff0c\u4e5f\u4e0d\u4f9d\u8d56\u4e8e\u4f20\u7edf\u7b7e\u540d\u3002<\/li>\n<li>\u65e5\u5fd7\uff1aZeek\u5168\u9762\u8bb0\u5f55\u4e86\u6240\u89c1\u5185\u5bb9\uff0c\u5e76\u63d0\u4f9b\u4e86\u7f51\u7edc\u6d3b\u52a8\u7684\u9ad8\u7ea7\u5b58\u6863\u3002<\/li>\n<li>\u6df1\u5165\u5206\u6790\uff1aZeek\u5e26\u6709\u9488\u5bf9\u8bb8\u591a\u534f\u8bae\u7684\u5206\u6790\u5668\uff0c\u53ef\u5728\u5e94\u7528\u7a0b\u5e8f\u5c42\u8fdb\u884c\u9ad8\u7ea7\u8bed\u4e49\u5206\u6790\u3002<\/li>\n<li>\u6709\u72b6\u6001\uff1aZeek\u4fdd\u6301\u6709\u5173\u5176\u76d1\u89c6\u7684\u7f51\u7edc\u7684\u5e7f\u6cdb\u5e94\u7528\u5c42\u72b6\u6001\u3002<\/li>\n<li>\u5f00\u653e\u5f0f\u4ecb\u9762\uff1aZeek\u4e0e\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u53ef\u4ee5\u8fdb\u884c\u5b9e\u65f6\u4fe1\u606f\u4ea4\u6362\u3002<\/li>\n<li>\u5f00\u6e90\uff1aZeek\u5e26\u6709BSD\u8bb8\u53ef\u8bc1\uff0c\u51e0\u4e4e\u6ca1\u6709\u4efb\u4f55\u9650\u5236\uff0c\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/div>\n<div class=\"grid_4 omega suffix_1\" style=\"text-align: justify;\">\u5728\u4e13\u6ce8\u4e8e\u7f51\u7edc\u5b89\u5168\u76d1\u63a7\u7684\u540c\u65f6\uff0cZeek\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u5e73\u53f0\u6765\u8fdb\u884c\u66f4\u5e38\u89c4\u7684\u7f51\u7edc\u6d41\u91cf\u5206\u6790\u3002\u81ea\u6210\u7acb\u4ee5\u6765\uff0cZeek\u51ed\u501f20\u591a\u5e74\u7684\u7814\u7a76\u7ecf\u9a8c\uff0c\u6210\u529f\u5730\u5f25\u5408\u4e86\u5b66\u672f\u754c\u4e0e\u8fd0\u8425\u754c\u4e4b\u95f4\u7684\u4f20\u7edf\u9e3f\u6c9f\u3002\u5982\u4eca\uff0c\u5927\u578b\u516c\u53f8\u4ee5\u53ca\u4f17\u591a\u6559\u80b2\u548c\u79d1\u7814\u673a\u6784\u5728\u64cd\u4f5c\u4e0a\u90fd\u4f9d\u9760\u5b83\u6765\u786e\u4fdd\u5176\u9632\u706b\u5899\u7684\u5b89\u5168\u3002<\/div>\n<div class=\"grid_9 alpha omega\">\n<p style=\"text-align: justify;\">\u4f46\u662f\uff0c\u5728pfSense\u7684\u5b98\u65b9\u8f6f\u4ef6\u6e90\u4e2d\uff0c\u662f\u4e0d\u63d0\u4f9b\u8be5\u8f6f\u4ef6\u5b89\u88c5\u7684\uff0c\u4e0d\u8fc7\uff0c\u6709\u56e2\u961f\u63d0\u4f9b\u4e86\u8be5\u7a0b\u5e8f\u7684\u5f00\u6e90\u7248\u672c\uff0c\u53ef\u4ee5\u5728pfSense\u4e0a\u6b63\u5e38\u8fd0\u884c\uff0c\u7ecf\u672c\u4eba\u6d4b\u8bd5\uff0c\u5728pfSense 2.4.4-RELEASE-p3\u4e0a\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>\u5728\u6700\u65b0\u7684pfSense 2.60\u548cpfSense plus 22.01\u7248\u672c\u4e2d\uff0c\u5b98\u65b9\u5df2\u6536\u5f55\u8be5\u8f6f\u4ef6\uff0c\u76f4\u63a5\u5728\u63d2\u4ef6\u7ba1\u7406\u5f53\u4e2d\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\">\u4ee5\u4e0b\u4e3a\u5b89\u88c5\u6b65\u9aa4\uff1a<\/p>\n<h1 style=\"text-align: justify;\">\u4e00\u3001\u5f00\u542f\u9632\u706b\u5899\u7684SSH\u8bbf\u95ee<\/h1>\n<p style=\"text-align: justify;\">\u767b\u5f55\u5230pfsense\u5e76\u6d4f\u89c8\u81f3\u201c\u7cfb\u7edf\u201d&gt;\u201c\u9ad8\u7ea7\u9009\u9879\u201d\uff0c\u7136\u540e\u5411\u4e0b\u6eda\u52a8\u81f3\u201c SSH\u201d\u90e8\u5206\u5e76\u9009\u4e2d\u201c\u542f\u7528\u5b89\u5168Shell\u201d\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u4e8c\u3001\u542f\u7528PKG\u4e0a\u6e38\u5b58\u50a8\u5e93<\/h1>\n<p style=\"text-align: justify;\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cpfSense\u7981\u7528\u4e0a\u6e38pkg\u5b58\u50a8\u5e93\uff08\u51fa\u4e8e\u5b89\u5168\u7684\u7406\u7531\uff09\u3002 \u9700\u8981\u6682\u65f6\u91cd\u65b0\u542f\u7528\u5b83\uff0c\u8fd9\u91cc\u9700\u8981\u4fee\u6539\u4e00\u4e2a\u6587\u4ef6\u3002<\/p>\n<p style=\"text-align: justify;\">\u7528WinSCP\u8f6f\u4ef6\u767b\u9646\u5230pfSense\u540e\u53f0\uff0c<\/p>\n<p style=\"text-align: justify;\">\u4fee\u6539\u4e0b\u9762\u8fd9\u4e2a\u6587\u4ef6\uff1a<\/p>\n<pre style=\"text-align: justify;\">\/usr\/local\/etc\/pkg\/repos\/FreeBSD.conf\r\n\/usr\/local\/share\/pfSense\/pkg\/repos\/pfSense-repo.conf<\/pre>\n<p style=\"text-align: justify;\">\u628a\u8fd9\u4e24\u4e2a\u6587\u4ef6\u7b2c\u4e00\u884c\u9ed8\u8ba4\u7684\uff1a<\/p>\n<pre>FreeBSD: { enabled: no }<\/pre>\n<p style=\"text-align: justify;\">\u6539\u4e3a\uff1a<\/p>\n<pre>FreeBSD: { enabled: yes }<\/pre>\n<h1 style=\"text-align: justify;\">\u4e09\u3001\u4e0a\u4f20\u5e76\u5b89\u88c5\u8f6f\u4ef6\u5305<\/h1>\n<p style=\"text-align: justify;\">1\u3001\u70b9\u51fb<a href=\"https:\/\/github.com\/shadonet\/pfSense-pkg-bro\/raw\/master\/data\/pfSense-pkg-bro-0.1.0.txz\">\u4e0b\u8f7d<\/a>Bro\u7f51\u7edc\u5b89\u5168\u76d1\u63a7\u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7WinSCP\u5c06pfSense-pkg-bro-0.1.0.txz\u6587\u4ef6\u4e0a\u4f20\u5230pfSense\u7cfb\u7edf\u6839\u76ee\u5f55\u7684\/tmp\u76ee\u5f55\u4e0b\u3002<\/p>\n<p style=\"text-align: justify;\">2\u3001\u7531\u4e8e\u8be5\u8f6f\u4ef6\u5305\u53d6\u51b3\u4e8ebro\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u66f4<\/p>\n<p style=\"text-align: justify;\">\u65b0pkg\u7f13\u5b58\u5e76\u7ee7\u7eed\u5b89\u88c5bro\u3002\u5728\u547d\u4ee4\u884c\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n<pre>pkg update &amp;&amp; pkg install -y bro<\/pre>\n<p style=\"text-align: justify;\">\u8fd0\u884c\u5b8c\u6210\u4ee5\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<pre>cd \/tmp<\/pre>\n<pre>pkg install pfSense-pkg-bro-0.1.0.txz<\/pre>\n<p style=\"text-align: justify;\">\u6839\u636e\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\uff0c\u901a\u8fc7\u8bbf\u95ee<strong>\u7cfb\u7edf\u670d\u52a1&gt; Bro NSM<\/strong>\u6765\u914d\u7f6e\u5e76\u76d1\u63a7\u7f51\u7edc\u3002<\/p>\n<p>\u5177\u4f53\u7684\u8bbe\u7f6e\u548c\u4f7f\u7528\u4e0d\u518d\u8d58\u8ff0\uff01<\/p>\n<p><a href=\"https:\/\/github.com\/shadonet\/pfSense-pkg-bro\">\u5f00\u6e90\u8f6f\u4ef6\u5730\u5740<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bro\u7f51\u7edc\u5b89\u5168\u76d1\u63a7\u73b0\u5728\u5df2\u7ecf\u6539\u540d\u4e3aZeek\uff0c\u662f\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7edc\u5206\u6790\u8f6f\u4ef6\uff0c\u4e0e\u4e00\u822c\u5178\u578b\u7684 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=1610\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[156],"class_list":["post-1610","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-bro"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1610","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=1610"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/1610\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}