{"id":7665,"date":"2021-08-30T11:21:56","date_gmt":"2021-08-30T03:21:56","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=7665"},"modified":"2022-11-02T14:44:04","modified_gmt":"2022-11-02T06:44:04","slug":"opnsense%e5%85%a5%e4%be%b5%e6%a3%80%e6%b5%8b%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=7665","title":{"rendered":"OPNsense\u5165\u4fb5\u68c0\u6d4b\u914d\u7f6e"},"content":{"rendered":"<p style=\"text-align: justify;\">OPNsense\u652f\u6301\u901a\u8fc7Suricata \u8fdb\u884c\u5165\u4fb5\u68c0\u6d4b\u3002\u542f\u7528\u540e\uff0c\u53ef\u4ee5\u4e3a\u76d1\u63a7\u6216\u963b\u6b62\u7684\u7f51\u7edc\u6d41\u91cf\u7c7b\u578b\u9009\u62e9\u4e00\u7ec4\u5165\u4fb5\u68c0\u6d4b\u89c4\u5219\u96c6\u3002\u89c4\u5219\u96c6\u53ef\u4ee5\u8bbe\u5b9a\u81ea\u52a8\u66f4\u65b0\uff0c\u89c4\u5219\u96c6\u6709\u514d\u8d39\u7684\uff0c\u4e5f\u6709\u4e00\u4e9b\u9700\u8981\u4ed8\u8d39\u8ba2\u9605\u3002<\/p>\n<p style=\"text-align: justify;\">\u5165\u4fb5\u68c0\u6d4b\u8981\u5360\u7528\u4e00\u5b9a\u7684\u7cfb\u7edf\u8d44\u6e90\uff0c\u5728OPNsense\u4e0a\u542f\u7528\u5165\u4fb5\u68c0\u6d4b\uff0c\u5e94\u786e\u4fdd\u5185\u5b58\u4e0d\u5c11\u4e8e4GB\u3002Suricata\u652f\u6301\u4f7f\u7528\u591a\u7ebf\u7a0b\uff0c\u4f7f\u7528\u591a\u6838\u5904\u7406\u5668\u68c0\u6d4b\u6548\u7387\u4f1a\u66f4\u9ad8\u3002<\/p>\n<h2 id=\"configuring-intrusion-detection-in-opnsense\" style=\"text-align: justify;\">\u542f\u7528\u5165\u4fb5\u68c0\u6d4b<\/h2>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u201c\u670d\u52a1 &gt; \u5165\u4fb5\u68c0\u6d4b &gt; \u7ba1\u7406\u201d\u9875\u9762\u3002\u5728\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\uff0c\u5355\u51fb\u201c\u542f\u7528\u201d\u590d\u9009\u6846\u542f\u7528\u5165\u4fb5\u68c0\u6d4b\u3002\u8981\u5141\u8bb8\u963b\u6b62\u7f51\u7edc\u6d41\u91cf\u800c\u4e0d\u662f\u4ec5\u751f\u6210\u8b66\u62a5\uff0c\u9009\u4e2d\u201cIPS \u6a21\u5f0f\u201d\u590d\u9009\u6846\u3002\u5982\u679c\u662f\u4f7f\u7528 VLAN \u4e14\u8981\u76d1\u63a7 LAN \u63a5\u53e3\uff0c\u9700\u8981\u9009\u4e2d\u201c\u6df7\u6742\u6a21\u5f0f\u201d\u590d\u9009\u6846\uff0c\u8fd9\u5bf9\u4e8e\u6355\u83b7\u7269\u7406\u7f51\u7edc\u63a5\u53e3\u4e0a\u7684\u6570\u636e\u5f88\u91cd\u8981\u3002<\/p>\n<p style=\"text-align: justify;\">\u6a21\u5f0f\u5339\u914d\u9ed8\u8ba4\u4e3aAho-Corasick\uff0c\u53ef\u4ee5\u5c06\u5176\u8bbe\u7f6e\u4e3aHyperscan\u3002\u4f7f\u7528Hyperscan\u65f6\uff0c LAN \u63a5\u53e3\u4e0a\u7684\u7f51\u7edc\u6027\u80fd\u4f1a\u5927\u5e45\u63d0\u9ad8\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u8fd1\u51e0\u5e74\u53d1\u5e03\u7684 CPU\uff0c\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528\u8be5\u8bbe\u7f6e\u3002Hyperscan\u7b97\u6cd5\u53ef\u4ee5\u4e0e\u652f\u6301 SSE3 \u6307\u4ee4\u768464 \u4f4d\u5904\u7406\u5668\u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u201c\u63a5\u53e3\u201d\u9009\u62e9\u6846\u4e2d\uff0c\u9009\u62e9\u8981\u5e94\u7528\u5165\u4fb5\u68c0\u6d4b\u7684\u63a5\u53e3\u3002\u53ea\u9009\u62e9\u7269\u7406\u63a5\u53e3\uff0c\u4e0d\u8981\u9009\u62e9\u4efb\u4f55 VLAN \u63a5\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\">\u63a5\u53e3\u9009\u62e9\u53d6\u51b3\u4e8e\u81ea\u8eab\u7684\u7f51\u7edc\u9700\u6c42\u3002\u53ef\u4ee5\u9009\u62e9 WAN\u6765\u4fdd\u62a4\u7f51\u7edc\u7684\u5916\u56f4\uff0c\u9009\u62e9 LAN \u5219\u53ef\u4ee5\u5bc6\u5207\u76d1\u63a7\u5185\u90e8\u7f51\u7edc\u4e0a\u7684\u6d3b\u52a8\u3002\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u540c\u65f6\u9009\u62e9\u76d1\u63a7\u4e24\u4e2a\u63a5\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7671\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"940\" height=\"780\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1.png 940w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1-300x249.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1-768x637.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-1-362x300.png 362w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9009\u62e9WAN\u63a5\u53e3\uff0c\u5219\u5e94\u70b9\u51fb\u9875\u9762\u9876\u90e8\u7684\u201c\u9ad8\u7ea7\u6a21\u5f0f\u201d\u6309\u94ae\u3002\u5c06\u770b\u5230\u663e\u793a\u7684\u5176\u4ed6\u9009\u9879\u3002\u4e3a\u4e86\u4f7fSuricata \u80fd\u5728WAN \u63a5\u53e3\u4e0a\u6b63\u5e38\u8fd0\u884c\uff0c\u9700\u8981\u5728\u201c\u5bb6\u5ead\u7f51\u7edc\u201d\u680f\u4e2d\u8f93\u5165WAN\u63a5\u53e3IP\u5730\u5740\u3002\u4e0d\u80fd\u4f7f\u7528\u52a8\u6001\u57df\u540d\uff0c\u56e0\u6b64\u5982\u679cWAN\u5730\u5740\u66f4\u6539\uff0c\u9700\u8981\u5728\u6b64\u680f\u4e2d\u66f4\u65b0IP\u5730\u5740\u3002\u5982\u679cWAN\u63a5\u53e3IP\u5730\u5740\u66f4\u65b0\u9891\u7e41\uff0c\u5efa\u8bae\u53ea\u76d1\u63a7LAN \u63a5\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7672\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"812\" height=\"499\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2.png 812w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2-300x184.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2-768x472.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-2-488x300.png 488w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728OPNsense\u4e2d\uff0c\u4e00\u822c\u4f7f\u7528Suricata\u6765\u4fdd\u62a4WAN\uff0c\u4f7f\u7528Sensei\u6765\u4fdd\u62a4LAN\u3002\u56e0\u4e3a\uff0c\u622a\u6b62\u523021.7\u7248\u672c\uff0c\u8fd8\u4e0d\u80fd\u5728\u540c\u4e00\u63a5\u53e3\u540c\u65f6\u8fd0\u884cSuricata\u548cSensei\u3002\u8fd9\u4e24\u79cd\u6280\u672f\u53ef\u4ee5\u76f8\u4e92\u8865\u5145\uff0c\u4e3a\u7f51\u7edc\u589e\u52a0\u66f4\u591a\u7684\u9632\u5fa1\u3002<\/p>\n<p style=\"text-align: justify;\">\u5b8c\u6210\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e0a\u7684\u914d\u7f6e\u540e\uff0c\u5355\u51fb\u201c\u5e94\u7528\u201d\u3002\u5728\u4e0b\u8f7d\u89c4\u5219\u96c6\u5e76\u914d\u7f6e\u81f3\u5c11\u4e00\u4e2a\u7b56\u7565\u4e4b\u524d\uff0c\u5165\u4fb5\u68c0\u6d4b\u8fd8\u4e0d\u4f1a\u6709\u4efb\u4f55\u6548\u679c\u3002<\/p>\n<h2 id=\"downloading-and-enabling-rulesets\" style=\"text-align: justify;\">\u4e0b\u8f7d\u548c\u542f\u7528\u89c4\u5219\u96c6<\/h2>\n<p style=\"text-align: justify;\">\u4e0b\u8f7d\u89c4\u5219\u96c6\uff0c\u5e94\u8be5\u6839\u636e\u81ea\u8eab\u7684\u7f51\u7edc\u60c5\u51b5\u6765\u9009\u62e9\u9002\u7528\u4e8e\u81ea\u5df1\u7f51\u7edc\u6d41\u91cf\u7c7b\u578b\u7684\u90a3\u4e9b\u89c4\u5219\u96c6\u3002\u53ef\u4ee5\u5728<a href=\"https:\/\/docs.opnsense.org\/manual\/ips.html#available-rulesets\">OPNsense \u6587\u6863<\/a>\u4e2d\u627e\u5230\u89c4\u5219\u96c6\u7684\u63cf\u8ff0\u8bf4\u660e\u3002<\/p>\n<p style=\"text-align: justify;\">\u542f\u7528\u89c4\u5219\u96c6\u65f6\uff0c\u5fc5\u987b\u8003\u8651\u53ef\u7528\u7684\u786c\u4ef6\u8d44\u6e90\u91cf\u3002\u5f53\u542f\u7528\u5927\u90e8\u5206\u89c4\u5219\u96c6\u65f6\uff0cRAM \u4f7f\u7528\u91cf\u7ea6\u4e3a 1.5-2GB\u3002\u5982\u679c\u6b63\u5728\u540c\u65f6\u8fd0\u884cSensei \u7b49\u5176\u4ed6\u670d\u52a1\uff0c\u5219\u53ef\u80fd\u8f7b\u677e\u8d85\u8fc74GB \u6216\u66f4\u591a\u3002\u8981\u8003\u8651\u7684\u53e6\u4e00\u4e2a\u65b9\u9762\u662f\u7f51\u7edc\u541e\u5410\u91cf\u3002\u5982\u679c\u9632\u706b\u5899CPU\u5904\u7406\u80fd\u529b\u8f83\u5f31\uff0c\u5728\u542f\u7528\u5165\u4fb5\u68c0\u6d4b\u540e\uff0c\u7f51\u7edc\u541e\u5410\u80fd\u529b\u4f1a\u663e\u8457\u964d\u4f4e\u3002<\/p>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u201c\u4e0b\u8f7d\u201d\u9009\u9879\u5361\uff0c\u7136\u540e\u5355\u51fb\u8981\u542f\u7528\u7684\u6bcf\u4e2a\u89c4\u5219\u96c6\u65c1\u8fb9\u7684\u590d\u9009\u6846\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7673\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"812\" height=\"375\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3.png 812w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3-300x139.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3-768x355.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-3-500x231.png 500w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u9009\u62e9\u5b8c\u89c4\u5219\u96c6\u540e\uff0c\u5355\u51fb\u201c\u542f\u7528\u6240\u9009\u201d\u6309\u94ae\u6765\u542f\u7528\u89c4\u5219\u96c6\u3002\u8fd9\u65f6\u4f1a\u5728\u5df2\u542f\u7528\u7684\u89c4\u5219\u96c6\u65c1\u8fb9\u770b\u5230\u4e00\u4e2a\u590d\u9009\u6807\u8bb0\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7674\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"813\" height=\"510\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4.png 813w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4-300x188.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4-768x482.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-4-478x300.png 478w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u7136\u540e\u5355\u51fb\u201c\u4e0b\u8f7d\u548c\u66f4\u65b0\u89c4\u5219\u201d\u6309\u94ae\u6765\u68c0\u7d22\u89c4\u5219\u3002\u5c06\u5728\u5b89\u88c5\u7684\u89c4\u5219\u65c1\u8fb9\u770b\u5230\u4e0a\u6b21\u4e0b\u8f7d\u7684\u65e5\u671f\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7675\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"812\" height=\"378\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5.png 812w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5-300x140.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5-768x358.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-5-500x233.png 500w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<h2 id=\"creating-a-policy\" style=\"text-align: justify;\">\u521b\u5efa\u7b56\u7565<\/h2>\n<p style=\"text-align: justify;\">\u4eceOPNsense 21.1\u5f00\u59cb\uff0c\u6dfb\u52a0\u4e86\u7b56\u7565\u529f\u80fd\uff0c\u5141\u8bb8\u5c06\u540c\u4e00\u7ec4\u914d\u7f6e\u5e94\u7528\u4e8e\u4e00\u4e2a\u6216\u591a\u4e2a\u89c4\u5219\u96c6\uff0c\u4ee5\u65b9\u4fbf\u66f4\u6709\u6548\u7684\u5904\u7406\u5927\u578b\u89c4\u5219\u96c6\u3002\u7b56\u7565\u53ef\u4ee5\u5c06\u5404\u79cd\u8fc7\u6ee4\u5668\u5e94\u7528\u4e8e\u89c4\u5219\u96c6\uff0c\u6709\u52a9\u4e8e\u4ee5\u66f4\u7cbe\u7ec6\u7684\u65b9\u5f0f\u7ba1\u7406\u89c4\u5219\u3002\u5728\u6dfb\u52a0\u7b56\u7565\u4e4b\u524d\uff0c\u5fc5\u987b\u542f\u7528\u6574\u4e2a\u89c4\u5219\u96c6\uff0c\u7136\u540e\u624b\u52a8\u68c0\u67e5\u8981\u542f\u7528\/\u7981\u7528\u7684\u6570\u6761\u89c4\u5219\u3002\u53ef\u4ee5\u4f7f\u7528\u201c\u5168\u9009\u201d\u590d\u9009\u6846\u4e00\u6b21\u542f\u7528\u6216\u7981\u7528\u591a\u4e2a\u89c4\u5219\uff0c\u8fd9\u663e\u7136\u4e0d\u662f\u63a8\u8350\u7684\u7ba1\u7406\u89c4\u5219\u7684\u6709\u6548\u65b9\u6cd5\u3002<\/p>\n<p style=\"text-align: justify;\">\u7531\u4e8e\u5df2\u7ecf\u9009\u62e9\u5e76\u4e0b\u8f7d\u4e86\u8981\u4f7f\u7528\u7684\u89c4\u5219\u96c6\uff0c\u73b0\u5728\u6211\u4eec\u6765\u521b\u5efa\u7b56\u7565\u3002\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u7b56\u7565\u624d\u80fd\u6b63\u786e\u914d\u7f6e\u5165\u4fb5\u68c0\u6d4b\u3002\u8fdb\u5165\u201c\u670d\u52a1 &gt; \u5165\u4fb5\u68c0\u6d4b &gt; \u7b56\u7565\u201d\u9875\u9762\u3002\u5355\u51fb\u7b56\u7565\u5217\u8868\u53f3\u4e0b\u89d2\u7684\u201c+\u201d\u56fe\u6807\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u201c\u89c4\u5219\u96c6\u201d\u4e0b\u62c9\u6846\u4e2d\uff0c\u9009\u62e9\u5e0c\u671b\u5728\u5f53\u524d\u7b56\u7565\u4e2d\u4f7f\u7528\u7684\u6240\u6709\u89c4\u5219\u96c6\u3002\u5982\u679c\u60f3\u8981\u7b80\u5355\u4f53\u9a8c\uff0c\u53ef\u4ee5\u9009\u62e9\u5355\u4e2a\u7b56\u7565\u4e0b\u7684\u6240\u6709\u89c4\u5219\u96c6\uff0c\u53ef\u4ee5\u5728\u201c\u89c4\u5219\u96c6\u201d\u4e0b\u62c9\u5217\u8868\u4e0b\u6dfb\u52a0\u591a\u4e2a\u8fc7\u6ee4\u5668\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7676\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"812\" height=\"335\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6.png 812w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6-300x124.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6-768x317.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-6-500x206.png 500w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u201c\u64cd\u4f5c\u201d\u4e0b\u62c9\u6846\u5141\u8bb8\u5728\u89c4\u5219\u96c6\u4e2d\u9009\u62e9\u5177\u6709\u201c\u8b66\u62a5\u201d\u3001\u201c\u963b\u6b62\u201d\u6216\u201c\u7981\u7528\u201d\u9ed8\u8ba4\u64cd\u4f5c\u7684\u89c4\u5219\u3002\u4e0b\u8f7d\u89c4\u5219\u96c6\u65f6\uff0c\u6240\u6709\u89c4\u5219\u7684\u64cd\u4f5c\u90fd\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u503c\uff0c\u6b64\u9009\u9879\u53ef\u8ba9\u4f60\u9009\u62e9\u5e0c\u671b\u5e94\u7528\u7b56\u7565\u7684\u89c4\u5219\u3002\u4e00\u822c\u53ef\u4ee5\u8bbe\u7f6e\u4e3a\u201c\u8b66\u62a5\u201d\u548c\u201c\u963b\u6b62\u201d\uff0c\u56e0\u4e3a\u4e0d\u786e\u5b9a\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u7981\u7528\u4e86\u591a\u5c11\u89c4\u5219\uff0c\u8fd9\u4e9b\u89c4\u5219\u53ef\u80fd\u662f\u65e7\u89c4\u5219\u6216\u4e0d\u662f\u975e\u5e38\u6709\u7528\u7684\u89c4\u5219\u3002\u5f53\u7136\uff0c\u4f60\u53ef\u4ee5\u51b3\u5b9a\u8981\u9009\u62e9\u54ea\u4e9b\u89c4\u5219\u3002<\/p>\n<p style=\"text-align: justify;\">\u201c\u65b0\u52a8\u4f5c\u201d\u9009\u9879\u662f\u8981\u4e3a\u5c5e\u4e8e\u8be5\u7b56\u7565\u7684\u6240\u6709\u89c4\u5219\u8bbe\u7f6e\u7684\u64cd\u4f5c\u3002\u5982\u679c\u53ea\u60f3\u8b66\u62a5\u800c\u4e0d\u662f\u963b\u6b62\uff0c\u8bf7\u8bbe\u7f6e\u4e3a\u201c\u8b66\u62a5\u201d\u3002\u5426\u5219\uff0c\u5c06\u5176\u8bbe\u7f6e\u4e3a\u201c\u963b\u6b62\u201d\u3002\u5927\u591a\u6570\u7528\u6237\u90fd\u5e0c\u671b\u6f5c\u5728\u7684\u6076\u610f\u6d41\u91cf\u8fdb\u5165\u6216\u79bb\u5f00\u9632\u706b\u5899\u4e4b\u524d\u4f7f\u7528\u5165\u4fb5\u68c0\u6d4b\u6765\u963b\u6b62\u5b83\uff0c\u800c\u4e0d\u662f\u4ec5\u4ec5\u53ea\u8fdb\u884c\u62a5\u544a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7677\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"813\" height=\"560\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7.png 813w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7-300x207.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7-768x529.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-7-436x300.png 436w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5b8c\u6210\u540e\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\uff0c\u5728\u201c\u7b56\u7565\u201d\u9875\u9762\u7684\u5217\u8868\u4e2d\u5c06\u4f1a\u770b\u5230\u65b0\u6dfb\u52a0\u7684\u7b56\u7565\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"813\" height=\"332\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8.png 813w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8-300x123.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8-768x314.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-8-500x204.png 500w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a>\u5728\u201c\u89c4\u5219\u8c03\u6574\u201d\u9009\u9879\u5361\u3002\u53ef\u4ee5\u5bf9\u7279\u5b9a\u89c4\u5219\u8fdb\u884c\u624b\u52a8\u8c03\u6574\u3002OPNsense \u5efa\u8bae\u5c06\u624b\u52a8\u8c03\u6574\u4fdd\u6301\u5728\u6700\u4f4e\u9650\u5ea6\uff0c\u56e0\u4e3a\u8fd9\u4f1a\u51cf\u6162\u89c4\u5219\u5904\u7406\u901f\u5ea6\uff0c\u964d\u4f4e\u7f51\u7edc\u7684\u6574\u4f53\u541e\u5410\u91cf\u3002<\/p>\n<h2 id=\"scheduling-updates-to-rulesets\" style=\"text-align: justify;\">\u8ba1\u5212\u66f4\u65b0\u89c4\u5219\u96c6<\/h2>\n<p style=\"text-align: justify;\">\u4e3a\u4e86\u4fdd\u8bc1\u89c4\u5219\u96c6\u80fd\u53ca\u65f6\u66f4\u65b0\uff0c\u5fc5\u987b\u5b89\u6392\u65f6\u95f4\u5b9a\u671f\u66f4\u65b0\u89c4\u5219\u96c6\u3002\u8f6c\u5230\u201c\u670d\u52a1&gt;\u5165\u4fb5\u68c0\u6d4b&gt;\u8ba1\u5212\u201d\u9009\u9879\u5361\uff0c\u6dfb\u52a0\u4e00\u4e2a\u65b0\u8ba1\u5212\uff0c\u5355\u51fb\u201c\u542f\u7528\u201d\u590d\u9009\u6846\u3002\u7136\u540e\u8f93\u5165\u5e0c\u671b\u66f4\u65b0\u89c4\u5219\u7684\u9891\u7387\u3002\u4e0b\u56fe\u4e2d\uff0c\u89c4\u5219\u5c06\u5728\u6bcf\u5929\u51cc\u6668 2:00 \u66f4\u65b0\u3002\u5728\u201c\u547d\u4ee4\u201d\u680f\uff0c\u9009\u62e9\u201c\u66f4\u65b0\u5e76\u91cd\u65b0\u52a0\u8f7d\u5165\u4fb5\u68c0\u6d4b\u89c4\u5219\u201d\u3002\u5728\u201c\u63cf\u8ff0\u201d\u680f\u8f93\u5165\u8be5\u8ba1\u5212\u7684\u8bf4\u660e\u3002\u5982\u679c\u8981\u4fee\u6539\u8fd9\u4e2a\u8ba1\u5212\uff0c\u8bf7\u8f6c\u5230\u201c\u7cfb\u7edf&gt;\u8bbe\u7f6e&gt;\u8ba1\u5212\u201d\u83dc\u5355\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7679\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"813\" height=\"700\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9.png 813w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9-300x258.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9-768x661.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-9-348x300.png 348w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u81f3\u6b64\uff0cOPNsense\u4e2d\u7684\u5165\u4fb5\u68c0\u6d4b\u7684\u914d\u7f6e\u5df2\u5b8c\u6210\uff01<\/p>\n<p style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1a<\/strong>\u514d\u8d39\u7684\u5165\u4fb5\u68c0\u6d4b\u89c4\u5219\u96c6\u6bd4\u4ed8\u8d39\u89c4\u5219\u96c6\u6709 30 \u5929\u7684\u5ef6\u8fdf\uff08\u5bf9\u4e8e ET \u89c4\u5219\uff09\uff0c\u56e0\u6b64\u4ecd\u6709\u53ef\u80fd\u53d7\u5230\u5feb\u901f\u4f20\u64ad\u7684\u96f6\u65e5\u6f0f\u6d1e\u7684\u5f71\u54cd\u3002\u867d\u7136\u7ee7\u7eed\u6253\u8865\u4e01\u4e0d\u4e00\u5b9a\u80fd\u963b\u6b62\u8fd9\u79cd\u60c5\u51b5\u7684\u53d1\u751f\uff0c\u4f46\u5b83\u4ecd\u7136\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u505a\u6cd5\uff0c\u56e0\u4e3a\u653b\u51fb\u8005\u4f1a\u4e0d\u65ad\u626b\u63cfInternet\u4e0a\u7684\u5df2\u77e5\u548c\u672a\u77e5\u6f0f\u6d1e\u3002\u5206\u5c42\u9632\u5fa1\u65b9\u6cd5\u662f\u4fdd\u62a4\u7f51\u7edc\u7cfb\u7edf\u7684\u6700\u4f73\u7b56\u7565\u3002<\/p>\n<h2 id=\"viewing-alerts\" style=\"text-align: justify;\">\u67e5\u770b\u8b66\u62a5<\/h2>\n<p style=\"text-align: justify;\">\u5728\u8fd0\u884c\u5165\u4fb5\u68c0\u6d4b\u4e00\u6bb5\u65f6\u95f4\u540e\uff0c\u53ef\u4ee5\u5b9a\u671f\u68c0\u67e5\u201c\u8b66\u62a5\u201d\u9009\u9879\u5361\u6765\u67e5\u770b\u7f51\u7edc\u4e0a\u53d1\u751f\u7684\u6d3b\u52a8\u3002\u5b83\u5c06\u5217\u51fa\u4e8b\u4ef6\u7684\u65f6\u95f4\u3001\u8fde\u63a5\u662f\u88ab\u963b\u6b62\u8fd8\u662f\u4ec5\u4f5c\u4e3a\u8b66\u62a5\u8bb0\u5f55\u3001\u4e8b\u4ef6\u53d1\u751f\u7684\u63a5\u53e3\u3001\u7f51\u7edc\u6d3b\u52a8\u7684\u6e90\/\u76ee\u6807IP\u5730\u5740\u4ee5\u53ca\u89e6\u53d1\u89c4\u5219\u7684\u63cf\u8ff0\u7b49\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7680\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10.png\" alt=\"OPNsense \u5165\u4fb5\u68c0\u6d4b\" width=\"813\" height=\"326\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10.png 813w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10-300x120.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10-768x308.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/08\/opnsense-intrusion-detection-10-500x200.png 500w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>OPNsense\u652f\u6301\u901a\u8fc7Suricata \u8fdb\u884c\u5165\u4fb5\u68c0\u6d4b\u3002\u542f\u7528\u540e\uff0c\u53ef\u4ee5\u4e3a\u76d1\u63a7\u6216\u963b\u6b62 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=7665\">\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":[188,334],"class_list":["post-7665","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-ids","tag-ips"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7665","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=7665"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7665\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}