{"id":304,"date":"2013-02-12T09:09:03","date_gmt":"2013-02-12T09:09:03","guid":{"rendered":"https:\/\/shan.info\/new\/pf-pfctl%e5%91%bd%e4%bb%a4%e5%a4%87%e5%bf%98\/"},"modified":"2013-02-12T09:09:03","modified_gmt":"2013-02-12T09:09:03","slug":"pf-pfctl%e5%91%bd%e4%bb%a4%e5%a4%87%e5%bf%98","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/pf-pfctl%e5%91%bd%e4%bb%a4%e5%a4%87%e5%bf%98\/","title":{"rendered":"PF &#8211; pfctl\u547d\u4ee4\u5907\u5fd8"},"content":{"rendered":"<p>\n\t&nbsp;<\/p>\n<p style=\"margin: 5px 0px; padding: 0px; color: rgb(54, 54, 54); font-family: Simsun; font-size: 14px; line-height: 26px; background-color: rgb(251, 253, 255);\">\n\t# pfctl -d Disable the packet filter.<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -e Enable the packet filter.<\/p>\n<p style=\"margin: 5px 0px; padding: 0px; color: rgb(54, 54, 54); font-family: Simsun; font-size: 14px; line-height: 26px; background-color: rgb(251, 253, 255);\">\n\t# pfctl -f \/etc\/pf.conf \u8f7d\u5165 pf.conf \u6587\u4ef6<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -nf \/etc\/pf.conf \u89e3\u6790\u6587\u4ef6\uff0c\u4f46\u4e0d\u8f7d\u5165<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -Nf \/etc\/pf.conf \u53ea\u8f7d\u5165\u6587\u4ef6\u4e2d\u7684NAT\u89c4\u5219<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -Rf \/etc\/pf.conf \u53ea\u8f7d\u5165\u6587\u4ef6\u4e2d\u7684\u8fc7\u6ee4\u89c4\u5219<\/p>\n<p style=\"margin: 5px 0px; padding: 0px; color: rgb(54, 54, 54); font-family: Simsun; font-size: 14px; line-height: 26px; background-color: rgb(251, 253, 255);\">\n\t# pfctl -sn \u663e\u793a\u5f53\u524d\u7684NAT\u89c4\u5219<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -sr \u663e\u793a\u5f53\u524d\u7684\u8fc7\u6ee4\u89c4\u5219<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -ss \u663e\u793a\u5f53\u524d\u7684\u72b6\u6001\u8868<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -si \u663e\u793a\u8fc7\u6ee4\u72b6\u6001\u548c\u8ba1\u6570<br style=\"margin: 0px; padding: 0px;\" \/><br \/>\n\t# pfctl -sa \u663e\u793a\u4efb\u4f55\u53ef\u663e\u793a\u7684<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; # pfctl -d Disable the packet filter. # pfctl -e Enable the packet filter. # pfctl -f \/etc\/pf.conf \u8f7d\u5165 pf.conf \u6587\u4ef6 # pfctl -nf \/etc\/pf.conf \u89e3\u6790\u6587\u4ef6\uff0c\u4f46\u4e0d\u8f7d\u5165 # pfctl -Nf \/etc\/pf.conf \u53ea\u8f7d\u5165\u6587\u4ef6\u4e2d\u7684NAT\u89c4\u5219 # pfctl -Rf \/etc\/pf.conf \u53ea\u8f7d\u5165\u6587\u4ef6\u4e2d\u7684\u8fc7\u6ee4\u89c4\u5219 # pfctl -sn \u663e\u793a\u5f53\u524d\u7684NAT\u89c4\u5219 # pfctl -sr \u663e\u793a\u5f53\u524d\u7684\u8fc7\u6ee4\u89c4\u5219 # pfctl -ss \u663e\u793a\u5f53\u524d\u7684\u72b6\u6001\u8868 # pfctl -si \u663e\u793a\u8fc7\u6ee4\u72b6\u6001\u548c\u8ba1\u6570 # pfctl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-pfsense"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}