{"id":144,"date":"2009-03-18T00:29:12","date_gmt":"2009-03-17T16:29:12","guid":{"rendered":"http:\/\/amjet.dyndns.biz\/blog\/IT\/?p=144"},"modified":"2013-03-01T19:50:13","modified_gmt":"2013-03-01T11:50:13","slug":"pfsense-%e8%88%87-log-%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=144","title":{"rendered":"pfSense \u8207 log \u7ba1\u7406"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u6e2c\u8a66 pfSense \u9806\u4fbf\u8a18\u4e00\u4e0b\u767c\u751f\u7684\u554f\u984c\uff0c\u8a2d\u5099\u662f\u4e00\u53f0 4 port realtek \u7db2\u5361\u7684 PC\uff0c\u5148\u5728 CF \u88dd\u6700\u65b0 1.2.2 \u7248 embedded image\uff0c\u7d50\u679c\u4e0d\u77e5\u4ec0\u9ebc\u539f\u56e0 DMZ \u548c LAN 2 \u500b\u8a2d\u5b9a\u597d\u7684\u7db2\u6bb5\u4e0d\u80fd\u4e92\u901a\uff0c\u5728 forum \u4e0a\u63d0\u51fa\u4f86\u4e5f\u6c92\u56de\u61c9\uff0c\u6700\u5f8c\u53c3\u8003\u4e00\u4e9b post downgrade \u5230 1.2.0 \u7248\u5f8c\uff0c\u540c\u6a23\u7684\u8a2d\u5b9a\u904b\u4f5c\u5c31\u6b63\u5e38\u4e86\uff0c\u53e6\u5916\u8981\u6c42 128M \u4ee5\u4e0a\u7684\u8a18\u61b6\u9ad4\u5c0d embedded \u800c\u8a00\u4f3c\u4e4e\u9ad8\u4e86\u9ede\uff0c\u76ee\u524d\u662f\u525b\u597d 128M \u7684\u8a18\u61b6\u9ad4\u5728\u8dd1\uff0c\u9084\u6c92\u6709\u51fa\u73fe\u4efb\u4f55\u554f\u984c\u3002<\/p>\n<p>CF \u5361\u7a7a\u9593\u6709\u9650 \uff0c\u628a log \u5b58\u5230\u9060\u7aef\u7684 server \u662f\u4e00\u500b\u5f88\u597d\u7684\u4f5c\u6cd5\uff0c\u4ee5 fedora \u70ba\u4f8b\uff0c\u53ea\u8981\u4fee\u6539 \/etc\/sysconfig\/rsyslog \u5c07\u8a2d\u5b9a\u6539\u70ba<\/p>\n<p>SYSLOGD_OPTIONS=&#8221;-m 0 -x -r&#8221;<br \/>\n\u518d\u91cd\u65b0\u555f\u52d5 rsyslogd \u670d\u52d9\uff0cFedora \u5c31\u53ef\u4ee5\u63a5\u6536\u4f86\u81ea pfSense \u7684 log\u3002<\/p>\n<p>\u4f46\u662f\u9019\u500b\u4f5c\u6cd5\u6709\u4e00\u500b\u7f3a\u9ede\uff0cpfSense \u548c\u7cfb\u7d71\u7684 log \u5168\u6df7\u5728 \/var\/log\/messages \u4e86\uff0cfirewall \u8a2d\u5099 log \u91cf\u7279\u5225\u5927\uff0c\u53e6\u5916\u5beb\u5230\u4e00\u500b\u7368\u7acb\u7684\u6a94\u6848\u6703\u66f4\u597d\u7ba1\u7406\u3002\u9996\u5148\u6211\u5011\u8981\u5224\u65b7 pfSense \u9001\u51fa\u4f86\u7684 log \u662f\u5e36\u90a3\u4e00\u500b facility\uff0c\u5148\u505c\u6b62 rsyslogd \u670d\u52d9\uff0c\u4ee5 root \u8eab\u4efd\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u5373\u6642\u76e3\u770b\u4e00\u4e0b pfSense \u9001\u51fa\u4f86\u7684 log<\/p>\n<p>rsyslogd -m 0 -x -r -d<\/p>\n<p>\u5f88\u5feb\u7684\u61c9\u8a72\u6703\u770b\u5230\u985e\u4f3c\u4ee5\u4e0b\u7684\u4e8b\u4ef6<\/p>\n<p>1800607472: logmsg:<strong> local0.info<\/strong>&lt;134&gt;, flags 2, from &#8216;x.x.x.x&#8217;, msg Mar 18 00:18:48 pf: 128. 341606 rule 67\/0(match): block in &#8230;..<\/p>\n<p>\u6240\u4ee5\u6211\u5011\u53ef\u4ee5\u767c\u73fe pfSense \u662f\u5229\u7528 local0 facility \u4f86\u50b3\u9001 log\uff0c\u53ea\u8981\u5728 \/etc\/rsyslog.conf \u52a0\u5165\u4ee5\u4e0b\u8a2d\u5b9a\uff0c\u5c31\u53ef\u4ee5\u628a pfSense \u9001\u51fa\u4f86\u7684 log \u5b58\u5230\u6307\u5b9a\u7684\u6a94\u6848<\/p>\n<p>local0.*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/var\/log\/pfsense.log<\/p>\n<p><strong>[ratings]<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u6e2c\u8a66 pfSense \u9806\u4fbf\u8a18\u4e00\u4e0b\u767c\u751f\u7684\u554f\u984c\uff0c\u8a2d\u5099\u662f\u4e00\u53f0 4 port realtek \u7db2\u5361\u7684 PC\uff0c\u5148\u5728 CF \u88dd\u6700\u65b0 1.2.2 \u7248 embedded image\uff0c\u7d50\u679c\u4e0d\u77e5\u4ec0\u9ebc\u539f\u56e0 DMZ \u548c LAN 2 \u500b\u8a2d\u5b9a\u597d\u7684\u7db2\u6bb5\u4e0d\u80fd\u4e92\u901a\uff0c\u5728 forum \u4e0a\u63d0\u51fa\u4f86\u4e5f\u6c92\u56de\u61c9\uff0c\u6700\u5f8c\u53c3\u8003\u4e00\u4e9b post downgrade \u5230 1.2.0 \u7248\u5f8c\uff0c\u540c\u6a23\u7684\u8a2d\u5b9a\u904b\u4f5c\u5c31\u6b63\u5e38\u4e86\uff0c\u53e6\u5916\u8981\u6c42 128M \u4ee5\u4e0a\u7684\u8a18\u61b6\u9ad4\u5c0d embedded \u800c\u8a00\u4f3c\u4e4e\u9ad8\u4e86\u9ede\uff0c\u76ee\u524d\u662f\u525b\u597d 128M \u7684\u8a18\u61b6\u9ad4\u5728\u8dd1\uff0c\u9084\u6c92\u6709\u51fa\u73fe\u4efb\u4f55\u554f\u984c\u3002 CF \u5361\u7a7a\u9593\u6709\u9650 \uff0c\u628a log \u5b58\u5230\u9060\u7aef\u7684 server \u662f\u4e00\u500b\u5f88\u597d\u7684\u4f5c\u6cd5\uff0c\u4ee5 fedora \u70ba\u4f8b\uff0c\u53ea\u8981\u4fee\u6539 \/etc\/sysconfig\/rsyslog \u5c07\u8a2d\u5b9a\u6539\u70ba SYSLOGD_OPTIONS=&#8221;-m 0 -x -r&#8221; \u518d\u91cd\u65b0\u555f\u52d5 rsyslogd \u670d\u52d9\uff0cFedora \u5c31\u53ef\u4ee5\u63a5\u6536\u4f86\u81ea pfSense \u7684 log\u3002 \u4f46\u662f\u9019\u500b\u4f5c\u6cd5\u6709\u4e00\u500b\u7f3a\u9ede\uff0cpfSense [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[41,40],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-security","tag-firewall","tag-pfsense"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":5,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":695,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/695"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}