{"id":425,"date":"2018-08-09T15:32:26","date_gmt":"2018-08-09T07:32:26","guid":{"rendered":"https:\/\/pfsensechina.com\/wp\/?p=425"},"modified":"2020-08-24T21:59:45","modified_gmt":"2020-08-24T13:59:45","slug":"pfsense%e8%ae%be%e7%bd%aesuricata","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=425","title":{"rendered":"pfSense\u8bbe\u7f6eSuricata"},"content":{"rendered":"<header>\n<h1 style=\"text-align: justify;\"><strong>\u5728pfSense\u4e0a\u8bbe\u7f6eSuricata<\/strong><\/h1>\n<p style=\"text-align: justify;\">Suricata\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5165\u4fb5\u68c0\u6d4b\u7cfb\u7edf\uff08IDS\uff09\u3002Suricata\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/p>\n<ol style=\"text-align: justify;\">\n<li style=\"text-align: justify;\">\u5b83\u662f\u591a\u7ebf\u7a0b\u7684\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u8fd0\u884c\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u5b83\u5c06\u5e73\u8861\u6bcf\u4e2a\u5904\u7406\u5668\u4e0a\u7684\u8d1f\u8f7d\u5904\u7406\u3002<\/li>\n<li style=\"text-align: justify;\">\u00a0Suricata\u4f1a\u5728\u6d41\u91cf\u5f00\u59cb\u65f6\u81ea\u52a8\u8bc6\u522b\u6700\u5e38\u89c1\u7684\u534f\u8bae\uff0c\u5141\u8bb8\u89c4\u5219\u7f16\u5199\u8005\u5c06\u89c4\u5219\u5199\u5165\u534f\u8bae\uff0c\u800c\u4e0d\u662f\u9884\u671f\u7684\u7aef\u53e3\u3002<\/li>\n<li style=\"text-align: justify;\">Suricata\u53ef\u4ee5\u8bc6\u522b\u7f51\u7edc\u4e0a\u6570\u4ee5\u5343\u8ba1\u7684\u6587\u4ef6\u7c7b\u578b\uff0c\u5e76\u4e14\u53ef\u4ee5\u6807\u8bb0\u8981\u63d0\u53d6\u7684\u6587\u4ef6\uff0c\u4ee5\u4fbf\u5c06\u6587\u4ef6\u5199\u5165\u78c1\u76d8\u5e76\u4f7f\u7528\u63cf\u8ff0\u6355\u83b7\u60c5\u51b5\u548c\u6d41\u7a0b\u7684\u5143\u6570\u636e\u6587\u4ef6\u3002<\/li>\n<li style=\"text-align: justify;\">Suricata\u7684\u53e6\u4e00\u4e2a\u4f18\u70b9\u662f\u5b83\u4e0eSnort\u89c4\u5219\u517c\u5bb9\uff0c\u56e0\u6b64\u867d\u7136\u5b83\u662fSnort\u7684\u66ff\u4ee3\u54c1\uff0c\u4f46\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528Snort\u66f4\u65b0\u3002\u5728pfSense \u4e2d\uff0cSuricata\u4ee5\u63d2\u4ef6\u5f62\u5f0f\u63d0\u4f9b\u3002<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u4e0b\u9762\uff0c\u6211\u4eec\u6765\u914d\u7f6eSuricata\u3002<\/p>\n<\/header>\n<h1 style=\"text-align: justify;\"><strong>\u4e00\u3001\u5b89\u88c5Suricata<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u8fdb\u5165System\u00a0-&gt;\u00a0Package Manager\u00a0-&gt;\u00a0Available Packages\uff0c\u641c\u7d22suricata\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2312\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata.png\" alt=\"\" width=\"1188\" height=\"446\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata.png 1188w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata-1024x384.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata-300x113.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata-768x288.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-install-suricata-500x188.png 500w\" sizes=\"auto, (max-width: 1188px) 100vw, 1188px\" \/><\/a> \u7136\u540e\u70b9\u51fb\u53f3\u4fa7\u7684\u5b89\u88c5\u6309\u94ae\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u7cfb\u7edf\u670d\u52a1\u83dc\u5355\u4e0b\u53ef\u4ee5\u627e\u5230suricata\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-ser-sur.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2315\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-ser-sur.png\" alt=\"\" width=\"248\" height=\"579\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-ser-sur.png 248w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-ser-sur-128x300.png 128w\" sizes=\"auto, (max-width: 248px) 100vw, 248px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><strong>\u4e8c\u3001\u542f\u7528\u89c4\u5219\u4e0b\u8f7d<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u5728Services\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Global Settings\uff08\u5168\u5c40\u8bbe\u7f6e\uff09\u4e0b\uff0c\u8fdb\u884c\u8bbe\u7f6e\u6765\u4e0b\u8f7dSnort\u548cET\u89c4\u5219\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2311\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download.png\" alt=\"\" width=\"1206\" height=\"532\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download.png 1206w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download-1024x452.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download-300x132.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download-768x339.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-enable-rule-download-500x221.png 500w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u6dfb\u52a0\u89c4\u5219\u540e\uff0c\u53ef\u4ee5\u5728Services\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Updates\u4e0b\u624b\u52a8\u66f4\u65b0\u4e0b\u8f7d\u89c4\u5219\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2310\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules.png\" alt=\"\" width=\"1197\" height=\"557\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules.png 1197w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules-1024x476.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules-300x140.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules-768x357.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-download-rules-500x233.png 500w\" sizes=\"auto, (max-width: 1197px) 100vw, 1197px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u4e09\u3001\u521b\u5efa\u5217\u8868<\/h1>\n<p style=\"text-align: justify;\">\u5728<strong>Services\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Pass List<\/strong>\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u4ee3\u8868home network\uff08\u5bb6\u5ead\u7f51\u7edc\uff09\u7684\u5217\u8868\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2322\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list.png\" alt=\"\" width=\"1189\" height=\"367\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list.png 1189w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list-1024x316.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list-300x93.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list-768x237.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-pass-list-500x154.png 500w\" sizes=\"auto, (max-width: 1189px) 100vw, 1189px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728Services-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Suppress\u4e0b\u521b\u5efa\u4e00\u4e2a\u6291\u5236\u5217\u8868\u6765\u6291\u5236\u67d0\u4e9bsnort\u548cET\u7b7e\u540d\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2317\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list.png\" alt=\"\" width=\"1175\" height=\"345\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list.png 1175w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-1024x301.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-300x88.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-768x225.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-500x147.png 500w\" sizes=\"auto, (max-width: 1175px) 100vw, 1175px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u4ee5\u4e0b\u662f\u6291\u5236\u7684\u4e00\u4e9b\u7b7e\u540d\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2318\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config.png\" alt=\"\" width=\"1064\" height=\"400\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config.png 1064w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config-1024x385.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config-300x113.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config-768x289.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-supp-list-config-500x188.png 500w\" sizes=\"auto, (max-width: 1064px) 100vw, 1064px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728\u6291\u5236\u5217\u8868\u7684\u9876\u90e8\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u5728Services\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Interfaces\u00a0-&gt;\u00a0WAN Categories\u4e0b\u542f\u7528\u54ea\u4e9b\u89c4\u5219\u7c7b\u522b\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2321\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per.png\" alt=\"\" width=\"1078\" height=\"763\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per.png 1078w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per-1024x725.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per-300x212.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per-768x544.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/ps-enable-rules-per-424x300.png 424w\" sizes=\"auto, (max-width: 1078px) 100vw, 1078px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><strong>\u56db\u3001\u542f\u7528Barnyard2<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u5728Services\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Interface\u00a0-&gt;\u00a0WAN Barnyard2\u4e0b\uff0c\u5982\u679c\u5df2\u7ecf\u914d\u7f6e\u4e86snorby\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u4e8b\u4ef6\u53d1\u9001\u5230snorby\u6570\u636e\u5e93\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2309\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup.png\" alt=\"\" width=\"1095\" height=\"757\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup.png 1095w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup-1024x708.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup-300x207.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup-768x531.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-barnyard-setup-434x300.png 434w\" sizes=\"auto, (max-width: 1095px) 100vw, 1095px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><strong>\u4e94\u3001\u914d\u7f6e\u65e5\u5fd7\u8bb0\u5f55\u548c\u5176\u4ed6\u53c2\u6570<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u5728Servces\u00a0-&gt;\u00a0Suricata\u00a0-&gt;\u00a0Interface\u00a0-&gt;\u00a0WAN settings\u4e0b\uff0c\u5728Interfaces\uff08\u63a5\u53e3\uff09\u7684General Settings\uff08\u5e38\u89c4\u8bbe\u7f6e\uff09\u4e0b\uff0c\u6211\u4eec\u542f\u7528\u5b83\u5e76\u8bbe\u7f6e\u65e5\u5fd7\u8bb0\u5f55\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2314\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1.png\" alt=\"\" width=\"1072\" height=\"607\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1.png 1072w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1-1024x580.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1-300x170.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1-768x435.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-interface-sett-1-500x283.png 500w\" sizes=\"auto, (max-width: 1072px) 100vw, 1072px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728\u4e0b\u9762\u6211\u542f\u7528\u4e86\u4e4b\u524d\u521b\u5efa\u7684\u5217\u8868\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2313\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list.png\" alt=\"\" width=\"1087\" height=\"330\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list.png 1087w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list-1024x311.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list-300x91.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list-768x233.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-int-assign-supp-pass-list-500x152.png 500w\" sizes=\"auto, (max-width: 1087px) 100vw, 1087px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728\u8fd9\u91cc\u6ca1\u6709\u9009\u4e2d<strong>Log Extende Http Info<\/strong>(\u6269\u5c55\u65e5\u5fd7\u8bb0\u5f55)<strong>\u548c<\/strong><strong>Enale\u00a0\u00a0tracked files\u00a0Log<\/strong>\uff08\u8ddf\u8e2a\u7684\u6587\u4ef6\u65e5\u5fd7\uff09\uff0c\u56e0\u4e3a\u6211\u901a\u8fc7\u7cfb\u7edf\u65e5\u5fd7\u53d1\u9001\u65e5\u5fd7\uff0c\u800cJSON\u88ab\u622a\u65ad\uff08\u65b9\u4fbf\u540e\u9762\u8fdb\u884cELK\u8bbe\u7f6e\uff09\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2319\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options.png\" alt=\"\" width=\"965\" height=\"626\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options.png 965w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options-300x195.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options-768x498.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-suricat-log-options-462x300.png 462w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><strong>\u516d\u3001\u542f\u7528\u770b\u95e8\u72d7<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u5b89\u88c5<strong>Service Watchdog<\/strong>\u63d2\u4ef6\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2320\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed.png\" alt=\"\" width=\"979\" height=\"315\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed.png 979w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed-300x97.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed-768x247.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-watchdog-installed-500x161.png 500w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728Services\u00a0-&gt;\u00a0Service Watchdog\u4e0b\uff0c\u53ef\u4ee5\u76d1\u63a7<strong>Suricata<\/strong>\u670d\u52a1\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2316\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata.png\" alt=\"\" width=\"979\" height=\"426\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata.png 979w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata-300x131.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata-768x334.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/08\/pf-service-watchdog-suricata-500x218.png 500w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\"><strong>\u4e03\u3001\u68c0\u67e5\u914d\u7f6e<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u53ef\u4ee5ssh\u5230pfSense\u5e76\u67e5\u770b\u6240\u6709\u8bbe\u7f6e\uff1a<\/p>\n<pre class=\"highlight\"><code>[2.3-RELEASE][root@pf.kar.int]\/root: top -CPz -o cpu -n\r\nlast pid: 69987;  load averages:  0.08,  0.06,  0.07  up 6+07:27:23    17:38:06\r\n41 processes:  1 running, 40 sleeping\r\n\r\nMem: 299M Active, 484M Inact, 260M Wired, 383M Buf, 2870M Free\r\nSwap: 4096M Total, 4096M Free\r\n\r\n\r\n\r\n  PID USERNAME  THR PRI NICE   SIZE    RES STATE   C   TIME     CPU COMMAND\r\n35582 root        7  20    0   696M   593M uwait   1   8:21   2.78% suricata\r\n35368 root        1  20    0   134M 99440K nanslp  0  14:56   0.00% barnyard2\r\n15529 root        1  20    0 16676K  2256K bpf     0   4:54   0.00% filterlog\r\n22872 root        5  20    0 27300K  2448K accept  1   3:55   0.00% dpinger\r\n46428 root        1  52   20 17000K  2564K wait    0   3:53   0.00% sh\r\n37472 unbound     2  20    0 63304K 34280K kqread  1   3:06   0.00% unbound<\/code><\/pre>\n<pre class=\"highlight\"><code>[2.3-RELEASE][root@pf.kar.int]\/root: ps auwwx | grep suricata\r\nroot    35582   2.9 14.7 713016 607712  -  Ss    2:36PM     8:24.77 \/usr\/local\/bin\/suricata -i re0 -D -c \/usr\/local\/etc\/suricata\/suricata_34499_re0\/suricata.yaml --pidfile \/var\/run\/suricata_re034499.pid\r\nroot    35368   0.0  2.4 137684  99440  -  S     2:36PM    14:56.48 \/usr\/local\/bin\/barnyard2 -r 34499 -f unified2.alert --pid-path \/var\/run --nolock-pidfile -c \/usr\/local\/etc\/suricata\/suricata_34499_re0\/barnyard2.conf -d \/var\/log\/suricata\/suricata_re034499 -D -q\r\nroot    90667   0.0  0.1  18740   2252  0  S+    5:39PM     0:00.00 grep suricata<\/code><\/pre>\n<p style=\"text-align: justify;\">\u53ef\u4ee5\u67e5\u770b\/ var \/ log \/ suricata \/ INSTANCE\u4e0b\u7684\u6240\u6709\u65e5\u5fd7\uff1a<\/p>\n<pre class=\"highlight\"><code>[2.3-RELEASE][root@pf.kar.int]\/root: ls -1 \/var\/log\/suricata\/suricata_re034499\/\r\nalerts.log\r\nalerts.log.2016_0501_1750\r\nbarnyard2\r\nhttp.log\r\nsuricata.log\r\nunified2.alert.1462653477<\/code><\/pre>\n<p style=\"text-align: justify;\">\u5b83\u521b\u5efa\u4e86\u4e00\u4e2acronjob\u6765\u76d1\u89c6\u670d\u52a1\uff1a<\/p>\n<p style=\"text-align: justify;\"><code>[2.3-RELEASE][root@pf.kar.int]\/root: grep watch \/etc\/crontab<br \/>\n*\/1\t*\t*\t*\t*\troot\t\/usr\/local\/pkg\/servicewatchdog_cron.php<\/code><\/p>\n<p style=\"text-align: justify;\">\u539f\u6587<a href=\"https:\/\/elatov.github.io\/2016\/11\/setup-suricata-on-pfsense\/\">\u5730\u5740<\/a><\/p>\n<p style=\"text-align: justify;\"><code><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728pfSense\u4e0a\u8bbe\u7f6eSuricata Suricata\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5165\u4fb5\u68c0\u6d4b\u7cfb\u7edf &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=425\">\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":[28],"tags":[199],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-suricata"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/425","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=425"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}