{"id":30,"date":"2018-07-27T15:19:45","date_gmt":"2018-07-27T07:19:45","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=30"},"modified":"2022-11-02T14:48:43","modified_gmt":"2022-11-02T06:48:43","slug":"pfsense%e4%bd%bf%e7%94%a8%e9%98%b2%e7%81%ab%e5%a2%99ip%e9%98%bb%e6%ad%a2%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=30","title":{"rendered":"pfSense\u4f7f\u7528\u9632\u706b\u5899IP\u963b\u6b62\u5217\u8868"},"content":{"rendered":"<p style=\"text-align: justify;\">IP\u963b\u6b62\u5217\u8868\uff08\u53c8\u79f0IP\u9ed1\u540d\u5355\u3001\u7981\u6b62\u5217\u8868\u7b49\uff09\u529f\u80fd\u975e\u5e38\u4e30\u5bcc\uff0c\u597d\u7528\u7684\u5217\u8868IP\u4f1a\u66f4\u591a\uff0c\u8bef\u62a5\u66f4\u5c11\u3002IP\u963b\u6b62\u5217\u8868\u4e0e\u591a\u5c42\u5b89\u5168\u6027\u63aa\u65bd\u4e00\u8d77\u4f7f\u7528\u65f6\u662f\u975e\u5e38\u6709\u7528\u7684\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0cIP\u963b\u6b62\u5217\u8868\u53ef\u4ee5\u5e2e\u52a9\u51cf\u5c11\u8d44\u6e90\u5229\u7528\u7387\uff0c\u51cf\u5c11\u8bd5\u56fe\u975e\u6cd5\u767b\u5f55\u9632\u706b\u5899\u6b21\u6570\u3002<\/p>\n<p style=\"text-align: justify;\">\u76ee\u524d\u6700\u597d\u7528\u7684IP\u963b\u6b62\u5217\u8868\u6765\u81ea<a href=\"https:\/\/www.binarydefense.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Binary Defense<\/a>\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u5217\u8868\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5217\u8868\u3002banlist.txt\u6587\u4ef6\u6bcf5\u5206\u949f\u66f4\u65b0\u4e00\u6b21\uff0c\u4e0b\u9762\u662f\u66f4\u65b0\u5730\u5740\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.binarydefense.com\/banlist.txt\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.binarydefense.com\/banlist.txt<\/a><\/p>\n<p style=\"text-align: justify;\">\u53e6\u5916\u4e2a\u597d\u7528\u7684\u5217\u8868\u662ffirehol_level3\uff0c\u53ef\u4ee5\u4ece\u4e0b\u9762\u7684\u5730\u5740\u8fdb\u884c\u66f4\u65b0\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/raw.githubusercontent.com\/firehol\/blocklist-ipsets\/master\/firehol_level3.netset\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/raw.githubusercontent.com\/firehol\/blocklist-ipsets\/master\/firehol_level3.netset<\/a><\/p>\n<p style=\"text-align: justify;\">\u4e0b\u9762\uff0c\u5728pfSense\u9632\u706b\u5899\u4e0a\u8fdb\u884c\u914d\u7f6e\u793a\u4f8b\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u521b\u5efa\u522b\u540d<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230Firewall -&gt; Aliases\uff0c\u5355\u51fb\u201cAdd\u201d\uff0c\u4e3a\u522b\u540d\u6307\u5b9a\u540d\u79f0\uff0c\u6307\u660e\u63cf\u8ff0\u8bf4\u660e\uff0c\u7136\u540e\u5728URL\u8868\u5b57\u6bb5\u4e2d\u8f93\u5165\u94fe\u63a5\u3002\u7531\u4e8e\u6700\u4f4e\u66f4\u65b0\u9891\u7387\u81f3\u5c11\u4e00\u5929\uff08\/ 1\uff09\uff0c\u56e0\u6b645\u5206\u949f\u66f4\u65b0\u4e00\u6b21\u7684\u5217\u8868\u6211\u4eec\u5e76\u4e0d\u80fd\u53ca\u65f6\u83b7\u5f97\u4f7f\u7528\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2170\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist.png\" alt=\"\" width=\"1154\" height=\"511\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist.png 1154w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist-1024x453.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist-300x133.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist-768x340.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_banlist-500x221.png 500w\" sizes=\"auto, (max-width: 1154px) 100vw, 1154px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u5165\u7ad9\/ WAN\u89c4\u5219<\/h1>\n<p style=\"text-align: justify;\">\u63a5\u4e0b\u6765\uff0c\u8f6c\u5230Firewall -&gt; Rules\uff0c\u9009\u62e9WAN\u9009\u9879\u5361\uff0c\u5e76\u4f7f\u7528\u4e4b\u524d\u914d\u7f6e\u7684\u522b\u540d\u6dfb\u52a0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u89c4\u5219\u3002\u9009\u4e2d\u8bb0\u5f55\u6570\u636e\u5305\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u80fd\u8f7b\u677e\u5730\u67e5\u627e\u6545\u969c\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2169\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule.png\" alt=\"\" width=\"1146\" height=\"861\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule.png 1146w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule-1024x769.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule-300x225.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule-768x577.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_actual_firewall_rule-399x300.png 399w\" sizes=\"auto, (max-width: 1146px) 100vw, 1146px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u9009\u9879\u8bbe\u7f6e\u5982\u4e0b\uff1a<br \/>\nAction -&gt; Block<br \/>\nInterface -&gt; WAN<br \/>\nProtocol -&gt; Any<br \/>\nSource -&gt; Single host or alias -&gt; BanList<br \/>\nLog -&gt; &lt;\u9009\u4e2d&gt;<br \/>\nDescription -&gt; &lt;\u5e2e\u52a9\u4f60\u8bb0\u4f4f\u89c4\u5219\u7684\u8bf4\u660e&gt;<\/p>\n<p style=\"text-align: justify;\">\u70b9\u51fb\u4fdd\u5b58\u5e76\u5e94\u7528\u540e\uff0c\u89c4\u5219\u5e94\u8be5\u4e0e\u4e0b\u56fe\u7684\u89c4\u5219\u7c7b\u4f3c\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u5217\u8868\u4e2d\u7684\u89c4\u5219\u6bd4\u5176\u4ed6\u89c4\u5219\u66f4\u9ad8\uff0c\u4f8b\u5982VPN\u3001\u7f51\u7edc\u670d\u52a1\u5668\u7684NAT\u89c4\u5219\u7b49\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2171\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule.png\" alt=\"\" width=\"1164\" height=\"68\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule.png 1164w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule-1024x60.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule-300x18.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule-768x45.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/pfsense_firewall_rule-500x29.png 500w\" sizes=\"auto, (max-width: 1164px) 100vw, 1164px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u51fa\u7ad9\/LAN\u89c4\u5219<\/h1>\n<p style=\"text-align: justify;\">\u5982\u679c\u53ea\u662f\u963b\u6b62WAN\u63a5\u53e3\u4e0a\u7684\u5165\u7ad9\uff0c\u90a3\u4e48\u53ef\u4ee5\u8df3\u8fc7\u672c\u8282\u3002\u4e0b\u9762\u8bbe\u7f6e\u7684\u8fd9\u4e2a\u89c4\u5219\u53ef\u4ee5\u963b\u6b62\u4f60\u7684\u5185\u90e8\u7f51\u7edc\u4e0e\u5df2\u77e5\u7684\u4e0d\u826f\u7684\u5916\u90e8IP\u5730\u5740\u8fdb\u884c\u901a\u4fe1\u3002\u8f6c\u5230Firewall -&gt; Rules\uff0cLAN\u9009\u9879\u5361\u3002\u4f7f\u7528\u4e4b\u524d\u914d\u7f6e\u7684\u522b\u540d\uff0c\u6dfb\u52a0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u89c4\u5219\u3002\u5982\u679c\u9700\u8981\u5728\u51e0\u4e2a\u5185\u90e8\u7f51\u6bb5\u4e0a\u4f7f\u7528\u8fd9\u4e2a\u963b\u6b62\u5217\u8868\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u6d6e\u52a8\u89c4\u5219\uff0c\u800c\u65e0\u9700\u5728\u6bcf\u4e2a\u5185\u90e8\u7f51\u7edc\u4e0a\u8fdb\u884c\u590d\u5236\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2166\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound.png\" alt=\"\" width=\"912\" height=\"673\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound.png 912w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound-300x221.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound-768x567.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/block_outbound-407x300.png 407w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u9009\u9879\u8bbe\u7f6e\u5982\u4e0b\uff1a<br \/>\nAction -&gt; Block<br \/>\nInterface -&gt; LAN<br \/>\nProtocol -&gt; Any<br \/>\nDestination -&gt; Single host or alias -&gt; BanList<br \/>\n\u6ce8\u610f\uff1a\u4e0a\u9762\u7684WAN\u89c4\u5219\u4f7f\u7528\u6e90\u5730\u5740\uff0c\u800cLAN\u89c4\u5219\u4f7f\u7528\u76ee\u6807\u5730\u5740<br \/>\nLog -&gt; &lt;\u4e0d\u9009&gt;<br \/>\nDescription -&gt; &lt;\u5e2e\u52a9\u4f60\u8bb0\u4f4f\u89c4\u5219\u7684\u4e1c\u897f&gt;<\/p>\n<h1 style=\"text-align: justify;\">\u8868<\/h1>\n<p style=\"text-align: justify;\">\u8bbe\u7f6e\u5b8c\u4ee5\u540e\uff0c\u5c06\u9f20\u6807\u60ac\u505c\u5728\u9632\u706b\u5899\u89c4\u5219\u4e2d\u7684\u201cBanList\u201d\u4e0a\uff0c\u5e76\u67e5\u770b\u5b83\u662f\u5426\u5177\u6709\u4e0e\u5176\u5173\u8054\u7684IP\u5730\u5740\u3002\u67e5\u770b\u4e0e\u522b\u540d\u5173\u8054\u6240\u6709IP\u5730\u5740\u7684\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u8f6c\u5230Diagnostics&gt;Tables\uff0c\u7136\u540e\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u201cBanList\u201d\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/table.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2172\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/table.png\" alt=\"\" width=\"660\" height=\"469\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/table.png 660w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/table-300x213.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/table-422x300.png 422w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u5b83\u5982\u4f55\u5de5\u4f5c\u548c\u963b\u6b62\u975e\u6cd5IP\u7684\uff1f<\/h1>\n<p style=\"text-align: justify;\">\u8981\u67e5\u770b\u9632\u706b\u5899\u662f\u5426\u963b\u6b62\u4e86\u67d0\u4e9b\u4e1c\u897f\uff0c\u53ea\u9700\u67e5\u770b\u89c4\u5219\u5df2\u5904\u7406\u7684\u5b57\u8282\u6570\uff0c\u6216\u8005\u53ef\u4ee5\u67e5\u770b\u9632\u706b\u5899\u65e5\u5fd7\u3002\u4f8b\u5982\u6211\u7684\u9632\u706b\u5899\u65e5\u5fd7\uff0c\u4e0d\u5230\u4e00\u5206\u949f\uff0c\u6d4f\u89c8WAN\u63a5\u53e3\u4e0a\u7684\u524d\u51e0\u4e2a\u963b\u6b62\u6761\u76ee\uff0c\u5c31\u53d1\u73b0\u4e86\u5982\u4e0bIP\u3002\u5982\u679c\u4f60\u672a\u8bb0\u5f55\u6240\u6709\u963b\u6b62\u7684\u6570\u636e\u5305\uff0c\u5219\u963b\u6b62\u7684\u6d41\u91cf\u4e0d\u4f1a\u663e\u793a\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2167\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block.png\" alt=\"\" width=\"1079\" height=\"46\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block.png 1079w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block-1024x44.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block-300x13.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block-768x33.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_block-500x21.png 500w\" sizes=\"auto, (max-width: 1079px) 100vw, 1079px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u73b0\u5728\u56de\u5230banlist.txt\uff0c\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230\u76f8\u540c\u7684IP\u5730\u5740\uff0c\u8bc1\u660e\u62e6\u622a\u6210\u529f\uff01<\/p>\n<h2 style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_blocked_ip_in_banlist.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2168 aligncenter\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall_blocked_ip_in_banlist.png\" alt=\"\" width=\"116\" height=\"81\" \/><\/a><\/h2>\n<p style=\"text-align: justify;\">\u539f\u6587<a href=\"https:\/\/www.linuxincluded.com\/using-firewall-block-lists\/\" target=\"_self\" rel=\"noopener noreferrer\">\u5730\u5740<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP\u963b\u6b62\u5217\u8868\uff08\u53c8\u79f0IP\u9ed1\u540d\u5355\u3001\u7981\u6b62\u5217\u8868\u7b49\uff09\u529f\u80fd\u975e\u5e38\u4e30\u5bcc\uff0c\u597d\u7528\u7684\u5217\u8868IP\u4f1a\u66f4\u591a\uff0c\u8bef &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=30\">\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":[307],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-307"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/30","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=30"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}