{"id":171,"date":"2018-07-29T08:41:13","date_gmt":"2018-07-29T00:41:13","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=171"},"modified":"2020-08-24T22:13:50","modified_gmt":"2020-08-24T14:13:50","slug":"pfsense-book%e4%b9%8b%e9%98%b2%e7%81%ab%e5%a2%99%ef%bc%88%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=171","title":{"rendered":"pfSense book\u4e4b\u9632\u706b\u5899\uff08\u4e00\uff09"},"content":{"rendered":"<h1 style=\"text-align: justify;\">\u9632\u706b\u5899<\/h1>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li><strong>\u9632\u706b\u5899\u57fa\u7840<\/strong><\/li>\n<li><strong>\u5165\u53e3\u8fc7\u6ee4<\/strong><\/li>\n<li><strong>\u51fa\u53e3\u8fc7\u6ee4<\/strong><\/li>\n<li><strong>\u7b80\u4ecb\u9632\u706b\u5899\u89c4\u5219<\/strong><\/li>\n<li><strong>\u522b\u540d<\/strong><\/li>\n<li><strong>\u9632\u706b\u5899\u89c4\u5219\u914d\u7f6e\u5b9e\u4f8b<\/strong><\/li>\n<li><strong>\u89c4\u5219\u65b9\u6cd5<\/strong><\/li>\n<li><strong>\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/strong><\/li>\n<li><strong>\u6d6e\u52a8\u89c4\u5219<\/strong><\/li>\n<li><strong>\u4f7f\u7528\u5176\u4ed6\u516c\u7f51IP\u5730\u5740\u7684\u65b9\u6cd5<\/strong><\/li>\n<li><strong>\u865a\u62dfIP\u5730\u5740<\/strong><\/li>\n<li><strong>\u57fa\u4e8e\u65f6\u95f4\u7684\u89c4\u5219<\/strong><\/li>\n<li><strong>\u67e5\u770b\u9632\u706b\u5899\u65e5\u5fd7<\/strong><\/li>\n<li><strong>\u5982\u4f55\u5c01\u9501\u8bbf\u95ee\u4e00\u4e2a\u7f51\u7ad9\uff1f<\/strong><\/li>\n<li><strong>\u6545\u969c\u6392\u9664\u9632\u706b\u5899\u89c4\u5219<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">pfSense\u6267\u884c\u7684\u4e3b\u8981\u529f\u80fd\u4e4b\u4e00\u662f\u8fc7\u6ee4\u6d41\u91cf\u3002\u672c\u7ae0\u5305\u62ec\u9632\u706b\u5899\u57fa\u672c\u539f\u7406\uff0c\u6700\u4f73\u5b9e\u8df5\u4ee5\u53ca\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u6240\u9700\u7684\u5fc5\u8981\u4fe1\u606f\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u9632\u706b\u5899\u57fa\u7840\u77e5\u8bc6<\/h1>\n<p style=\"text-align: justify;\">\u672c\u8282\u4e3b\u8981\u4ecb\u7ecd\u9632\u706b\u5899\u6982\u5ff5\uff0c\u4e3a\u7406\u89e3\u3001\u4f7f\u7528pfSense\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u5960\u5b9a\u57fa\u7840\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u57fa\u672c\u672f\u8bed<\/h2>\n<p style=\"text-align: justify;\">\u89c4\u5219\u548c\u89c4\u5219\u96c6\u662f\u672c\u7ae0\u901a\u7bc7\u4f7f\u7528\u7684\u4e24\u4e2a\u672f\u8bed\uff1a<\/p>\n<table class=\"docutils field-list\">\n<colgroup>\n<col class=\"field-name\" \/>\n<col class=\"field-body\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr class=\"field-odd field firstRow\">\n<th class=\"field-name\">\u89c4\u5219:<\/th>\n<td class=\"field-body\">\u00a0 \u6307\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565\u4e0a\u7684\u5355\u4e2a\u6761\u76ee\u3002\u89c4\u5219\u5c06\u5f15\u5bfc\u9632\u706b\u5899\u5982\u4f55\u5339\u914d\u6216\u5904\u7406\u7f51\u7edc\u6d41\u91cf\u3002<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u89c4\u5219\u96c6:<\/th>\n<td class=\"field-body\">\u00a0 \u7edf\u79f0\u4e3a\u4e00\u7ec4\u89c4\u5219\u3002 \u8981\u4e48\u662f\u6574\u4e2a\u9632\u706b\u5899\u89c4\u5219\uff0c\u8981\u4e48\u662f\u7279\u5b9a\u4e0a\u4e0b\u6587\u4e2d\u7684\u4e00\u7ec4\u89c4\u5219\uff0c\u4f8b\u5982\u63a5\u53e3\u9009\u9879\u5361\u4e0a\u7684\u89c4\u5219\u3002 \u5b8c\u6574\u7684\u9632\u706b\u5899\u89c4\u5219\u96c6\u662f\u6240\u6709\u7528\u6237\u914d\u7f6e\u548c\u81ea\u52a8\u6dfb\u52a0\u89c4\u5219\u7684\u603b\u548c\uff0c\u672c\u7ae0\u5c06\u8fdb\u4e00\u6b65\u8ba8\u8bba\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u201c\u63a5\u53e3\u201d\u9009\u9879\u5361\u4e0a\u7684\u89c4\u5219\u96c6\u662f\u7531pfSense\u4f18\u5148\u5339\u914d\u6267\u884c\u7684\u3002 \u8fd9\u610f\u5473\u7740\u4ece\u4e0a\u5230\u4e0b\u6267\u884c\u63a5\u53e3\u7684\u89c4\u5219\u96c6\uff0c\u5339\u914d\u7684\u7b2c\u4e00\u4e2a\u89c4\u5219\u5c06\u662f\u9632\u706b\u5899\u4f7f\u7528\u7684\u89c4\u5219\u3002 \u5339\u914d\u540e\u5373\u505c\u6b62\uff0c\u7136\u540e\u9632\u706b\u5899\u91c7\u53d6\u8be5\u89c4\u5219\u6307\u5b9a\u7684\u64cd\u4f5c\u3002 \u521b\u5efa\u65b0\u89c4\u5219\u65f6\uff0c\u8bf7\u59cb\u7ec8\u7262\u8bb0\u8fd9\u4e00\u70b9\uff0c\u7279\u522b\u662f\u5728\u5236\u5b9a\u9650\u5236\u6d41\u91cf\u7684\u89c4\u5219\u65f6\u3002 \u6700\u5bbd\u677e\u7684\u89c4\u5219\u5e94\u8be5\u653e\u5728\u5217\u8868\u7684\u5e95\u90e8\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5728\u4e0a\u9762\u5236\u5b9a\u9650\u5236\u6216\u4f8b\u5916\u89c4\u5219\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f<\/p>\n<p class=\"last\" style=\"text-align: justify;\">\u201c\u6d6e\u52a8\u201d\u9009\u9879\u5361\u662f\u6b64\u89c4\u5219\u5904\u7406\u903b\u8f91\u7684\u552f\u4e00\u4f8b\u5916\u3002 \u5728\u672c\u7ae0\u7684\u540e\u9762\u90e8\u5206\u5c06\u4f1a\u4ecb\u7ecd\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u72b6\u6001\u8fc7\u6ee4<\/h2>\n<p style=\"text-align: justify;\">pfSense\u662f\u4e00\u4e2a\u6709\u72b6\u6001\u7684\u9632\u706b\u5899\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4f1a\u8bb0\u4f4f\u6709\u5173\u6d41\u7ecf\u9632\u706b\u5899\u8fde\u63a5\u7684\u4fe1\u606f\uff0c\u4ee5\u4fbf\u81ea\u52a8\u5e94\u7b54 \u6d41\u91cf\u3002 \u8fd9\u4e9b\u6570\u636e\u4fdd\u7559\u5728\u72b6\u6001\u8868\u4e2d\u3002 \u72b6\u6001\u8868\u4e2d\u7684\u8fde\u63a5\u4fe1\u606f\u5305\u62ec\u6e90\u3001\u76ee\u6807\u3001\u534f\u8bae\u3001\u7aef\u53e3\u7b49\uff0c\u8db3\u4ee5\u552f\u4e00\u6807\u8bc6\u7279\u5b9a\u7684\u8fde\u63a5\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u8fd9\u79cd\u673a\u5236\uff0c\u53ea\u9700\u5728\u8fdb\u5165\u9632\u706b\u5899\u7684\u63a5\u53e3\u4e0a\u5141\u8bb8\u901a\u4fe1\u3002 \u5f53\u8fde\u63a5\u7b26\u5408\u4f20\u9012\u89c4\u5219\u65f6\uff0c\u9632\u706b\u5899\u4f1a\u5728\u72b6\u6001\u8868\u4e2d\u521b\u5efa\u4e00\u4e2a\u6761\u76ee\u3002 \u901a\u8fc7\u9632\u706b\u5899\u81ea\u52a8\u5e94\u7b54\u6d41\u91cf\u5230\u8fde\u63a5\uff0c\u662f\u901a\u8fc7\u5c06\u5176\u4e0e\u72b6\u6001\u8868\u8fdb\u884c\u5339\u914d\u800c\u4e0d\u662f\u5728\u4e24\u4e2a\u65b9\u5411\u4e0a\u68c0\u67e5\u89c4\u5219\u3002 \u8fd9\u5305\u62ec\u4f7f\u7528\u4e0d\u540c\u534f\u8bae\u7684\u4efb\u4f55\u76f8\u5173\u6d41\u91cf\uff0c\u4f8b\u5982\u54cd\u5e94\u4e8eTCP\uff0cUDP\u6216\u5176\u4ed6\u8fde\u63a5\u53ef\u80fd\u63d0\u4f9b\u7684ICMP\u63a7\u5236\u6d88\u606f\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u53c2\u8003<\/p>\n<p style=\"text-align: justify;\">\u6709\u5173<strong>\u72b6\u6001\u9009\u9879<\/strong>\u548c<strong>\u7c7b\u578b<\/strong>\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u9632\u706b\u5899\u9ad8\u7ea7\u8bbe\u7f6e\u548c\u72b6\u6001\u7c7b\u578b\u3002<\/p>\n<p style=\"text-align: justify;\">\u72b6\u6001\u8868\u5927\u5c0f<\/p>\n<p style=\"text-align: justify;\">\u9632\u706b\u5899\u72b6\u6001\u8868\u5fc5\u987b\u9650\u5b9a\u5927\u5c0f\u4ee5\u9632\u6b62\u5185\u5b58\u8017\u5c3d\u3002 \u6bcf\u4e2a\u72b6\u6001\u9700\u8981\u5927\u7ea61 KB\u7684RAM\u3002 pfSense\u4e2d\u7684\u9ed8\u8ba4\u72b6\u6001\u8868\u5927\u5c0f\u662f\u901a\u8fc7\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5360\u7528\u9632\u706b\u5899\u4e2d\u53ef\u7528RAM\u768410\uff05\u6765\u8ba1\u7b97\u7684\u3002 \u57281GB RAM\u7684\u9632\u706b\u5899\u4e0a\uff0c\u9ed8\u8ba4\u72b6\u6001\u8868\u5927\u5c0f\u53ef\u5bb9\u7eb3\u5927\u7ea6100,000\u4e2a\u6761\u76ee\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u53c2\u8003<\/p>\n<p style=\"text-align: justify;\">\u6709\u5173\u72b6\u6001\u8868\u5927\u5c0f\u548cRAM\u4f7f\u7528\u60c5\u51b5\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u9632\u706b\u5899\u6700\u5927\u72b6\u6001\u8868\u3002<\/p>\n<p style=\"text-align: justify;\">\u6bcf\u4e2a\u7528\u6237\u8fde\u63a5\u901a\u5e38\u7531\u4e24\u4e2a\u72b6\u6001\u7ec4\u6210\uff1a\u4e00\u4e2a\u662f\u5728\u8fdb\u5165\u9632\u706b\u5899\u65f6\u521b\u5efa\u7684\uff0c\u4e00\u4e2a\u662f\u5728\u79bb\u5f00\u9632\u706b\u5899\u65f6\u521b\u5efa\u7684\u3002 \u56e0\u6b64\uff0c\u5728\u72b6\u6001\u8868\u5927\u5c0f\u4e3a1,000,000\u7684\u60c5\u51b5\u4e0b\uff0c\u9632\u706b\u5899\u53ef\u4ee5\u5904\u7406\u5927\u7ea650\u4e07\u4e2a\u6b63\u5728\u7a7f\u8d8a\u9632\u706b\u5899\u7684\u7528\u6237\u4f1a\u8bdd\uff0c\u4e4b\u540e\u5c06\u4f1a\u4e22\u5f03\u4efb\u4f55\u989d\u5916\u7684\u8fde\u63a5\u3002 \u53ea\u8981\u4e0d\u8d85\u8fc7\u9632\u706b\u5899\u5185\u53ef\u7528\u7684RAM\u6570\u91cf\uff0c\u5c31\u53ef\u4ee5\u6839\u636e\u9700\u8981\u589e\u52a0\u6b64\u9650\u5236\u3002<\/p>\n<p style=\"text-align: justify;\">\u589e\u52a0\u72b6\u6001\u8868\u5927\u5c0f:<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230<strong>\u7cfb\u7edf\u00a0&gt;\u9ad8\u7ea7\u9009\u9879\u3001\u9632\u706b\u5899\u548cNAT<\/strong>\u9009\u9879\u5361\uff1b<\/li>\n<li>\u5728\u9632\u706b\u5899\u6700\u5927\u72b6\u6001\u680f\u8f93\u5165\u6240\u9700\u7684\u6570\u5b57\uff0c\u6216\u4fdd\u7559\u9ed8\u8ba4\u8ba1\u7b97\u503c\u3002\u00a0\u5982\u4e0b\u56fe\u589e\u52a0\u72b6\u6001\u8868\u5927\u5c0f\u52302,000,000\uff1b<\/li>\n<li>\u70b9\u51fb\u4fdd\u5b58\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1725\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-max-states.png\" alt=\"\" width=\"682\" height=\"68\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-max-states.png 682w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-max-states-300x30.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-max-states-500x50.png 500w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><span class=\"caption-text\">\u4fee\u6539\u9632\u706b\u5899\u6700\u5927\u72b6\u6001\u4e3a2,000,000<\/span><\/p>\n<p style=\"text-align: justify;\">\u5386\u53f2\u72b6\u6001\u8868\u4f7f\u7528\u60c5\u51b5\u7531\u9632\u706b\u5899\u8ddf\u8e2a\u3002 \u8981\u67e5\u770b\u56fe\u8868\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230<strong>\u7cfb\u7edf\u72b6\u6001\u00a0&gt; Monitoring<\/strong><\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1727\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-wrench.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u6269\u5c55\u56fe\u8868\u9009\u9879<\/li>\n<li>\u5c06\u5de6\u8f74\u7684\u7c7b\u522b\u8bbe\u7f6e\u4e3a\u7cfb\u7edf<\/li>\n<li>\u5c06\u5de6\u8f74\u7684\u56fe\u5f62\u8bbe\u7f6e\u4e3a\u72b6\u6001<\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1726\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-refresh.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u66f4\u65b0\u56fe\u8868<\/strong><\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u963b\u6b62\u4e0e\u62d2\u7edd<\/h2>\n<p style=\"text-align: justify;\">\u6709\u4e24\u79cd\u65b9\u5f0f\u53ef\u4ee5\u7981\u6b62\u5728pfSense\u4e0a\u4f7f\u7528\u9632\u706b\u5899\u89c4\u5219\u7684\u6d41\u91cf\uff1a\u963b\u6b62\u548c\u62d2\u7edd\u3002<\/p>\n<p style=\"text-align: justify;\">\u8bbe\u7f6e\u4e3a\u963b\u6b62\u7684\u89c4\u5219\u5c06\u6084\u6084\u4e22\u5f03\u6d41\u91cf\uff0c \u88ab\u963b\u6b62\u7684\u5ba2\u6237\u7aef\u4e0d\u4f1a\u6536\u5230\u4efb\u4f55\u54cd\u5e94\uff0c\u56e0\u6b64\u5c06\u7b49\u5f85\u8fde\u63a5\u5c1d\u8bd5\u8d85\u65f6\u3002 \u8fd9\u662fpfSense\u4e2d\u9ed8\u8ba4\u62d2\u7edd\u89c4\u5219\u7684\u884c\u4e3a\u3002<\/p>\n<p style=\"text-align: justify;\">\u89c4\u5219\u8bbe\u7f6e\u4e3a\u62d2\u7edd\u5c06\u56de\u5e94\u5ba2\u6237\u7aef\u62d2\u7eddTCP\u548cUDP\u7684\u6d41\u91cf\uff0c\u8ba9\u53d1\u4ef6\u4eba\u77e5\u9053\u8fde\u63a5\u88ab\u62d2\u7edd\u3002 \u62d2\u7edd\u7684TCP\u6d41\u91cf\u63a5\u6536\u5230TCP RST\uff08\u91cd\u7f6e\uff09\u4f5c\u4e3a\u54cd\u5e94\uff0c\u62d2\u7edd\u7684UDP\u6d41\u91cf\u63a5\u6536\u5230ICMP\u4e0d\u53ef\u8fbe\u6d88\u606f\u4f5c\u4e3a\u54cd\u5e94\u3002 \u867d\u7136\u62d2\u7edd\u662f\u4efb\u4f55\u9632\u706b\u5899\u89c4\u5219\u7684\u6709\u6548\u9009\u62e9\uff0c\u4f46TCP\u548cUDP\u4ee5\u5916\u7684IP\u534f\u8bae\u4e0d\u80fd\u88ab\u62d2\u7edd\uff1b \u8fd9\u4e9b\u89c4\u5219\u4f1a\u9ed8\u9ed8\u5730\u653e\u5f03\u5176\u4ed6IP\u534f\u8bae\uff0c\u56e0\u4e3a\u6ca1\u6709\u62d2\u7edd\u5176\u4ed6\u534f\u8bae\u7684\u6807\u51c6\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u91c7\u7528\u963b\u6b62\u6216\u62d2\u7edd\uff1f<\/h3>\n<p style=\"text-align: justify;\">\u591a\u5e74\u6765\uff0c\u5b89\u5168\u4e13\u4e1a\u4eba\u58eb\u5c31<strong>\u963b\u6b62<\/strong>\u4e0e<strong>\u62d2\u7edd<\/strong>\u7684\u4ef7\u503c\u8fdb\u884c\u4e86\u591a\u6b21\u8fa9\u8bba\u3002\u6709\u4eba\u8ba4\u4e3a\uff0c\u4f7f\u7528<strong>\u963b\u6b62<\/strong>\u66f4\u6709\u610f\u4e49\uff0c\u58f0\u79f0\u5b83\u201c\u653e\u6162\u201d\u653b\u51fb\u8005\u8005\u626b\u63cf\u4e92\u8054\u7f51\u3002\u5f53\u4e00\u4e2a\u89c4\u5219\u88ab\u8bbe\u7f6e\u4e3a<strong>\u62d2\u7edd<\/strong>\u65f6\uff0c\u7acb\u5373\u8fd4\u56de\u4e00\u4e2a\u54cd\u5e94\u7aef\u53e3\u88ab\u5173\u95ed\uff0c\u800c<strong>\u963b\u6b62<\/strong>\u6084\u6084\u5730\u4e22\u5f03\u6d41\u91cf\uff0c\u5bfc\u81f4\u653b\u51fb\u8005\u7684\u7aef\u53e3\u626b\u63cf\u5668\u7b49\u5f85\u54cd\u5e94\u3002\u8fd9\u4e2a\u8bf4\u6cd5\u5e76\u4e0d\u6210\u7acb\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u597d\u7684\u7aef\u53e3\u626b\u63cf\u5668\u90fd\u53ef\u4ee5\u540c\u65f6\u626b\u63cf\u6570\u767e\u6216\u6570\u5343\u4e2a\u4e3b\u673a\uff0c\u626b\u63cf\u5668\u4e0d\u4f1a\u505c\u6ede\uff0c\u7b49\u5f85\u6765\u81ea\u5c01\u95ed\u7aef\u53e3\u7684\u54cd\u5e94\u3002\u8d44\u6e90\u6d88\u8017\u548c\u626b\u63cf\u901f\u5ea6\u4e4b\u95f4\u7684\u5dee\u5f02\u5f88\u5c0f\uff0c\u4f46\u662f\u5982\u6b64\u8f7b\u5fae\uff0c\u4ee5\u81f3\u4e8e\u4e0d\u5e94\u8be5\u5c06\u5176\u8003\u8651\u5728\u5185\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9632\u706b\u5899\u963b\u6b62\u6765\u81eaInternet\u7684\u6240\u6709\u6d41\u91cf\uff0c<strong>\u963b\u6b62<\/strong>\u548c<strong>\u62d2\u7edd<\/strong>\u4e4b\u95f4\u5b58\u5728\u663e\u7740\u5dee\u5f02\uff1a\u6ca1\u6709\u4eba\u77e5\u9053\u9632\u706b\u5899\u5728\u7ebf\u3002\u5982\u679c\u5373\u4f7f\u5355\u4e2a\u7aef\u53e3\u662f\u5f00\u653e\u7684\uff0c\u90a3\u4e48\u8fd9\u4e2a\u80fd\u529b\u7684\u4ef7\u503c\u4e5f\u662f\u6700\u5c0f\u7684\uff0c\u56e0\u4e3a***\u8005\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u786e\u5b9a\u4e3b\u673a\u5728\u7ebf\u5e76\u4e14\u4e5f\u77e5\u9053\u4ec0\u4e48\u7aef\u53e3\u662f\u5f00\u653e\u7684\uff0c\u4e0d\u7ba1\u88ab\u963b\u6b62\u7684\u8fde\u63a5\u662f\u5426\u88ab\u9632\u706b\u5899\u62d2\u7edd\u3002\u867d\u7136\u5728\u963b\u6b62\u62d2\u7edd\u65b9\u9762\u6ca1\u6709\u663e\u7740\u7684\u4ef7\u503c\uff0c\u4f46\u6211\u4eec\u4ecd\u5efa\u8bae\u5728WAN\u89c4\u5219\u4e0a\u4f7f\u7528<strong>\u963b\u6b62<\/strong>\u3002\u5728\u4e0d\u4e3b\u52a8\u5c06\u4fe1\u606f\u4f20\u9012\u7ed9\u6f5c\u5728\u7684\u653b\u51fb\u8005\u65b9\u9762\u5b58\u5728\u4e00\u4e9b\u4ef7\u503c\uff0c\u5e76\u4e14\u4e0d\u5fc5\u8981\u5730\u81ea\u52a8\u54cd\u5e94\u5916\u90e8\u8bf7\u6c42\u4e5f\u662f\u4e0d\u597d\u7684\u505a\u6cd5\u3002<\/p>\n<p style=\"text-align: justify;\">\u5bf9\u4e8e\u5185\u90e8\u63a5\u53e3\u89c4\u5219\uff0c\u6211\u4eec\u5efa\u8bae\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u4f7f\u7528<strong>\u62d2\u7edd<\/strong>\u3002\u5f53\u4e3b\u673a\u5c1d\u8bd5\u8bbf\u95ee\u9632\u706b\u5899\u89c4\u5219\u4e0d\u5141\u8bb8\u7684\u8d44\u6e90\u65f6\uff0c\u8bbf\u95ee\u5b83\u7684\u5e94\u7528\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u6302\u8d77\uff0c\u76f4\u5230\u8fde\u63a5\u8d85\u65f6\u6216\u5ba2\u6237\u7aef\u7a0b\u5e8f\u505c\u6b62\u5c1d\u8bd5\u8bbf\u95ee\u8be5\u670d\u52a1\u3002<strong>\u62d2\u7edd<\/strong>\u8fde\u63a5\u7acb\u5373\u88ab\u62d2\u7edd\uff0c\u5ba2\u6237\u907f\u514d\u8fd9\u4e9b\u6302\u8d77\u3002\u8fd9\u901a\u5e38\u53ea\u662f\u4e00\u4e2a\u70e6\u607c\uff0c\u4f46\u6211\u4eec\u901a\u5e38\u4ecd\u7136\u5efa\u8bae\u4f7f\u7528<strong>\u62d2\u7edd<\/strong>\uff0c\u4ee5\u907f\u514d\u7531\u4e8e\u5728\u7f51\u7edc\u4e2d\u9759\u9759\u5730\u4e22\u5f03\u6d41\u91cf\u800c\u5bfc\u81f4\u6f5c\u5728\u7684\u5e94\u7528\u7a0b\u5e8f\u95ee\u9898\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u5165\u53e3\u8fc7\u6ee4<\/h1>\n<p style=\"text-align: justify;\">\u5165\u53e3\u8fc7\u6ee4\u662f\u6307\u4ece\u5916\u90e8\u6e90\uff08\u5982Internet\uff09\u8fdb\u5165\u7f51\u7edc\u7684\u9632\u706b\u5899\u6d41\u91cf\u7684\u6982\u5ff5\u3002 \u5728\u4f7f\u7528\u591aWAN\u7684\u90e8\u7f72\u4e2d\uff0c\u9632\u706b\u5899\u5177\u6709\u591a\u4e2a\u5165\u53e3\u70b9\u3002 pfSense\u4e0a\u7684\u9ed8\u8ba4\u5165\u53e3\u7b56\u7565\u662f\u963b\u6b62\u6240\u6709\u6d41\u91cf\uff0c\u56e0\u4e3a\u5728\u9ed8\u8ba4\u89c4\u5219\u96c6\u4e2d\uff0cWAN\u4e0a\u6ca1\u6709\u5141\u8bb8\u7684\u89c4\u5219\u3002 \u81ea\u52a8\u5141\u8bb8\u4ece\u672c\u5730\u7f51\u7edc\u5185\u90e8\u53d1\u8d77\u7684\u6d41\u91cf\u5e94\u7b54\u7531\u72b6\u6001\u8868\u901a\u8fc7\u9632\u706b\u5899\u8fd4\u56de\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u51fa\u53e3\u8fc7\u6ee4<\/h1>\n<p style=\"text-align: justify;\">\u51fa\u53e3\u8fc7\u6ee4\u662f\u6307\u5728\u672c\u5730\u7f51\u7edc\u5185\u53d1\u8d77\u7684\u9632\u706b\u5899\u6d41\u91cf\u7684\u6982\u5ff5\uff0c\u5176\u76ee\u7684\u5730\u662f\u8fdc\u7a0b\u7f51\u7edc\uff0c\u4f8b\u5982\u56e0\u7279\u7f51\u3002 \u4e0e\u51e0\u4e4e\u6240\u6709\u7c7b\u4f3c\u7684\u5546\u4e1a\u548c\u5f00\u6e90\u89e3\u51b3\u65b9\u6848\u4e00\u6837\uff0cpfSense\u4e5f\u5e26\u6709LAN\u89c4\u5219\uff0c\u5141\u8bb8\u4eceLAN\u5230Internet\u7684\u6240\u6709\u901a\u4fe1\u3002 \u4f46\u662f\uff0c\u8fd9\u4e0d\u662f\u6700\u597d\u7684\u64cd\u4f5c\u65b9\u5f0f\u3002\u00a0\u4f46\u5b83\u5df2\u6210\u4e3a\u5927\u591a\u6570\u4eba\u6240\u671f\u671b\u7684\u591a\u6570\u9632\u706b\u5899\u89e3\u51b3\u65b9\u6848\u4e2d\u4e8b\u5b9e\u4e0a\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u3002 \u5e38\u89c1\u7684\u8bef\u89e3\u662f\u201c\u5185\u90e8\u7f51\u7edc\u4e0a\u7684\u4efb\u4f55\u4e1c\u897f\u90fd\u662f&#8217;\u503c\u5f97\u4fe1\u8d56\u7684&#8217;\uff0c\u90a3\u4e3a\u4ec0\u4e48\u8981\u53bb\u8fc7\u6ee4\u5462\uff1f<\/p>\n<h2 style=\"text-align: justify;\">\u4e3a\u4ec0\u4e48\u4f7f\u7528\u51fa\u53e3\u8fc7\u6ee4\uff1f<\/h2>\n<p style=\"text-align: justify;\">\u6839\u636e\u6211\u4eec\u4e0e\u8bb8\u591a\u4e0d\u540c\u5382\u5546\u7684\u4f17\u591a\u4f9b\u5e94\u5546\u5408\u4f5c\u7684\u65e0\u6570\u9632\u706b\u5899\u7684\u7ecf\u9a8c\uff0c\u5927\u591a\u6570\u5c0f\u516c\u53f8\u548c\u5bb6\u5ead\u7f51\u7edc\u90fd\u4e0d\u91c7\u7528\u51fa\u53e3\u8fc7\u6ee4\u3002 \u7531\u4e8e\u6bcf\u4e2a\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u670d\u52a1\u53ef\u80fd\u9700\u8981\u5728\u9632\u706b\u5899\u4e2d\u6253\u5f00\u989d\u5916\u7684\u7aef\u53e3\u6216\u534f\u8bae\uff0c\u56e0\u6b64\u4f1a\u589e\u52a0\u7ba1\u7406\u8d1f\u62c5\u3002 \u5728\u67d0\u4e9b\u73af\u5883\u4e2d\uff0c\u8fd9\u5f88\u56f0\u96be\uff0c\u56e0\u4e3a\u7ba1\u7406\u5458\u4e0d\u5b8c\u5168\u77e5\u9053\u7f51\u7edc\u4e0a\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u800c\u4e14\u4ed6\u4eec\u4e0d\u613f\u610f\u7834\u574f\u4e8b\u60c5\u3002 \u5728\u5176\u4ed6\u73af\u5883\u4e0b\uff0c\u5de5\u4f5c\u573a\u6240\u653f\u6cbb\u7684\u539f\u56e0\u662f\u4e0d\u53ef\u907f\u514d\u7684\u3002 \u6700\u4f73\u505a\u6cd5\u662f\u7ba1\u7406\u5458\u5c06\u9632\u706b\u5899\u914d\u7f6e\u4e3a\u53ea\u5141\u8bb8\u6240\u9700\u7684\u6700\u5c0f\u6d41\u91cf\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\u79bb\u5f00\u7f51\u7edc\u3002 \u4e25\u683c\u7684\u51fa\u53e3\u8fc7\u6ee4\u5f88\u91cd\u8981\uff0c\u539f\u56e0\u5982\u4e0b\uff1a<\/p>\n<h3 style=\"text-align: justify;\">\u9650\u5236\u53d7\u635f\u7cfb\u7edf\u7684\u5f71\u54cd<\/h3>\n<p style=\"text-align: justify;\">\u51fa\u53e3\u8fc7\u6ee4\u9650\u5236\u4e86\u53d7\u635f\u7cfb\u7edf\u7684\u5f71\u54cd\u3002\u6076\u610f\u8f6f\u4ef6\u901a\u5e38\u4f7f\u7528\u5927\u591a\u6570\u5546\u4e1a\u7f51\u7edc\u4e0d\u9700\u8981\u7684\u7aef\u53e3\u548c\u534f\u8bae\u3002\u4e00\u4e9b\u6f2b\u6e38\u8005\u4f9d\u9760IRC\u8fde\u63a5\u6253\u7535\u8bdd\u56de\u5bb6\u5e76\u63a5\u6536\u6307\u4ee4\u3002\u6709\u4e9b\u4f1a\u4f7f\u7528\u66f4\u591a\u7684\u901a\u7528\u7aef\u53e3\uff0c\u4f8b\u5982TCP\u7aef\u53e380\uff08\u901a\u5e38\u662fHTTP\uff09\u6765\u9003\u907f\u51fa\u53e3\u8fc7\u6ee4\uff0c\u4f46\u662f\u8bb8\u591a\u7aef\u53e3\u4e0d\u4f1a\u3002\u5982\u679c\u9632\u706b\u5899\u4e0d\u5141\u8bb8\u8bbf\u95ee\u901a\u5e38\u7684IRC\u7aef\u53e36667\u7684TCP\u7aef\u53e36667\uff0c\u90a3\u4e48\u4f9d\u8d56\u4e8eIRC\u7684\u673a\u5668\u4eba\u53ef\u80fd\u4f1a\u88ab\u8fc7\u6ee4\u635f\u574f\u3002<\/p>\n<p style=\"text-align: justify;\">\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662f\u6211\u4eec\u53c2\u4e0e\u7684\u60c5\u51b5\uff0cpfSense\u5b89\u88c5\u7684\u5185\u90e8\u63a5\u53e3\u770b\u523050-60 Mbps\u7684\u6d41\u91cf\uff0c\u800cWAN\u7684\u541e\u5410\u91cf\u4f4e\u4e8e1 Mbps\u3002\u9632\u706b\u5899\u4e0a\u6ca1\u6709\u5176\u4ed6\u63a5\u53e3\u3002\u4e00\u4e9b\u8c03\u67e5\u663e\u793a\uff0c\u539f\u56e0\u662f\u8fd0\u884c\u50f5\u5c38\u7a0b\u5e8f\u7684\u5c40\u57df\u7f51\u4e0a\u7684\u53d7\u5bb3\u7cfb\u7edf\u53c2\u4e0e\u4e86\u9488\u5bf9\u4e2d\u56fd\u8d4c\u535a\u7f51\u7ad9\u5206\u5e03\u5f0f\u62d2\u7edd\u670d\u52a1\uff08DDoS\uff09\u653b\u51fb\u3002\u653b\u51fb\u4f7f\u7528UDP\u7aef\u53e380\uff0c\u5728\u8fd9\u4e2a\u7f51\u7edc\u4e2d\uff0cUDP\u7aef\u53e380\u4e0d\u88ab\u51fa\u53e3\u89c4\u5219\u96c6\u5141\u8bb8\uff0c\u56e0\u6b64\u6240\u6709\u7684DDoS\u6b63\u5728\u5b8c\u6210\u7684\u662f\u5f3a\u8c03\u9632\u706b\u5899\u7684\u5185\u90e8\u63a5\u53e3\u4e0e\u88ab\u4e22\u5f03\u7684\u6d41\u91cf\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9632\u706b\u5899\u4e00\u8def\u9ad8\u6b4c\u731b\u8fdb\uff0c\u6ca1\u6709\u4efb\u4f55\u6027\u80fd\u4e0b\u964d\uff0c\u7f51\u7edc\u7ba1\u7406\u5458\u4e0d\u77e5\u9053\u53d1\u751f\u4e86\u4ec0\u4e48\u4e8b\uff0c\u76f4\u5230\u610f\u5916\u53d1\u73b0\u3002<\/p>\n<p style=\"text-align: justify;\">\u4ee5\u4e0a\u6bb5\u843d\u4e2d\u63cf\u8ff0\u7684\u653b\u51fb\u53ef\u80fd\u4f7f\u7528UDP\u7aef\u53e380\u6709\u4e24\u4e2a\u4e3b\u8981\u539f\u56e0\uff1a<\/p>\n<blockquote>\n<ul class=\"simple list-paddingleft-2\">\n<li>UDP\u5141\u8bb8\u5ba2\u6237\u7aef\u53d1\u9001\u5927\u6570\u636e\u5305\uff0c\u800c\u4e0d\u9700\u8981\u5b8c\u6210TCP\u63e1\u624b\u3002 \u7531\u4e8e\u72b6\u6001\u9632\u706b\u5899\u662f\u5e38\u6001\uff0c\u56e0\u6b64\u5728\u63e1\u624b\u6210\u529f\u5b8c\u6210\u4e4b\u524d\uff0c\u5927\u578bTCP\u6570\u636e\u5305\u5c06\u4e0d\u4f1a\u901a\u8fc7\uff0c\u8fd9\u9650\u5236\u4e86DDoS\u7684\u6709\u6548\u6027\u3002<\/li>\n<li>\u90a3\u4e9b\u91c7\u7528\u51fa\u53e3\u8fc7\u6ee4\u6280\u672f\u7684\u7528\u6237\u901a\u5e38\u8fc7\u4e8e\u5bbd\u5bb9\uff0c\u53ea\u5141\u8bb8\u9700\u8981TCP\u7684TCP\u548cUDP\uff0c\u5c31\u50cfHTTP\u4e00\u6837\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<p style=\"text-align: justify;\">\u8fd9\u4e9b\u7c7b\u578b\u7684\u653b\u51fb\u901a\u5e38\u662f\u4ece\u53d7\u611f\u67d3\u7684Web\u670d\u52a1\u5668\u53d1\u8d77\u7684\u3002\u5982\u679c\u6709\u4e00\u4e2a\u5e7f\u6cdb\u7684\u5f00\u653e\u51fa\u53e3\u89c4\u5219\u96c6\uff0c\u6d41\u91cf\u5c06\u6d41\u51fa\u5230\u4e92\u8054\u7f51\uff0c\u5e76\u6709\u53ef\u80fd\u6ea2\u51fa\u9632\u706b\u5899\u4e0a\u7684\u72b6\u6001\u8868\uff0c\u9020\u6210\u5e26\u5bbd\u4f7f\u7528\u7684\u635f\u5931\uff0c\u5e76\u4e14\/\u6216\u8005\u964d\u4f4e\u4e92\u8054\u7f51\u8fde\u63a5\u7684\u6240\u6709\u6027\u80fd\u3002<\/p>\n<p style=\"text-align: justify;\">\u51fa\u7ad9SMTP\u662f\u53e6\u4e00\u4e2a\u4f8b\u5b50\u3002\u53ea\u5141\u8bb8SMTP\uff08TCP\u7aef\u53e325\uff09\u79bb\u5f00\u90ae\u4ef6\u670d\u52a1\u5668\u7684\u4efb\u4f55\u7f51\u7edc\u3002\u6216\u8005\uff0c\u5982\u679c\u90ae\u4ef6\u670d\u52a1\u5668\u662f\u5916\u90e8\u6258\u7ba1\u7684\uff0c\u5219\u53ea\u5141\u8bb8\u5185\u90e8\u7cfb\u7edf\u5728TCP\u7aef\u53e325\u4e0a\u4e0e\u7279\u5b9a\u7684\u5916\u90e8\u7cfb\u7edf\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u6837\u53ef\u4ee5\u9632\u6b62\u672c\u5730\u7f51\u7edc\u4e2d\u7684\u6bcf\u4e2a\u5176\u4ed6\u7cfb\u7edf\u90fd\u88ab\u7528\u4f5c\u5783\u573e\u90ae\u4ef6\u673a\u5668\u4eba\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684SMTP\u901a\u4fe1\u5c06\u88ab\u4e22\u5f03\u3002\u8bb8\u591a\u90ae\u4ef6\u63d0\u4f9b\u5546\u5df2\u7ecf\u8f6c\u5411\u4f7f\u7528\u4ec5\u4f7f\u7528TCP\u7aef\u53e3587\u7684\u5ba2\u6237\u7aef\u7684\u8eab\u4efd\u9a8c\u8bc1\u63d0\u4ea4\uff0c\u56e0\u6b64\u5ba2\u6237\u7aef\u4e0d\u9700\u8981\u8bbf\u95ee\u7aef\u53e325\u3002\u8fd9\u662f\u9650\u5236\u5783\u573e\u90ae\u4ef6\u7684\u597d\u529e\u6cd5\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u9632\u6b62\u5c06\u7f51\u7edc\u6dfb\u52a0\u5230\u6574\u4e2a\u4e92\u8054\u7f51\u5c06\u963b\u6b62\u8be5\u7f51\u7ad9\u5411\u66f4\u591a\u90ae\u4ef6\u670d\u52a1\u5668\u53d1\u9001\u5408\u6cd5\u7684\u7535\u5b50\u90ae\u4ef6\u3002\u8fd9\u4e5f\u53ef\u80fd\u963b\u6b62\u8be5\u7f51\u7ad9\u7684ISP\u7531\u4e8e\u6ee5\u7528\u800c\u5173\u95ed\u5176\u4e92\u8054\u7f51\u8fde\u63a5\u3002<\/p>\n<p style=\"text-align: justify;\">\u7406\u60f3\u7684\u89e3\u51b3\u65b9\u6848\u662f\u9996\u5148\u9632\u6b62\u8fd9\u4e9b\u7c7b\u578b\u7684\u4e8b\u60c5\u53d1\u751f\uff0c\u4f46\u51fa\u53e3\u8fc7\u6ee4\u63d0\u4f9b\u4e86\u53e6\u4e00\u4e2a\u65b9\u6cd5 \uff0c\u5982\u679c\u5176\u4ed6\u63aa\u65bd\u5931\u8d25\uff0c\u51fa\u53e3\u8fc7\u6ee4\u53ef\u4ee5\u5e2e\u52a9\u8fdb\u884c\u9650\u5236\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9632\u6b62\u59a5\u534f<\/h3>\n<p style=\"text-align: justify;\">\u51fa\u53e3\u8fc7\u6ee4\u53ef\u4ee5\u9632\u6b62\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u7684\u59a5\u534f\u3002 \u4e00\u4e9b\u6f0f\u6d1e\u548c\u8815\u866b\u9700\u8981\u51fa\u7ad9\u8bbf\u95ee\u624d\u80fd\u6210\u529f\u3002 \u4e00\u4e2a\u8f83\u8001\u7684\u4f46\u662f\u5f88\u597d\u7684\u4f8b\u5b50\u662f\u4ece2001\u5e74\u5f00\u59cb\u7684\u7ea2\u8272\u4ee3\u7801\u8815\u866b\u75c5\u6bd2\u3002\u8fd9\u4e2a\u6f0f\u6d1e\u901a\u8fc7TFTP\uff08Trivial File Transfer Protocol\uff0c\u666e\u901a\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\uff09\u4f7f\u5f97\u53d7\u5f71\u54cd\u7684\u7cfb\u7edf\u80fd\u591f\u6267\u884c\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7136\u540e\u6267\u884c\u5b83\u3002 Web\u670d\u52a1\u5668\u51e0\u4e4e\u53ef\u4ee5\u80af\u5b9a\u4e0d\u9700\u8981\u4f7f\u7528TFTP\u534f\u8bae\uff0c\u5e76\u4e14\u901a\u8fc7\u51fa\u53e3\u8fc7\u6ee4\u963b\u6b62TFTP\u5373\u4f7f\u5728\u672a\u6253\u8865\u4e01\u7684\u670d\u52a1\u5668\u4e0a\u4e5f\u53ef\u4ee5\u9632\u6b62\u611f\u67d3\u7ea2\u8272\u4ee3\u7801\u3002 \u8fd9\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u53ea\u5bf9\u505c\u6b62\u5b8c\u5168\u81ea\u52a8\u5316\u7684\u653b\u51fb\u548c\u8815\u866b\u6709\u7528\uff0c\u56e0\u4e3a\u771f\u6b63\u7684\u4eba\u7c7b\u653b\u51fb\u8005\u4f1a\u53d1\u73b0\u5728\u51fa\u53e3\u8fc7\u6ee4\u4e2d\u5b58\u5728\u7684\u4efb\u4f55\u6f0f\u6d1e\u5e76\u5c06\u5b83\u7528\u4e8e\u4ed6\u4eec\u7684\u653b\u51fb\u76ee\u6807\u3002 \u540c\u6837\uff0c\u9632\u6b62\u8fd9\u79cd\u95ee\u9898\u7684\u6b63\u786e\u89e3\u51b3\u65b9\u6848\u662f\u4fee\u590d\u7528\u4f5c\u653b\u51fb\u5a92\u4ecb\u7684\u7f51\u7edc\u6f0f\u6d1e\uff0c\u4f46\u662f\u51fa\u53e3\u8fc7\u6ee4\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u5e2e\u52a9\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9650\u5236\u672a\u7ecf\u6388\u6743\u7684\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528<\/h3>\n<p style=\"text-align: justify;\">\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\uff08\u5982VPN\u5ba2\u6237\u7aef\uff0c\u5bf9\u7b49\u8f6f\u4ef6\uff0c\u5373\u65f6\u901a\u8baf\u8f6f\u4ef6\u7b49\uff09\u90fd\u4f9d\u8d56\u975e\u5178\u578b\u7aef\u53e3\u6216\u534f\u8bae\u6765\u8fd0\u884c\u3002 \u867d\u7136\u8d8a\u6765\u8d8a\u591a\u7684\u70b9\u5bf9\u70b9\u548c\u5373\u65f6\u901a\u8baf\u5e94\u7528\u7a0b\u5e8f\u5c06\u7aef\u53e3\u8df3\u8f6c\uff0c\u76f4\u5230\u627e\u5230\u4e00\u4e2a\u88ab\u5141\u8bb8\u79bb\u5f00\u672c\u5730\u7f51\u7edc\u7684\u7aef\u53e3\uff0c\u8bb8\u591a\u7aef\u53e3\u88ab\u9650\u5236\u6027\u7684\u51fa\u53e3\u89c4\u5219\u96c6\u963b\u6b62\u8fd0\u884c\uff0c\u5bf9\u66f4\u591a\u7c7b\u578b\u7684***\u8fde\u63a5\u8fd9\u4e5f\u662f\u4e00\u4e2a\u6709\u6548\u7684\u9650\u5236\u624b\u6bb5\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9632\u6b62IP\u6b3a\u9a97<\/h3>\n<p style=\"text-align: justify;\">\u8fd9\u662f\u4f7f\u7528\u51fa\u53e3\u8fc7\u6ee4\u7684\u4e00\u4e2a\u5e38\u89c1\u539f\u56e0\uff0c\u4f46pfSense\u901a\u8fc7pf\u7684\u6297\u6b3a\u9a97\u529f\u80fd\u81ea\u52a8\u963b\u6b62\u6b3a\u9a97\u6027\u6d41\u91cf\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u4e0d\u9002\u7528\u3002 \u9632\u6b62IP\u6b3a\u9a97\u610f\u5473\u7740\u6076\u610f\u5ba2\u6237\u7aef\u4e0d\u80fd\u53d1\u9001\u660e\u663e\u88ab\u4f2a\u9020\u7684\u6e90\u5730\u5740\u7684\u6d41\u91cf\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9632\u6b62\u4fe1\u606f\u6cc4\u9732<\/h3>\n<p style=\"text-align: justify;\">\u51b3\u4e0d\u5141\u8bb8\u67d0\u4e9b\u534f\u8bae\u79bb\u5f00\u672c\u5730\u7f51\u7edc\u3002\u8fd9\u79cd\u534f\u8bae\u7684\u5177\u4f53\u4f8b\u5b50\u56e0\u73af\u5883\u800c\u5f02\uff0c\u4f46\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u4f8b\u5b50\u662f\uff1a<\/p>\n<p style=\"text-align: justify;\">TCP\u7aef\u53e3135\u4e0a\u7684Microsoft RPC\uff08\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff09<\/p>\n<p style=\"text-align: justify;\">TCP\u548cUDP\u7aef\u53e3137\u5230139\u4e0a\u7684NetBIOS<\/p>\n<p style=\"text-align: justify;\">TCP\u548cUDP\u7aef\u53e3445\u4e0a\u7684SMB \/ CIFS\uff08\u670d\u52a1\u5668\u6d88\u606f\u5757\/\u901a\u7528Internet\u6587\u4ef6\u7cfb\u7edf\uff09\u3002<\/p>\n<p style=\"text-align: justify;\">\u505c\u6b62\u8fd9\u4e9b\u534f\u8bae\u53ef\u4ee5\u9632\u6b62\u6709\u5173\u5185\u90e8\u7f51\u7edc\u7684\u4fe1\u606f\u6cc4\u6f0f\u5230Internet\u4e0a\uff0c\u5e76\u963b\u6b62\u672c\u5730\u7cfb\u7edf\u542f\u52a8\u4e0eInternet\u4e3b\u673a\u7684\u8eab\u4efd\u9a8c\u8bc1\u5c1d\u8bd5\u3002\u7531\u4e8e\u8bb8\u591a\u8815\u866b\u90fd\u4f9d\u8d56\u8fd9\u4e9b\u534f\u8bae\u6765\u8fd0\u884c\uff0c\u6240\u4ee5\u8fd9\u4e9b\u534f\u8bae\u4e5f\u5c5e\u4e8e\u524d\u9762\u6240\u8ba8\u8bba\u7684\u9650\u5236\u53d7\u635f\u7cfb\u7edf\u7684\u5f71\u54cd\u3002\u5176\u4ed6\u53ef\u80fd\u76f8\u5173\u7684\u534f\u8bae\u662fsyslog\uff0cSNMP\u548cSNMP\u9677\u9631\u3002\u9650\u5236\u6b64\u6d41\u91cf\u5c06\u9632\u6b62\u9519\u8bef\u914d\u7f6e\u7684\u7f51\u7edc\u8bbe\u5907\u5c06\u65e5\u5fd7\u8bb0\u5f55\u548c\u5176\u4ed6\u53ef\u80fd\u654f\u611f\u7684\u4fe1\u606f\u53d1\u9001\u5230Internet\u3002\u4e0e\u5176\u62c5\u5fc3\u54ea\u4e9b\u534f\u8bae\u53ef\u80fd\u5c06\u4fe1\u606f\u6cc4\u9732\u5230\u672c\u5730\u7f51\u7edc\u5916\u5e76\u9700\u8981\u88ab\u963b\u6b62\uff0c\u6700\u4f73\u505a\u6cd5\u662f\u4ec5\u5141\u8bb8\u6240\u9700\u7684\u901a\u4fe1\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5b9e\u73b0\u51fa\u53e3\u8fc7\u6ee4\u7684\u65b9\u6cd5<\/h2>\n<p style=\"text-align: justify;\">\u5728\u5386\u53f2\u4e0a\u6ca1\u6709\u91c7\u7528\u51fa\u53e3\u8fc7\u6ee4\u7684\u7f51\u7edc\u4e0a\uff0c\u5f88\u96be\u77e5\u9053\u4ec0\u4e48\u6d41\u91cf\u662f\u7edd\u5bf9\u5fc5\u8981\u7684\u3002 \u672c\u8282\u4ecb\u7ecd\u4e00\u4e9b\u8bc6\u522b\u6d41\u91cf\u548c\u5b9e\u65bd\u51fa\u53e3\u8fc7\u6ee4\u7684\u65b9\u6cd5\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u5141\u8bb8\u6240\u77e5\u7684\uff0c\u963b\u6b62\u5176\u4f59\u7684\uff0c\u5e76\u901a\u8fc7\u540e\u679c\u5de5\u4f5c<\/h3>\n<p style=\"text-align: justify;\">\u4e00\u79cd\u65b9\u6cd5\u662f\u4e3a\u5141\u8bb8\u7684\u5df2\u77e5\u6240\u9700\u6d41\u91cf\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\u3002 \u9996\u5148\u5217\u51fa\u5df2\u77e5\u9700\u8981\u7684\u4e1c\u897f\uff0c\u4f8b\u5982\u4e0b\u8868\u51fa\u53e3\u6d41\u91cf\u7684\u8981\u6c42\u3002<\/p>\n<table class=\"docutils\">\n<caption><span class=\"caption-text\">\u9700\u8981\u51fa\u53e3\u6d41\u91cf<\/span><\/caption>\n<colgroup>\n<col width=\"49%\" \/>\n<col width=\"15%\" \/>\n<col width=\"15%\" \/>\n<col width=\"21%\" \/><\/colgroup>\n<thead valign=\"bottom\">\n<tr class=\"row-odd firstRow\">\n<th class=\"head\">\u63cf\u8ff0<\/th>\n<th class=\"head\">\u6e90<\/th>\n<th class=\"head\">\u76ee\u6807<\/th>\n<th class=\"head\">\u76ee\u6807\u7aef\u53e3<\/th>\n<\/tr>\n<\/thead>\n<tbody valign=\"top\">\n<tr class=\"row-even\">\n<td>HTTP and HTTPS from all hosts<\/td>\n<td>LAN Network<\/td>\n<td>Any<\/td>\n<td>TCP 80 and 443<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>SMTP from mail server<\/td>\n<td>Mail Server<\/td>\n<td>Any<\/td>\n<td>TCP 25<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>DNS queries from internal DNS servers<\/td>\n<td>DNS Servers<\/td>\n<td>Any<\/td>\n<td>TCP and UDP 53<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u505a\u51fa\u5217\u8868\u540e\uff0c\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\u53ea\u4f20\u9012\u8be5\u6d41\u91cf\uff0c\u5e76\u8ba9\u6240\u6709\u5176\u4ed6\u547d\u4e2d\u9ed8\u8ba4\u7684\u62d2\u7edd\u89c4\u5219\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u8bb0\u5f55\u6d41\u91cf\u548c\u5206\u6790\u65e5\u5fd7<\/h3>\n<p style=\"text-align: justify;\">\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u542f\u7528\u6240\u6709\u4f20\u9012\u89c4\u5219\u7684\u65e5\u5fd7\u8bb0\u5f55\uff0c\u5e76\u5c06\u65e5\u5fd7\u53d1\u9001\u5230\u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u3002 \u7cfb\u7edf\u65e5\u5fd7\u670d\u52a1\u5668\u53ef\u4ee5\u5206\u6790\u65e5\u5fd7\uff0c\u4ee5\u67e5\u770b\u54ea\u4e9b\u6d41\u91cf\u6b63\u5728\u79bb\u5f00\u7f51\u7edc\u3002 pfSense\u4f7f\u7528\u81ea\u5b9a\u4e49\u65e5\u5fd7\u683c\u5f0f\uff0c\u56e0\u6b64\u901a\u5e38\u9700\u8981\u901a\u8fc7\u81ea\u5b9a\u4e49\u811a\u672c\u6765\u89e3\u6790\u65e5\u5fd7\uff0c\u9664\u975e\u670d\u52a1\u5668\u5177\u6709\u4e00\u4e9bpfSense\u8fc7\u6ee4\u5668\u65e5\u5fd7\u683c\u5f0f\u7684\u77e5\u8bc6\u3002 \u5bf9\u65e5\u5fd7\u7684\u5206\u6790\u5c06\u6709\u52a9\u4e8e\u6784\u5efa\u6240\u9700\u7684\u89c4\u5219\u96c6\uff0c\u4ece\u800c\u66f4\u597d\u5730\u4e86\u89e3\u672c\u5730\u7f51\u7edc\u4e0a\u9700\u8981\u7684\u6d41\u91cf\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u9632\u706b\u5899\u89c4\u5219\u7b80\u4ecb<\/h1>\n<p>\u672c\u8282\u63d0\u4f9b<strong>\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565<\/strong>\u4e2d\u9632\u706b\u5899\u89c4\u5219\u9875\u9762\u7684\u4ecb\u7ecd\u548c\u6982\u8ff0\u3002 \u6b64\u9875\u9762\u5217\u51fa\u4e86\u542f\u52a8\u7684WAN\u89c4\u5219\u96c6\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u5728WAN\u63a5\u53e3\u4e0a\u6fc0\u6d3b\u4e86\u8fd9\u4e9b\u9009\u9879\uff0c\u5219\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6ca1\u6709\u5176\u4ed6\u6761\u76ee\u7528\u4e8e\u963b\u6b62\u4e13\u7528\u7f51\u7edc\u548cBlock bogon\u7f51\u7edc\u7684\u6761\u76ee\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p>\u63d0\u793a\uff1a\u5355\u51fb\u201c\u963b\u6b62\u4e13\u7528\u7f51\u7edc\u201d\u6216\u201c\u963b\u6b62bogon\u7f51\u7edc\u89c4\u5219\u201d\u53f3\u5219\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1700\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-cog.png\" alt=\"\" width=\"25\" height=\"25\" \/>\uff0c\u53ef\u4ee5\u8fdb\u5165\u542f\u7528\u6216\u7981\u7528\u8fd9\u4e9b\u9009\u9879\u7684WAN\u63a5\u53e3\u914d\u7f6e\u9875\u9762\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1729\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules.png\" alt=\"\" width=\"1140\" height=\"312\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules-1024x280.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules-300x82.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules-768x210.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-wan-rules-500x137.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u9ed8\u8ba4WAN\u89c4\u5219<\/p>\n<p style=\"text-align: justify;\">\u5355\u51fbLAN\u9009\u9879\u5361\u67e5\u770bLAN\u89c4\u5219\u3002 \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u552f\u4e00\u7684\u6761\u76ee\u662f\u9ed8\u8ba4\u5141\u8bb8LAN\u4e3aIPv4\u548cIPv6\u7684\u4efb\u610f\u89c4\u5219\uff0c\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09\u4ee5\u53ca\u53cd\u9501\u5b9a\u89c4\u5219\uff08\u5982\u679c\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\uff09\u3002 \u53cd\u9501\u5b9a\u89c4\u5219\u65e8\u5728\u9632\u6b62\u7ba1\u7406\u5458\u610f\u5916\u5730\u5c06\u81ea\u5df1\u9501\u5b9a\u5728GUI\u4e4b\u5916\u3002 \u5728\u9632\u9501\u5b9a\u89c4\u5219\u65c1\u8fb9\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1700\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-cog.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u53ef\u4ee5\u8bbf\u95ee\u7981\u7528\u6b64\u89c4\u5219\u7684\u9875\u9762\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u53c2\u8003\uff1a\u6709\u5173\u9632\u9501\u5b9a\u89c4\u5219\u5982\u4f55\u5de5\u4f5c\u4ee5\u53ca\u5982\u4f55\u7981\u7528\u89c4\u5219\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<strong>\u9632\u9501\u5b9a\u89c4\u5219\u548c\u53cd\u9501\u5b9a<\/strong>\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1730\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules.png\" alt=\"\" width=\"1140\" height=\"259\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules-1024x233.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules-300x68.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules-768x174.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-lan-rules-500x114.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u9ed8\u8ba4LAN\u89c4\u5219<\/p>\n<p style=\"text-align: justify;\">\u8981\u663e\u793a\u5176\u4ed6\u63a5\u53e3\u7684\u89c4\u5219\uff0c\u8bf7\u5355\u51fb\u5176\u5404\u81ea\u7684\u9009\u9879\u5361\u3002 OPT\u63a5\u53e3\u5c06\u4ee5\u5176\u63cf\u8ff0\u6027\u540d\u79f0\u51fa\u73b0\uff0c\u6240\u4ee5\u5982\u679cOPT1\u63a5\u53e3\u88ab\u91cd\u547d\u540d\u4e3aDMZ\uff0c\u5219\u5176\u89c4\u5219\u7684\u9009\u9879\u5361\u4e5f\u5c06\u8868\u793aDMZ\u3002<\/p>\n<p style=\"text-align: justify;\">\u6bcf\u6761\u89c4\u5219\u7684\u5de6\u8fb9\u662f\u4e00\u4e2a\u6307\u793a\u5668\u56fe\u6807\uff0c\u663e\u793a\u89c4\u5219\u7684\u64cd\u4f5c\uff1a\u901a\u8fc7 (<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1731\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-check-1.png\" alt=\"\" width=\"25\" height=\"25\" \/>)\uff0c\u963b\u6b62 (<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1736\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-times.png\" alt=\"\" width=\"25\" height=\"25\" \/>)\uff0c\u6216\u62d2\u7edd(<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1733\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-hand-stop-o.png\" alt=\"\" width=\"25\" height=\"25\" \/>)\u3002\u5982\u679c\u89c4\u5219\u542f\u7528\u4e86\u65e5\u5fd7\u8bb0\u5f55\uff0c <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1735\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-tasks.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u663e\u793a\u5728\u76f8\u540c\u7684\u533a\u57df\u3002 \u5982\u679c\u89c4\u5219\u542f\u7528\u4e86\u4efb\u4f55\u9ad8\u7ea7\u9009\u9879, <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1700\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-cog.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u4e5f\u4f1a\u663e\u793a\u3002\u00a0\u5c06\u9f20\u6807\u60ac\u505c\u5728\u4efb\u4f55\u8fd9\u4e9b\u56fe\u6807\u4e0a\uff0c\u5c06\u663e\u793a\u89e3\u91ca\u5176\u542b\u4e49\u7684\u6587\u672c\u3002 \u5bf9\u4e8e\u7981\u7528\u7684\u89c4\u5219\uff0c\u4f1a\u663e\u793a\u76f8\u540c\u7684\u56fe\u6807\uff0c\u4f46\u56fe\u6807\u548c\u89c4\u5219\u7684\u989c\u8272\u8f83\u6d45\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u8981\u5c06\u89c4\u5219\u6dfb\u52a0\u5230\u5217\u8868\u9876\u90e8\uff0c\u8bf7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1693\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-level-up.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u6dfb\u52a0\u3002<\/strong><\/p>\n<p style=\"text-align: justify;\">\u8981\u5c06\u89c4\u5219\u6dfb\u52a0\u5230\u5217\u8868\u7684\u5e95\u90e8\uff0c\u8bf7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1734\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-level-down.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u6dfb\u52a0\u3002<\/strong><\/p>\n<p style=\"text-align: justify;\">\u4e3a\u4e86\u5236\u5b9a\u4e0e\u73b0\u6709\u89c4\u5219\u7c7b\u4f3c\u7684\u65b0\u89c4\u5219\uff0c \u5728\u73b0\u6709\u89c4\u5219\u7684\u53f3\u8fb9\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1732\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-clone.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002 \u7f16\u8f91\u9875\u9762\u5c06\u663e\u793a\u9884\u5148\u586b\u5199\u7684\u73b0\u6709\u89c4\u5219\u8bbe\u7f6e\uff0c\u968f\u65f6\u53ef\u4ee5\u8fdb\u884c\u8c03\u6574\u3002 \u5728\u590d\u5236\u73b0\u6709\u89c4\u5219\u65f6\uff0c\u65b0\u89c4\u5219\u5c06\u76f4\u63a5\u6dfb\u52a0\u5230\u539f\u59cb\u89c4\u5219\u7684\u4e0b\u65b9\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7f16\u8f91\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u8981\u7f16\u8f91\u9632\u706b\u5899\u89c4\u5219\uff0c \u5355\u51fb\u8be5\u89c4\u5219\u53f3\u4fa7\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\uff0c\u6216\u53cc\u51fb\u8be5\u884c\u4e0a\u7684\u4efb\u610f\u4f4d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\">\u8be5\u89c4\u5219\u7684\u7f16\u8f91\u9875\u9762\u5c06\u52a0\u8f7d\uff0c\u5e76\u53ef\u4ee5\u8fdb\u884c\u7f16\u8f91\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u79fb\u52a8\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u89c4\u5219\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u91cd\u65b0\u6392\u5e8f\uff1a\u62d6\u653e\u548c\u4f7f\u7528\u201c\u9009\u62e9\u5e76\u5355\u51fb\u201d\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u62d6\u653e\u65b9\u6cd5\u79fb\u52a8\u89c4\u5219\uff1a<\/p>\n<p style=\"text-align: justify;\">\u5c06\u9f20\u6807\u79fb\u52a8\u5230\u9632\u706b\u5899\u89c4\u5219\u4e0a\u79fb\u52a8\uff0c\u5149\u6807\u5c06\u6539\u53d8\u63d0\u793a\u53ef\u4ee5\u79fb\u52a8\uff0c\u70b9\u51fb\u5e76\u6309\u4f4f\u9f20\u6807\u6309\u94ae\uff0c\u5c06\u9f20\u6807\u62d6\u5230\u6240\u9700\u4f4d\u7f6e\uff0c\u91ca\u653e\u9f20\u6807\u6309\u94ae\uff0c\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1738\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-save.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u4fdd\u5b58<\/strong>\u6765\u5b58\u50a8\u65b0\u7684\u89c4\u5219\u987a\u5e8f\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u5728\u79fb\u52a8\u89c4\u5219\u4e4b\u540e\uff0c\u4f46\u5728\u4fdd\u5b58\u89c4\u5219\u4e4b\u524d\u8bd5\u56fe\u79bb\u5f00\u9875\u9762\uff0c\u4f1a\u5bfc\u81f4\u6d4f\u89c8\u5668\u51fa\u73b0\u9519\u8bef\uff0c\u786e\u8ba4\u662f\u5426\u9000\u51fa\u9875\u9762\u3002 \u5982\u679c\u6d4f\u89c8\u5668\u5728\u4e0d\u4fdd\u5b58\u7684\u60c5\u51b5\u4e0b\u79bb\u5f00\u9875\u9762\uff0c\u5219\u89c4\u5219\u5c06\u4ecd\u7136\u5728\u539f\u59cb\u4f4d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u6309\u7ec4\u79fb\u52a8\u5217\u8868\u4e2d\u7684\u89c4\u5219\uff0c\u8bf7\u5148\u9009\u62e9\u5b83\u4eec\uff0c\u8bf7\u4f7f\u7528\u9009\u4e2d\u518d\u5355\u51fb\u7684\u65b9\u6cd5\uff1a<\/p>\n<p style=\"text-align: justify;\">\u9009\u4e2d\u9700\u8981\u79fb\u52a8\u7684\u89c4\u5219\u5de6\u4fa7\u65c1\u8fb9\u7684\u6846\uff0c\u6216\u5355\u51fb\u89c4\u5219\u3002 \u5f53\u9009\u62e9\u89c4\u5219\u65f6\uff0c\u5b83\u5c06\u6539\u53d8\u989c\u8272\u3002<\/p>\n<p class=\"first\" style=\"text-align: justify;\">\u5728\u89c4\u5219\u8981\u79fb\u52a8\u5230\u7684\u5730\u65b9\uff0c\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1737\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-anchor.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u63d0\u793a\uff1a\u6309\u4f4fShift\u952e\uff0c\u7136\u540e\u5728<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1737\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-anchor.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u4e0a\u5355\u51fb\u9f20\u6807\u5c06\u89c4\u5219\u79fb\u52a8\u5230\u6240\u9009\u89c4\u5219\u7684\u4e0b\u65b9\u800c\u4e0d\u662f\u4e0a\u65b9\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u201c\u9009\u62e9\u5e76\u70b9\u51fb\u201d\u65b9\u6cd5\u79fb\u52a8\u89c4\u5219\u65f6\uff0c\u65b0\u89c4\u5219\u5c06\u81ea\u52a8\u5b58\u50a8\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5220\u9664\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u8981\u5220\u9664\u5355\u4e2a\u89c4\u5219, \u5728\u89c4\u5219\u53f3\u4fa7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u3002\u5728\u5220\u9664\u89c4\u5219\u4e4b\u524d\uff0c\u9632\u706b\u5899\u4f1a\u663e\u793a\u786e\u8ba4\u63d0\u793a\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u5220\u9664\u591a\u4e2a\u89c4\u5219\uff0c\u8bf7\u9009\u4e2d\u5e94\u5220\u9664\u7684\u884c\u7684\u5f00\u59cb\u5904\u7684\u6846\uff0c\u7136\u540e\u70b9\u51fb\u5217\u8868\u5e95\u90e8\u7684<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u5220\u9664\u6309\u94ae\u3002 \u89c4\u5219\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5728\u4ed6\u4eec\u7684\u884c\u4e0a\u7684\u4efb\u4f55\u5730\u65b9\u5355\u51fb\u6765\u9009\u62e9\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7981\u7528\u6216\u542f\u7528\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u7981\u7528\u89c4\u5219, \u5728\u89c4\u5219\u7684\u53f3\u4fa7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1697\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-ban.png\" alt=\"\" width=\"25\" height=\"25\" \/> \u3002\u56fe\u6807\u5916\u89c2\u5c06\u53d8\u6210\u8f83\u6d45\u7684\u9634\u5f71\u4ee5\u63d0\u793a\u5b83\u88ab\u7981\u7528\uff0c <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1697\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-ban.png\" alt=\"\" width=\"25\" height=\"25\" \/> \u56fe\u6807\u4f1a\u53d8\u4e3a <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1699\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-check-square-o.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u542f\u7528\u4ee5\u524d\u7981\u7528\u7684\u89c4\u5219\uff0c \u5728\u89c4\u5219\u53f3\u4fa7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1699\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-check-square-o.png\" alt=\"\" width=\"25\" height=\"25\" \/> \u3002 \u89c4\u5219\u7684\u5916\u89c2\u5c06\u6062\u590d\u6b63\u5e38\uff0c\u542f\u7528\/\u7981\u7528\u56fe\u6807\u5c06\u8fd4\u56de\u5230\u539f\u59cb\u72b6\u6001<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1697\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-ban.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002<\/p>\n<p style=\"text-align: justify;\">\u901a\u8fc7\u7f16\u8f91\u89c4\u5219\u5e76\u5207\u6362\u201c\u7981\u7528\u201d\u590d\u9009\u6846\uff0c\u4e5f\u53ef\u4ee5\u7981\u7528\u6216\u542f\u7528\u89c4\u5219\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u89c4\u5219\u5206\u9694\u7b26<\/h2>\n<p style=\"text-align: justify;\">\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\u662f\u89c4\u5219\u96c6\u4e2d\u5305\u542b\u4e00\u5c0f\u6bb5\u6587\u672c\u7684\u5f69\u6761\uff0c\u4ed6\u4e0d\u5bf9\u7f51\u7edc\u6d41\u91cf\u8fdb\u884c\u4efb\u4f55\u64cd\u4f5c\u3002 \u5b83\u4eec\u5bf9\u4e8e\u4ece\u89c6\u89c9\u4e0a\u5206\u79bb\u6216\u5411\u89c4\u5219\u96c6\u7684\u7279\u6b8a\u90e8\u5206\u6dfb\u52a0\u6ce8\u91ca\u975e\u5e38\u6709\u7528\u3002\u4e0b \u56fe\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\u793a\u4f8b\u663e\u793a\u4e86\u5982\u4f55\u5229\u7528\u8fd9\u4e9b\u89c4\u5219\u5bf9\u89c4\u5219\u96c6\u8fdb\u884c\u5206\u7ec4\u548c\u8bb0\u5f55\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1739\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators.png\" alt=\"\" width=\"1140\" height=\"575\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators-1024x516.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators-300x151.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators-768x387.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule-separators-500x252.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><span class=\"caption-text\">\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\u793a\u4f8b<\/span><\/p>\n<p style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u6253\u5f00\u89c4\u5219\u5206\u9694\u7b26\u6240\u5728\u7684\u9632\u706b\u5899\u89c4\u5219\u9009\u9879\u5361<\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u6dfb\u52a0<\/strong>\u5206\u9694\u7b26<\/li>\n<li>\u8f93\u5165\u89c4\u5219\u5206\u9694\u7b26\u7684\u8bf4\u660e\u6587\u5b57<\/li>\n<li>\u901a\u8fc7\u5355\u51fb\u6240\u9700\u989c\u8272<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1740\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-circle.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u56fe\u6807\u6765\u9009\u62e9\u89c4\u5219\u5206\u9694\u7b26\u7684<strong>\u989c\u8272<\/strong><\/li>\n<li>\u70b9\u51fb\u5e76\u62d6\u52a8\u89c4\u5219\u5206\u9694\u7b26\u5230\u5b83\u7684\u65b0\u4f4d\u7f6e<\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1738\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-save.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u4fdd\u5b58<\/strong>\u89c4\u5219\u5206\u9694\u7b26\u5185\u5bb9<\/li>\n<li>\u5728\u89c4\u5219\u5217\u8868\u7684\u5e95\u90e8\u5355\u51fb <img decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-save.png\" \/>\u00a0<strong>\u4fdd\u5b58<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u8981<strong>\u79fb\u52a8<\/strong>\u89c4\u5219\u5206\u9694\u7b26\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u6253\u5f00\u5305\u542b\u89c4\u5219\u5206\u9694\u7b26\u7684\u9632\u706b\u5899\u89c4\u5219\u9009\u9879\u5361<\/li>\n<li>\u70b9\u51fb\u5e76\u62d6\u52a8\u89c4\u5219\u5206\u9694\u7b26\u5230\u5b83\u7684\u65b0\u4f4d\u7f6e<\/li>\n<li>\u5728\u89c4\u5219\u5217\u8868\u7684\u5e95\u90e8\u5355\u51fb <img decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-save.png\" \/>\u00a0<strong>\u4fdd\u5b58<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u8981<strong>\u5220\u9664<\/strong>\u89c4\u5219\u5206\u9694\u7b26\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u6253\u5f00\u5305\u542b\u89c4\u5219\u5206\u9694\u7b26\u7684\u9632\u706b\u5899\u89c4\u5219\u9009\u9879\u5361<\/li>\n<li>\u5728\u53f3\u4fa7\u7684\u89c4\u5219\u5206\u9694\u7b26\u5185\u90e8\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/><\/li>\n<li>\u5728\u89c4\u5219\u5217\u8868\u7684\u5e95\u90e8\u5355\u51fb <img decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-save.png\" \/>\u00a0<strong>\u4fdd\u5b58<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\u4e0d\u80fd\u88ab\u7f16\u8f91\u3002 \u5982\u679c\u9700\u8981\u66f4\u6539\u6587\u672c\u6216\u989c\u8272\uff0c\u8bf7\u521b\u5efa\u65b0\u7684\u9632\u706b\u5899\u89c4\u5219\u5206\u9694\u7b26\u5e76\u5220\u9664\u73b0\u6709\u7684\u6761\u76ee\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u8ddf\u8e2a\u9632\u706b\u5899\u89c4\u5219\u5e94\u7528<\/h2>\n<p style=\"text-align: justify;\">\u5728\u521b\u5efa\u6216\u66f4\u65b0\u89c4\u5219\u65f6\uff0c\u9632\u706b\u5899\u4f1a\u5728\u89c4\u5219\u4e0a\u8bb0\u5f55\u7528\u6237\u7684\u767b\u5f55\u540d\u3001IP\u5730\u5740\u548c\u65f6\u95f4\u65f6\u95f4\u6233\uff0c\u4ee5\u8ddf\u8e2a\u8c01\u6dfb\u52a0\u548c\/\u6216\u4e0a\u6b21\u66f4\u6539\u4e86\u76f8\u5173\u89c4\u5219\u3002 \u5982\u679c\u9632\u706b\u5899\u81ea\u52a8\u521b\u5efa\u4e86\u8be5\u89c4\u5219\uff0c\u540c\u6837\u4f1a\u88ab\u8bb0\u5f55\u3002 \u8fd9\u662f\u9488\u5bf9\u9632\u706b\u5899\u89c4\u5219\u4ee5\u53ca\u7aef\u53e3\u8f6c\u53d1\u548c\u51fa\u7ad9NAT\u89c4\u5219\u5b8c\u6210\u7684\u3002 \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728\u9632\u706b\u5899\u89c4\u5219\u65f6\u95f4\u6233\u4e2d\uff0c\u5728\u7f16\u8f91\u89c4\u5219\u9875\u9762\u6700\u5e95\u90e8\u7684\u9632\u706b\u5899\u89c4\u5219\u65f6\u53ef\u4ee5\u770b\u89c1\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1741\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule_timestamps.png\" alt=\"\" width=\"510\" height=\"110\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule_timestamps.png 510w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule_timestamps-300x65.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-rule_timestamps-500x108.png 500w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><span class=\"caption-text\">\u9632\u706b\u5899\u89c4\u5219\u65f6\u95f4\u6233<\/span><\/p>\n<h1 style=\"text-align: justify;\">\u522b\u540d<\/h1>\n<p style=\"text-align: justify;\">\u522b\u540d\u5b9a\u4e49\u4e86\u7ec4\u7aef\u53e3\uff0c\u4e3b\u673a\u6216\u7f51\u7edc\u3002 \u522b\u540d\u53ef\u4ee5\u901a\u8fc7\u9632\u706b\u5899\u89c4\u5219\u3001\u7aef\u53e3\u8f6c\u53d1\u3001\u51fa\u7ad9NAT\u89c4\u5219\u4ee5\u53ca\u9632\u706b\u5899GUI\u4e2d\u7684\u5176\u4ed6\u4f4d\u7f6e\u5f15\u7528\u3002 \u4f7f\u7528\u522b\u540d\u6709\u5229\u4e8e\u51cf\u5c11\u7ba1\u7406\u5de5\u4f5c\u91cf\uff0c\u521b\u5efa\u66f4\u6613\u4e8e\u7ba1\u7406\u7684\u89c4\u5219\u96c6\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u4e0d\u8981\u5c06\u9632\u706b\u5899\u522b\u540d\u4e0e\u63a5\u53e3IP\u522b\u540d\u6df7\u6dc6\uff0c\u63a5\u53e3IP\u522b\u540d\u662f\u5411\u7f51\u7edc\u63a5\u53e3\u6dfb\u52a0\u989d\u5916\u7684IP\u5730\u5740\u7684\u624b\u6bb5\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u522b\u540d\u57fa\u672c\u77e5\u8bc6<\/h2>\n<p style=\"text-align: justify;\">\u522b\u540d\u4f4d\u4e8e<strong>\u9632\u706b\u5899&gt;\u522b\u540d\u7ba1\u7406<\/strong>\u3002 \u8be5\u9875\u9762\u5206\u4e3a\u4e0d\u540c\u7c7b\u578b\u7684\u522b\u540d\u6807\u7b7e\uff1aIP\u3001\u7aef\u53e3\u3001URL\u548c\u5168\u90e8\u9009\u9879\u5361\u3002 \u521b\u5efa\u522b\u540d\u65f6\uff0c\u5c06\u5176\u6dfb\u52a0\u5230\u4efb\u4f55\u9009\u9879\u5361\uff0c\u5e76\u6839\u636e\u6240\u9009\u7c7b\u578b\u5c06\u5176\u5206\u7c7b\u5230\u6b63\u786e\u7684\u4f4d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\">\u53ef\u4ee5\u521b\u5efa\u4ee5\u4e0b\u7c7b\u578b\u7684\u522b\u540d:<\/p>\n<table class=\"docutils field-list\">\n<colgroup>\n<col class=\"field-name\" \/>\n<col class=\"field-body\" \/><\/colgroup>\n<tbody valign=\"top\">\n<tr class=\"field-odd field firstRow\">\n<th class=\"field-name\">\u4e3b\u673a:<\/th>\n<td class=\"field-body\">\u00a0\u5305\u542b\u5355\u4e2aIP\u5730\u5740\u6216\u4e3b\u673a\u540d\u7684\u522b\u540d<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">\u7f51\u7edc:<\/th>\n<td class=\"field-body\">\u00a0\u542b\u6709CIDR\u63a9\u7801\u7684\u7f51\u7edc\u3001\u4e3b\u673a\u540d\u3001IP\u5730\u5740\u8303\u56f4\u6216\u5355\u4e2aIP\u5730\u5740\u7684\u522b\u540d<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\">\u7aef\u53e3:<\/th>\n<td class=\"field-body\">\u00a0\u8fd9\u4e9b\u522b\u540d\u5305\u542bTCP\u6216UDP\u7aef\u53e3\u53f7\u6216\u7aef\u53e3\u8303\u56f4\u7684\u5217\u8868<\/td>\n<\/tr>\n<tr class=\"field-even field\">\n<th class=\"field-name\">URL:<\/th>\n<td class=\"field-body\">\u00a0\u4ece\u6307\u5b9a\u7684URL\u4e2d\u7684\u6587\u4ef6\u6784\u5efa\u7684\uff0c\u4f46\u662f\u53ea\u8bfb\u4e00\u6b21\uff0c\u7136\u540e\u6210\u4e3a\u6b63\u5e38\u7684\u7f51\u7edc\u6216\u7aef\u53e3\u7c7b\u578b\u522b\u540d<\/td>\n<\/tr>\n<tr class=\"field-odd field\">\n<th class=\"field-name\">URL\u8868:<\/th>\n<td class=\"field-body\">\u00a0\u4ece\u6307\u5b9aURL\u5904\u7684\u6587\u4ef6\u6784\u5efa\u7684\uff0c\u4f46\u662f\u901a\u8fc7\u5b9a\u671f\u4eceURL\u4e2d\u83b7\u53d6\u5217\u8868\u8fdb\u884c\u66f4\u65b0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u5728\u672c\u8282\u4e2d\u6211\u4eec\u4f1a\u66f4\u8be6\u7ec6\u5730\u63cf\u8ff0\u6bcf\u4e2a\u522b\u540d\u7c7b\u578b\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5d4c\u5957\u522b\u540d<\/h2>\n<p style=\"text-align: justify;\">\u5927\u591a\u6570\u522b\u540d\u53ef\u4ee5\u5d4c\u5957\u5728\u5176\u4ed6\u522b\u540d\u4e2d\uff0c\u53ea\u8981\u5b83\u4eec\u662f\u76f8\u540c\u7684\u7c7b\u578b\u5373\u53ef\u3002 \u4f8b\u5982\uff0c\u4e00\u4e2a\u522b\u540d\u53ef\u4ee5\u5d4c\u5957\u4e00\u4e2a\u5305\u542bWeb\u670d\u52a1\u5668\u7684\u522b\u540d\uff0c\u4e00\u4e2a\u5305\u542b\u90ae\u4ef6\u670d\u52a1\u5668\u7684\u522b\u540d\uff0c\u4ee5\u53ca\u4e00\u4e2a\u5305\u542bWeb\u548c\u90ae\u4ef6\u670d\u52a1\u5668\u522b\u540d\u7684\u670d\u52a1\u5668\u522b\u540d\uff0c\u8fd9\u4e9b\u522b\u540d\u90fd\u96c6\u4e2d\u5728\u4e00\u4e2a\u8f83\u5927\u7684Servers\u522b\u540d\u4e2d\u3002\u00a0\u8fd9\u91cc\u8981\u6ce8\u610f\uff1a<strong>URL\u8868\u522b\u540d\u4e0d\u80fd\u5d4c\u5957<\/strong>\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5728\u522b\u540d\u4e2d\u4f7f\u7528\u4e3b\u673a\u540d<\/h2>\n<p style=\"text-align: justify;\">\u4e3b\u673a\u540d\u4e5f\u53ef\u4ee5\u7528\u4e8e\u522b\u540d\u3002 \u4efb\u4f55\u4e3b\u673a\u540d\u90fd\u53ef\u4ee5\u8f93\u5165\u5230\u4e3b\u673a\u6216\u7f51\u7edc\u522b\u540d\u4e2d\uff0c\u5e76\u4e14\u5c06\u7531\u9632\u706b\u5899\u5b9a\u671f\u89e3\u6790\u548c\u66f4\u65b0\u3002 \u5982\u679c\u4e3b\u673a\u540d\u79f0\u8fd4\u56de\u591a\u4e2aIP\u5730\u5740\uff0c\u5219\u6240\u6709\u8fd4\u56de\u7684IP\u5730\u5740\u90fd\u5c06\u6dfb\u52a0\u5230\u522b\u540d\u4e2d\u3002 \u8fd9\u5bf9\u8ddf\u8e2a\u52a8\u6001DNS\u6761\u76ee\u4ee5\u5141\u8bb8\u7279\u5b9a\u7528\u6237\u4ece\u52a8\u6001IP\u5730\u5740\u8f6c\u6362\u4e3a\u670d\u52a1\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u6b64\u529f\u80fd\u5bf9\u4e8e\u5141\u8bb8\u6216\u7981\u6b62\u7528\u6237\u8bbf\u95ee\u5927\u578b\u516c\u5171\u7f51\u7ad9\u6ca1\u6709\u7528\u5904\u3002 \u5927\u578b\u548c\u7e41\u5fd9\u7684\u7ad9\u70b9\u5f80\u5f80\u5bf9DNS\u67e5\u8be2\u6709\u4e0d\u65ad\u7684\u65cb\u8f6c\u6216\u968f\u673a\u54cd\u5e94\uff0c\u6240\u4ee5\u522b\u540d\u7684\u5185\u5bb9\u4e0d\u4e00\u5b9a\u4e0e\u7528\u6237\u5728\u5c1d\u8bd5\u89e3\u6790\u76f8\u540c\u7ad9\u70b9\u540d\u79f0\u65f6\u6536\u5230\u7684\u54cd\u5e94\u76f8\u5339\u914d\u3002 \u5b83\u53ef\u4ee5\u9002\u7528\u4e8e\u53ea\u6709\u5c11\u91cf\u670d\u52a1\u5668\u7684\u5c0f\u578b\u7ad9\u70b9\uff0c\u5e76\u4e14\u5728\u5176DNS\u54cd\u5e94\u4e2d\u4e0d\u5305\u542b\u4e0d\u5b8c\u6574\u7684\u5730\u5740\u96c6\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5728\u522b\u540d\u4e2d\u6df7\u5408\u4f7f\u7528IPv4\u548cIPv6\u5730\u5740<\/h2>\n<p style=\"text-align: justify;\">IPv4\u548cIPv6\u5730\u5740\u53ef\u4ee5\u5728\u522b\u540d\u5185\u6df7\u5408\u4f7f\u7528\u3002 \u5728\u7279\u5b9a\u89c4\u5219\u4e2d\u5f15\u7528\u522b\u540d\u65f6\uff0c\u9632\u706b\u5899\u5c06\u4f7f\u7528\u9002\u5f53\u7c7b\u578b\u7684\u5730\u5740\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u522b\u540d\u5927\u5c0f\u95ee\u9898<\/h2>\n<p style=\"text-align: justify;\">\u6240\u6709\u8868\u7684\u603b\u5927\u5c0f\u5fc5\u987b\u5927\u81f4\u9002\u5408\u9632\u706b\u5899\u6700\u5927\u8868\u6761\u76ee\u7684\u4e00\u534a\uff0c\u9ed8\u8ba4\u503c\u4e3a200,000\u3002 \u5982\u679c\u8868\u9879\u7684\u6700\u5927\u6570\u91cf\u4e0d\u8db3\u4ee5\u5305\u542b\u6240\u6709\u6761\u76ee\uff0c\u5219\u89c4\u5219\u53ef\u80fd\u65e0\u6cd5\u52a0\u8f7d\u3002 \u6709\u5173\u66f4\u6539\u8be5\u503c\u7684\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u9632\u706b\u5899\u6700\u5927\u8868\u6761\u76ee\u3002 \u7531\u4e8e\u522b\u540d\u88ab\u52a0\u8f7d\u548c\u91cd\u8f7d\u7684\u65b9\u5f0f\uff0c\u522b\u540d\u5fc5\u987b\u5728\u603b\u533a\u57df\u4e2d\u653e\u5165\u4e24\u6b21; \u65b0\u5217\u8868\u4e0e\u65e7\u5217\u8868\u4e00\u8d77\u52a0\u8f7d\uff0c\u7136\u540e\u65e7\u5217\u8868\u88ab\u5220\u9664\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9632\u706b\u5899\u5305\u542b\u8db3\u591f\u7684RAM\u6765\u4fdd\u5b58\u6761\u76ee\uff0c\u5219\u53ef\u4ee5\u6839\u636e\u9700\u8981\u589e\u52a0\u6b64\u503c\u3002 RAM\u7684\u4f7f\u7528\u60c5\u51b5\u4e0e\u72b6\u6001\u8868\u7c7b\u4f3c\u4f46\u5c0f\u4e8e\u72b6\u6001\u8868\uff0c\u4f46\u5047\u8bbe\u6bcf\u4e2a\u6761\u76ee\u7684\u5360\u75281K\u662f\u4fdd\u5b88\u548c\u5b89\u5168\u7684\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u914d\u7f6e\u522b\u540d<\/h2>\n<p style=\"text-align: justify;\">\u6dfb\u52a0\u522b\u540d:<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230<strong>\u9632\u706b\u5899\u00a0&gt;\u00a0\u522b\u540d\u7ba1\u7406<\/strong><\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u6dfb\u52a0<\/strong><\/li>\n<li>\u8f93\u5165\u522b\u540d\u7684<strong>\u540d\u79f0<\/strong>\uff0c\u00a0 \u540d\u79f0\u53ef\u80fd\u53ea\u5305\u542b\u5b57\u7b26a-z\uff0cA-Z\uff0c0-9\u548c_\u3002<\/li>\n<li>\u8f93\u5165\u522b\u540d\u7684<strong>\u63cf\u8ff0<\/strong><\/li>\n<li>\u9009\u62e9\u522b\u540d\u7684\u7c7b\u578b\u3002<\/li>\n<\/ul>\n<p>\u6839\u636e\u9700\u8981\u8f93\u5165\u7279\u5b9a\u4e8e\u7c7b\u578b\u7684\u4fe1\u606f\u3002 \u6bcf\u79cd\u7c7b\u578b\u90fd\u6709\u4e00\u4e2a\u6570\u636e\u5b57\u6bb5\u548c\u6bcf\u4e2a\u6761\u76ee\u7684\u63cf\u8ff0\u5b57\u6bb5\u3002\u8981\u5c06\u65b0\u6210\u5458\u6dfb\u52a0\u5230\u522b\u540d\uff0c\u5355\u51fb\u6761\u76ee\u5217\u8868\u5e95\u90e8\u7684<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u6dfb\u52a0\u3002\u8981\u4ece\u522b\u540d\u4e2d\u5220\u9664\u6210\u5458\uff0c\u5728\u884c\u7684\u672b\u5c3e\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u5220\u9664\u3002\u522b\u540d\u5b8c\u6210\u540e\uff0c\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u5b58\u50a8\u522b\u540d\u5185\u5bb9\u3002<\/p>\n<p style=\"text-align: justify;\">\u6bcf\u4e2a\u624b\u52a8\u8f93\u5165\u7684\u522b\u540d\u9650\u5236\u4e3a5,000\u4e2a\u6210\u5458\uff0c\u4f46\u662f\u67d0\u4e9b\u6d4f\u89c8\u5668\u53ea\u80fd\u663e\u793a3,000\u4e2a\u6761\u76ee\u3002 \u5bf9\u4e8e\u5927\u91cf\u6761\u76ee\uff0c\u8bf7\u4f7f\u7528\u80fd\u591f\u5904\u7406\u8f83\u5927\u5217\u8868\u7684URL\u8868\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u4e3b\u673a\u522b\u540d<\/h3>\n<p style=\"text-align: justify;\">\u4e3b\u673a\u7c7b\u578b\u522b\u540d\u5305\u542bIP\u5730\u5740\u7ec4\u3002\u00a0\u4e0b\u56fe\u793a\u4f8b\u4e3b\u673a\u522b\u540d\u663e\u793a\u4e86\u4e00\u4e2a\u7528\u4e8e\u5305\u542b\u516c\u5171Web\u670d\u52a1\u5668\u5217\u8868\u7684\u4e3b\u673a\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1744\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1.png\" alt=\"\" width=\"1139\" height=\"524\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1-1024x471.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1-300x138.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1-768x353.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-hosts-alias-1-1-500x230.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em>\u4e3b\u673a\u522b\u540d\u793a\u4f8b<\/em><\/p>\n<p style=\"text-align: justify;\">\u5176\u4ed6\u4e3b\u673a\u7c7b\u578b\u522b\u540d\u53ef\u5d4c\u5957\u5728\u6b64\u6761\u76ee\u5185\u3002 \u5982\u524d\u6240\u8ff0\uff0c\u4e3b\u673a\u540d\u4e5f\u53ef\u4ee5\u7528\u4f5c\u6761\u76ee\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u7f51\u7edc\u522b\u540d<\/h3>\n<p style=\"text-align: justify;\">\u7f51\u7edc\u7c7b\u578b\u522b\u540d\u5305\u542b\u7f51\u7edc\u7ec4\u6216IP\u5730\u5740\u8303\u56f4\u3002 \u901a\u8fc7\u4e3aIPv4\u5730\u5740\u9009\u62e9\/ 32\u7f51\u7edc\u63a9\u7801\u6216\u4e3aIPv6\u5730\u5740\u9009\u62e9\/ 128\u524d\u7f00\u957f\u5ea6\uff0c\u5355\u4e2a\u4e3b\u673a\u4e5f\u53ef\u4ee5\u5305\u542b\u5728\u7f51\u7edc\u522b\u540d\u4e2d\u3002\u4e0b \u56fe\u663e\u793a\u4e86\u672c\u7ae0\u540e\u9762\u4f7f\u7528\u7684\u7f51\u7edc\u522b\u540d\u793a\u4f8b\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1745\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias.png\" alt=\"\" width=\"1139\" height=\"431\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1024x387.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-300x114.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-768x291.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-500x189.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em>\u7f51\u7edc\u522b\u540d\u793a\u4f8b<\/em><\/p>\n<p style=\"text-align: justify;\">\u5176\u4ed6\u4e3b\u673a\u6216\u7f51\u7edc\u522b\u540d\u53ef\u5d4c\u5957\u5728\u6b64\u6761\u76ee\u5185\u3002 \u5982\u524d\u6240\u8ff0\uff0c\u4e3b\u673a\u540d\u4e5f\u53ef\u4ee5\u7528\u4f5c\u6761\u76ee\u3002<\/p>\n<p style=\"text-align: justify;\">\u5f53\u522b\u540d\u6761\u76ee\u5305\u542bIPv4\u8303\u56f4\u65f6\uff0c\u9632\u706b\u5899\u5c06\u81ea\u52a8\u5c06\u5176\u8f6c\u6362\u4e3a\u7b49\u6548\u7684IPv4 CIDR\u7f51\u7edc\u96c6\u5408\uff0c\u8be5\u96c6\u5408\u5c06\u5b8c\u5168\u5305\u542b\u6307\u5b9a\u7684\u8303\u56f4\u3002 \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u4fdd\u5b58\u522b\u540d\u65f6\uff0c\u6307\u5b9a\u8303\u56f4\u5c06\u81ea\u52a8\u5c55\u5f00\uff0c\u5f97\u5230\u7684IPv4 CIDR\u7f51\u7edc\u5217\u8868\u5c06\u5b8c\u5168\u5339\u914d\u6240\u8bf7\u6c42\u7684\u8303\u56f4\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1746\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before.png\" alt=\"\" width=\"1140\" height=\"46\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before-1024x41.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before-300x12.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before-768x31.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-before-500x20.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em>IP\u8303\u56f4\u793a\u4f8b<\/em><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1747\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after.png\" alt=\"\" width=\"1139\" height=\"283\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after-1024x254.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after-300x75.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after-768x191.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-iprange-example-after-500x124.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">IP\u8303\u56f4\u793a\u4f8b<\/span><\/em><\/p>\n<h3 style=\"text-align: justify;\">\u7aef\u53e3\u522b\u540d<\/h3>\n<p style=\"text-align: justify;\">\u7aef\u53e3\u7c7b\u578b\u522b\u540d\u5305\u542b\u7aef\u53e3\u548c\u7aef\u53e3\u8303\u56f4\u7ec4\u3002 \u8be5\u534f\u8bae\u6ca1\u6709\u5728\u522b\u540d\u4e2d\u6307\u5b9a\uff1b \u4f7f\u7528\u522b\u540d\u7684\u9632\u706b\u5899\u89c4\u5219\u5c06\u534f\u8bae\u5b9a\u4e49\u4e3aTCP\uff0cUDP\u6216\u4e24\u8005\u3002\u00a0\u4e0b\u56fe\u663e\u793a\u4e86\u4e00\u4e2a\u7aef\u53e3\u7c7b\u578b\u522b\u540d\u7684\u4f8b\u5b50\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1748\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias.png\" alt=\"\" width=\"1140\" height=\"390\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias-1024x350.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias-300x103.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias-768x263.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-example-ports-alias-500x171.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em>\u7aef\u53e3\u522b\u540d\u793a\u4f8b<\/em><\/p>\n<p style=\"text-align: justify;\">\u5728\u201c\u7aef\u53e3\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u53e6\u4e00\u4e2a\u7aef\u53e3\u7c7b\u578b\u7684\u522b\u540d\uff0c\u4ee5\u5c06\u6b64\u522b\u540d\u5185\u7684\u5176\u4ed6\u7aef\u53e3\u7c7b\u578b\u522b\u540d\u5d4c\u5957\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u7f51\u5740\u522b\u540d<\/h3>\n<p style=\"text-align: justify;\">\u4f7f\u7528URL\u7c7b\u578b\u522b\u540d\uff0c\u5c06\u8bbe\u7f6e\u6307\u5411\u5305\u542b\u6761\u76ee\u5217\u8868\u7684\u6587\u672c\u6587\u4ef6\u7684URL\u3002 \u53ef\u4ee5\u8f93\u5165\u591a\u4e2aURL\u3002 \u5355\u51fb\u4fdd\u5b58\u65f6\uff0c\u5c06\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6700\u591a3,000\u4e2a\u6765\u81ea\u6bcf\u4e2aURL\u7684\u6761\u76ee\uff0c\u5e76\u5c06\u5176\u5bfc\u5165\u5230\u7f51\u7edc\u7c7b\u578b\u522b\u540d\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9009\u62e9URL\uff08IP\uff09\uff0c\u5219URL\u5fc5\u987b\u5305\u542bIP\u5730\u5740\u6216CIDR\u5c4f\u853d\u7684\u7f51\u7edc\u6761\u76ee\uff0c\u5e76\u4e14\u9632\u706b\u5899\u4ece\u5185\u5bb9\u521b\u5efa\u7f51\u7edc\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9009\u62e9URL\uff08\u7aef\u53e3\uff09\uff0c\u5219URL\u5fc5\u987b\u4ec5\u5305\u542b\u7aef\u53e3\u53f7\u6216\u8303\u56f4\uff0c\u9632\u706b\u5899\u4f1a\u4ece\u5185\u5bb9\u4e2d\u521b\u5efa\u7aef\u53e3\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<h3 style=\"text-align: justify;\">URL\u8868\u522b\u540d<\/h3>\n<p style=\"text-align: justify;\">URL\u8868\u522b\u540d\u7684\u884c\u4e3a\u4e0eURL\u522b\u540d\u7684\u884c\u4e3a\u660e\u663e\u4e0d\u540c\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u5b83\u4e0d\u4f1a\u5c06\u6587\u4ef6\u7684\u5185\u5bb9\u5bfc\u5165\u5230\u6b63\u5e38\u7684\u522b\u540d\u4e2d\u3002\u5b83\u5c06\u6587\u4ef6\u7684\u5185\u5bb9\u4e0b\u8f7d\u5230\u9632\u706b\u5899\u7684\u7279\u5b9a\u4f4d\u7f6e\uff0c\u5e76\u4f7f\u7528\u6240\u8c13\u7684\u6301\u4e45\u8868\uff08\u4e5f\u79f0\u4e3a\u57fa\u4e8e\u6587\u4ef6\u7684\u522b\u540d\uff09\u7684\u5185\u5bb9\u3002\u522b\u540d\u7684\u5b8c\u6574\u5185\u5bb9\u4e0d\u80fd\u5728GUI\u4e2d\u76f4\u63a5\u7f16\u8f91\uff0c\u4f46\u53ef\u4ee5\u5728\u8868\u683c\u67e5\u770b\u5668\u4e2d\u67e5\u770b\u3002<\/p>\n<p style=\"text-align: justify;\">\u5bf9\u4e8eURL\u8868\u522b\u540d\uff0c\u5728\u8bbe\u7f6e\u4e86\u66f4\u65b0\u5468\u671f\u540e\uff0c\u522b\u540d\u5185\u5bb9\u5c06\u88ab\u91cd\u65b0\u83b7\u53d6\u6570\u636e\u7684\u811a\u672c\u9694\u591c\u66f4\u65b0\u3002<\/p>\n<p style=\"text-align: justify;\">URL\u8868\u522b\u540d\u53ef\u80fd\u76f8\u5f53\u5927\uff0c\u5305\u542b\u6210\u5343\u4e0a\u4e07\u7684\u6761\u76ee\u3002\u4e00\u4e9b\u5ba2\u6237\u4f7f\u7528\u5b83\u4eec\u6765\u4fdd\u5b58\u7279\u5b9a\u56fd\u5bb6\u6216\u5730\u533a\u7684\u6240\u6709IP blocks\u7684\u5217\u8868\uff0c\u8fd9\u4e9b\u5217\u8868\u53ef\u8f7b\u677e\u8d85\u8fc74\u4e07\u4e2a\u6761\u76ee\u3002\u5904\u7406\u56fd\u5bb6\u5217\u8868\u548c\u5176\u4ed6\u7c7b\u4f3c\u884c\u4e3a\u65f6\uff0cpfBlocker\u63d2\u4ef6\u4f7f\u7528\u8fd9\u79cd\u522b\u540d\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u6ce8\u610f\uff1aURL\u8868\u522b\u540d\u4e0d\u80fd\u88ab\u5d4c\u5957\u3002<\/strong><\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9009\u62e9URL\u8868\uff08IP\uff09\uff0c\u5219URL\u5fc5\u987b\u5305\u542bIP\u5730\u5740\u6216CIDR\u63a9\u7801\u7684\u7f51\u7edc\u6761\u76ee\uff0c\u5e76\u4e14\u9632\u706b\u5899\u4f1a\u6839\u636e\u5185\u5bb9\u521b\u5efa\u7f51\u7edc\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u9009\u62e9URL\u8868\uff08\u7aef\u53e3\uff09\uff0c\u90a3\u4e48URL\u5fc5\u987b\u53ea\u5305\u542b\u7aef\u53e3\u53f7\u6216\u8303\u56f4\uff0c\u5e76\u4e14\u9632\u706b\u5899\u4ece\u5185\u5bb9\u521b\u5efa\u4e00\u4e2a\u7aef\u53e3\u7c7b\u578b\u522b\u540d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u6279\u91cf\u5bfc\u5165\u7f51\u7edc\u522b\u540d<\/h2>\n<p style=\"text-align: justify;\">\u5c06\u591a\u4e2a\u6761\u76ee\u5bfc\u5165\u522b\u540d\u7684\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u6279\u91cf\u5bfc\u5165\u529f\u80fd\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u5bfc\u5165\u529f\u80fd\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230<strong>\u9632\u706b\u5899&gt;\u00a0\u522b\u540d\u7ba1\u7406<\/strong><\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1749\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-upload.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u5bfc\u5165<\/strong><\/li>\n<li>\u586b\u5199<strong>\u522b\u540d<\/strong>\u548c<strong>\u63cf\u8ff0<\/strong><\/li>\n<li>\u5c06\u522b\u540d\u5185\u5bb9\u8f93\u5165\u5230\u522b\u540d\u4e2d\u4ee5\u5bfc\u5165\u6587\u672c\u533a\u57df\uff0c\u6bcf\u884c\u4e00\u4e2a\u6761\u76ee\u3002<\/li>\n<li>\u70b9\u51fb<strong>\u4fdd\u5b58<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u6b64\u9875\u9762\u7684\u5e38\u7528\u7528\u6cd5\u793a\u4f8b\u5305\u62ecIP\u5730\u5740\u3001\u7f51\u7edc\u548c\u9ed1\u540d\u5355\u5217\u8868\u3002 \u8be5\u5217\u8868\u53ef\u80fd\u5305\u542bIP\u5730\u5740\uff0cCIDR\u5c4f\u853d\u7684\u7f51\u7edc\uff0cIP\u8303\u56f4\u6216\u7aef\u53e3\u53f7\u3002 \u9632\u706b\u5899\u5c06\u5c1d\u8bd5\u81ea\u52a8\u786e\u5b9a\u76ee\u6807\u522b\u540d\u7c7b\u578b\u3002<\/p>\n<p style=\"text-align: justify;\">\u9632\u706b\u5899\u5c06\u9879\u76ee\u5bfc\u5165\u5230\u4ee5\u540e\u53ef\u4ee5\u7f16\u8f91\u7684\u6b63\u5e38\u522b\u540d\u4e2d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u4f7f\u7528\u522b\u540d<\/h2>\n<p style=\"text-align: justify;\">\u5f53\u4e00\u4e2a\u5b57\u6bcd\u8f93\u5165\u5230\u4e00\u4e2a\u652f\u6301\u522b\u540d\u7684\u8f93\u5165\u6846\u4e2d\u65f6\uff0c\u4f1a\u663e\u793a\u4e00\u4e2a\u5339\u914d\u7684\u522b\u540d\u5217\u8868\u3002 \u4ece\u5217\u8868\u4e2d\u9009\u62e9\u6240\u9700\u7684\u522b\u540d\uff0c\u6216\u5b8c\u5168\u952e\u5165\u5176\u540d\u79f0\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f<\/p>\n<p style=\"text-align: justify;\">\u522b\u540d\u81ea\u52a8\u5b8c\u6210\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff0c\u4f46\u53d7\u9650\u4e8e\u7c7b\u578b\u3002 \u4f8b\u5982\uff0c\u7f51\u7edc\u6216\u4e3b\u673a\u7c7b\u578b\u522b\u540d\u5c06\u5728\u7f51\u7edc\u5b57\u6bb5\u7684\u81ea\u52a8\u5b8c\u6210\u4e2d\u5217\u51fa\uff0c\u4f46\u662f\u7aef\u53e3\u522b\u540d\u4e0d\u4f1a\uff1b \u7aef\u53e3\u522b\u540d\u53ef\u7528\u4e8e\u7aef\u53e3\u5b57\u6bb5\uff0c\u4f46\u7f51\u7edc\u522b\u540d\u4e0d\u5728\u5217\u8868\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5728\u6dfb\u52a0\u6216\u7f16\u8f91\u9632\u706b\u5899\u89c4\u5219\u65f6\uff0c\u5728\u201c\u76ee\u6807\u201d\u5b57\u6bb5\u4e2d\u4f7f\u7528WebServers\u522b\u540d\u3002<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u7f16\u8f91\u9632\u706b\u5899\u89c4\u5219<\/li>\n<li>\u9009\u62e9\u5355\u4e2a\u4e3b\u673a\u6216\u522b\u540d<\/li>\n<li>\u7136\u540e\u952e\u5165\u6240\u9700\u522b\u540d\u7684\u7b2c\u4e00\u4e2a\u5b57\u6bcd\uff1a\u8f93\u5165W\uff0c\u5e76\u663e\u793a\u522b\u540d\uff0c\u5982\u56fe\u6240\u793a\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1750\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias.png\" alt=\"\" width=\"1140\" height=\"152\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias-1024x137.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias-300x40.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias-768x102.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-dst-alias-500x67.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u81ea\u52a8\u5b8c\u6210\u4e3b\u673a\u522b\u540d<\/span><\/em><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u914d\u7f6e\u7684\u7aef\u53e3\u522b\u540d\u81ea\u52a8\u5b8c\u6210\u3002 \u5982\u679c\u591a\u4e2a\u522b\u540d\u4e0e\u8f93\u5165\u7684\u5b57\u6bcd\u5339\u914d\uff0c\u5219\u5217\u51fa\u6240\u6709\u76f8\u5e94\u7c7b\u578b\u7684\u522b\u540d\u3002 \u70b9\u51fb\u6240\u9700\u7684\u522b\u540d\u6765\u9009\u62e9\u5b83\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1751\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias.png\" alt=\"\" width=\"1139\" height=\"95\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias-1024x85.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias-300x25.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias-768x64.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-dstport-alias-500x42.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u81ea\u52a8\u5b8c\u6210\u7aef\u53e3\u522b\u540d<\/span><\/em><\/p>\n<p style=\"text-align: justify;\">\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u663e\u793a\u4f7f\u7528Web Servers\u548cWebPorts\u522b\u540d\u521b\u5efa\u7684\u89c4\u5219\u3002 \u6b64\u89c4\u5219\u4f4d\u4e8eWAN\u4e0a\uff0c\u5f53\u4f7f\u7528WebPorts\u522b\u540d\u4e2d\u5b9a\u4e49\u7684\u7aef\u53e3\u65f6\uff0c\u5141\u8bb8\u4efb\u4f55\u6e90\u8bbf\u95eeWeb Servers\u00a0\u522b\u540d\u4e2d\u5b9a\u4e49\u7684IP\u5730\u5740\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1752\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-example-rule.png\" alt=\"\" width=\"971\" height=\"117\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-example-rule.png 971w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-example-rule-300x36.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-example-rule-768x93.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-alias-example-rule-500x60.png 500w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u4f7f\u7528\u522b\u540d\u7684\u793a\u4f8b<\/span><\/em><\/p>\n<p style=\"text-align: justify;\">\u5c06\u9f20\u6807\u5149\u6807\u60ac\u505c\u5728\u201c\u9632\u706b\u5899\u201d&gt;\u201c\u89c4\u5219\u7b56\u7565\u201d\u9875\u9762\u7684\u522b\u540d\u4e0a\uff0c\u4f1a\u663e\u793a\u4e00\u4e2a\u63d0\u793a\uff0c\u663e\u793a\u522b\u540d\u7684\u5185\u5bb9\u4ee5\u53ca\u522b\u540d\u4e2d\u5305\u542b\u7684\u8bf4\u660e\u3002\u00a0\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u4e00\u5f20\u60ac\u505c\u663e\u793a\u4e3b\u673a\u5185\u5bb9\uff0c\u4e00\u5f20\u60ac\u505c\u663e\u793a\u7aef\u53e3\u522b\u540d\u5185\u5bb9\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1753\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webservers-alias-hover.png\" alt=\"\" width=\"278\" height=\"168\" \/><\/p>\n<p class=\"caption\" style=\"text-align: left;\"><em><span class=\"caption-text\">\u60ac\u505c\u663e\u793a\u4e3b\u673a\u5185\u5bb9<\/span><\/em><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1754\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/firewall-webports-alias-hover.png\" alt=\"\" width=\"258\" height=\"129\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><em><span class=\"caption-text\">\u60ac\u505c\u663e\u793a\u7aef\u53e3\u5185\u5bb9<\/span><\/em><\/p>\n<h1 style=\"text-align: justify;\">\u9632\u706b\u5899\u89c4\u5219\u914d\u7f6e\u5b9e\u4f8b<\/h1>\n<p style=\"text-align: justify;\">\u672c\u8282\u4ecb\u7ecd\u9632\u706b\u5899\u89c4\u5219\u914d\u7f6e\u7684\u4e00\u822c\u5b9e\u4f8b\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u9ed8\u8ba4\u62d2\u7edd<\/h2>\n<p style=\"text-align: justify;\">\u4e0e\u8bbf\u95ee\u63a7\u5236\u6709\u5173\u7684\u8ba1\u7b97\u673a\u5b89\u5168\u6709\u4e24\u4e2a\u57fa\u672c\u539f\u7406\uff1a\u9ed8\u8ba4\u5141\u8bb8\u548c\u9ed8\u8ba4\u62d2\u7edd\u3002\u9632\u706b\u5899\u89c4\u5219\u7684\u9ed8\u8ba4\u62d2\u7edd\u7b56\u7565\u662f\u6700\u4f73\u505a\u6cd5\u3002\u9632\u706b\u5899\u7ba1\u7406\u5458\u5e94\u8be5\u914d\u7f6e\u89c4\u5219\uff0c\u53ea\u5141\u8bb8\u6700\u4f4e\u8981\u6c42\u7684\u6d41\u91cf\u6ee1\u8db3\u7f51\u7edc\u7684\u9700\u6c42\uff0c\u5e76\u4f7f\u5269\u4f59\u6d41\u91cf\u968f\u7740pfSense\u4e2d\u5185\u7f6e\u7684\u9ed8\u8ba4\u62d2\u7edd\u89c4\u5219\u800c\u4e0b\u964d\u3002\u53ef\u4ee5\u60f3\u50cf\uff0c\u89c4\u5219\u96c6\u4e2d\u62d2\u7edd\u89c4\u5219\u7684\u6570\u91cf\u5c06\u662f\u6700\u5c0f\u7684\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u9ed8\u8ba4\u7684\u53cc\u63a5\u53e3LAN\u548cWAN\u914d\u7f6e\u4e2d\uff0cpfSense\u4f7f\u7528WAN\u4e0a\u7684\u9ed8\u8ba4\u62d2\u7edd\u548cLAN\u4e0a\u7684\u9ed8\u8ba4\u5141\u8bb8\u3002\u4ece\u4e92\u8054\u7f51\u5165\u7ad9\u7684\u6240\u6709\u4e1c\u897f\u90fd\u88ab\u62d2\u7edd\uff0c\u6240\u6709\u4ece\u5c40\u57df\u7f51\u5230Internet\u7684\u4e1c\u897f\u90fd\u662f\u88ab\u5141\u8bb8\u7684\u3002\u6240\u6709\u5bb6\u5ead\u7ea7\u8def\u7531\u5668\u90fd\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\uff0c\u6240\u6709\u7c7b\u4f3c\u7684\u5f00\u6e90\u9879\u76ee\u548c\u5927\u591a\u6570\u7c7b\u4f3c\u7684\u5546\u4e1a\u4ea7\u54c1\u4e5f\u662f\u5982\u6b64\u3002\u8fd9\u662f\u5927\u591a\u6570\u4eba\u6240\u671f\u5f85\u7684\uff0c\u56e0\u6b64\u5b83\u662f\u9ed8\u8ba4\u914d\u7f6e\u3002\u8fd9\u867d\u7136\u8fd9\u662f\u4e00\u4e2a\u65b9\u4fbf\u7684\u542f\u52a8\u65b9\u5f0f\uff0c\u4f46\u5e76\u4e0d\u662f\u63a8\u8350\u7684\u957f\u671f\u64cd\u4f5c\u65b9\u5f0f\u3002<\/p>\n<p style=\"text-align: justify;\">pfSense\u7684\u7528\u6237\u7ecf\u5e38\u4f1a\u95ee\uff1a\u201c\u6211\u5e94\u8be5\u963b\u6b62\u4ec0\u4e48\u574f\u4e8b\uff1f\u201d\u4f46\u8fd9\u662f\u9519\u8bef\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u5b83\u9002\u7528\u4e8e\u9ed8\u8ba4\u5141\u8bb8\u7684\u65b9\u6cd5\u3002\u6ce8\u610f\u5230\u7684\u5b89\u5168\u4e13\u4e1a\u4eba\u5458Marcus Ranum\u5728\u4ed6\u7684\u201c\u8ba1\u7b97\u673a\u5b89\u5168\u7684\u516d\u4e2a\u6700\u611a\u8822\u7684\u60f3\u6cd5\u201d\u6587\u4ef6\u4e2d\u5305\u542b\u9ed8\u8ba4\u8bb8\u53ef\u8bc1\uff0c\u8fd9\u662f\u4efb\u4f55\u5b89\u5168\u4e13\u4e1a\u4eba\u5458\u7684\u63a8\u8350\u8bfb\u7269\u3002\u53ea\u5141\u8bb8\u7f51\u7edc\u9700\u8981\uff0c\u5e76\u907f\u514d\u5728\u5c40\u57df\u7f51\u4e0a\u7559\u4e0b\u9ed8\u8ba4\u5141\u8bb8\u6240\u6709\u89c4\u5219\uff0c\u5e76\u5728\u5141\u8bb8\u89c4\u5219\u4e4b\u4e0a\u6dfb\u52a0\u963b\u6b62\u201c\u574f\u4e8b\u201d\u7684\u963b\u6b62\u89c4\u5219\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u4fdd\u6301\u7b80\u77ed<\/h2>\n<p style=\"text-align: justify;\">\u89c4\u5219\u96c6\u8d8a\u77ed\uff0c\u5c31\u8d8a\u5bb9\u6613\u7ba1\u7406\u3002 \u5197\u957f\u7684\u89c4\u5219\u96c6\u5f88\u96be\u7ba1\u7406\uff0c\u589e\u52a0\u4eba\u4e3a\u9519\u8bef\u7684\u673a\u4f1a\uff0c\u5f80\u5f80\u8fc7\u4e8e\u5bbd\u5bb9\uff0c\u800c\u4e14\u5ba1\u67e5\u663e\u7136\u66f4\u52a0\u56f0\u96be\u3002 \u4f7f\u7528\u522b\u540d\u6765\u4fdd\u6301\u89c4\u5219\u96c6\u5c3d\u53ef\u80fd\u7b80\u77ed\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u67e5\u770b\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u6211\u4eec\u5efa\u8bae\u5b9a\u671f\u624b\u52a8\u68c0\u67e5\u9632\u706b\u5899\u89c4\u5219\u548cNAT\u914d\u7f6e\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u4ecd\u7b26\u5408\u5f53\u524d\u7f51\u7edc\u73af\u5883\u7684\u6700\u4f4e\u8981\u6c42\u3002 \u8fd9\u79cd\u68c0\u67e5\u7684\u9891\u7387\u56e0\u73af\u5883\u800c\u5f02\u3002 \u5728\u4e0d\u7ecf\u5e38\u66f4\u6362\u7684\u7f51\u7edc\u4e2d\uff0c\u53ea\u6709\u5c11\u91cf\u7684\u9632\u706b\u5899\u7ba1\u7406\u5458\uff0c\u6bcf\u5b63\u5ea6\u6216\u6bcf\u534a\u5e74\u901a\u5e38\u5c31\u8db3\u591f\u4e86\u3002 \u5bf9\u4e8e\u5feb\u901f\u53d8\u5316\u7684\u73af\u5883\u6216\u53d8\u66f4\u63a7\u5236\u4e0d\u4f73\u7684\u4eba\u5458\u4ee5\u53ca\u591a\u540d\u9632\u706b\u5899\u8bbf\u95ee\u4eba\u5458\uff0c\u81f3\u5c11\u6bcf\u6708\u68c0\u67e5\u4e00\u6b21\u914d\u7f6e\u3002<\/p>\n<p style=\"text-align: justify;\">\u901a\u5e38\u5728\u4e0e\u5ba2\u6237\u5ba1\u67e5\u89c4\u5219\u65f6\uff0c\u6211\u4eec\u4f1a\u8be2\u95ee\u5177\u4f53\u7684\u89c4\u5219\uff0c\u4ed6\u4eec\u4f1a\u56de\u7b54\u201c\u6211\u4eec\u5728\u516d\u4e2a\u6708\u524d\u5220\u9664\u4e86\u8be5\u670d\u52a1\u5668\u201d\u3002\u5982\u679c\u5176\u4ed6\u5185\u5bb9\u4f1a\u63a5\u7ba1\u4e0e\u4e4b\u524d\u7684\u670d\u52a1\u5668\u76f8\u540c\u7684\u5185\u90e8IP\u5730\u5740\uff0c\u5219\u6d41\u91cf\u5c06\u88ab\u5141\u8bb8\u8bbf\u95ee\u8fd9\u4e2a\u65b0\u7684\u670d\u52a1\u5668\uff0c\u4f46\u8fd9\u53ef\u80fd\u5e76\u4e0d\u662f\u6709\u610f\u7684\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u6587\u6863\u914d\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u5728\u9664\u4e86\u6700\u5c0f\u7684\u7f51\u7edc\u4e4b\u5916\u7684\u6240\u6709\u7f51\u7edc\u4e2d\uff0c\u53ef\u80fd\u5f88\u96be\u56de\u60f3\u8d77\u914d\u7f6e\u5728\u54ea\u91cc\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u3002 \u6211\u4eec\u603b\u662f\u5efa\u8bae\u4f7f\u7528\u9632\u706b\u5899\u548cNAT\u89c4\u5219\u4e2d\u7684\u63cf\u8ff0\u5b57\u6bb5\u6765\u8bb0\u5f55\u89c4\u5219\u7684\u7528\u9014\u3002 \u5728\u66f4\u5927\u6216\u66f4\u590d\u6742\u7684\u90e8\u7f72\u4e2d\uff0c\u521b\u5efa\u5e76\u7ef4\u62a4\u63cf\u8ff0\u6574\u4e2apfSense\u914d\u7f6e\u7684\u66f4\u8be6\u7ec6\u7684\u914d\u7f6e\u6587\u6863\u3002 \u5728\u5c06\u6765\u67e5\u770b\u9632\u706b\u5899\u914d\u7f6e\u65f6\uff0c\u8fd9\u5c06\u6709\u52a9\u4e8e\u786e\u5b9a\u54ea\u4e9b\u89c4\u5219\u662f\u5fc5\u8981\u7684\uff0c\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u5728\u90a3\u91cc\u3002 \u8fd9\u4e5f\u9002\u7528\u4e8e\u914d\u7f6e\u7684\u5176\u4ed6\u4efb\u4f55\u533a\u57df\u3002<\/p>\n<p style=\"text-align: justify;\">\u4fdd\u6301\u8fd9\u4e2a\u6587\u4ef6\u662f\u6700\u65b0\u7684\u4e5f\u662f\u5f88\u91cd\u8981\u7684\u3002 \u5728\u6267\u884c\u5b9a\u671f\u7684\u914d\u7f6e\u5ba1\u67e5\u65f6\uff0c\u8fd8\u8bf7\u67e5\u770b\u6b64\u6587\u6863\u4ee5\u786e\u4fdd\u5176\u4fdd\u6301\u6700\u65b0\u7684\u5f53\u524d\u914d\u7f6e\u3002 \u786e\u4fdd\u5728\u66f4\u6539\u914d\u7f6e\u65f6\u66f4\u65b0\u8fd9\u4e2a\u6587\u6863\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u51cf\u5c11\u65e5\u5fd7\u566a\u58f0<\/h2>\n<p style=\"text-align: justify;\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cpfSense\u5c06\u8bb0\u5f55\u88ab\u9ed8\u8ba4\u62d2\u7edd\u89c4\u5219\u963b\u6b62\u7684\u6570\u636e\u5305\u3002\u8fd9\u610f\u5473\u7740\u4ece\u4e92\u8054\u7f51\u4e0a\u88ab\u963b\u6b62\u7684\u6240\u6709\u566a\u58f0\u90fd\u5c06\u88ab\u8bb0\u5f55\u4e0b\u6765\u3002\u6709\u65f6\u65e5\u5fd7\u4e2d\u4e0d\u4f1a\u6709\u592a\u591a\u7684\u566a\u97f3\uff0c\u4f46\u662f\u5728\u5f88\u591a\u73af\u5883\u4e0b\uff0c\u4e0d\u53ef\u907f\u514d\u5730\u4f1a\u6709\u4e1c\u897f\u4e0d\u505c\u5730\u53d1\u9001\u5783\u573e\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u4f7f\u7528\u5927\u578b\u5e7f\u64ad\u57df\u7684\u7f51\u7edc\u4e0a &#8211; \u6709\u7ebfISP\u901a\u5e38\u91c7\u7528\u8fd9\u79cd\u505a\u6cd5 &#8211; \u8fd9\u901a\u5e38\u662fNetBIOS\u4ece\u7f3a\u4e4f\u7ebf\u7d22\u7684\u4eba\u90a3\u91cc\u5e7f\u64ad\uff0c\u4ed6\u4eec\u5c06Windows\u673a\u5668\u76f4\u63a5\u8fde\u63a5\u5230\u5bbd\u5e26\u8fde\u63a5\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u8fd9\u4e9b\u673a\u5668\u5c06\u4e0d\u65ad\u53d1\u51fa\u5e7f\u64ad\u8bf7\u6c42\u8fdb\u884c\u7f51\u7edc\u6d4f\u89c8\u3002 ISP\u8def\u7531\u534f\u8bae\u5206\u7ec4\u4e5f\u53ef\u80fd\u662f\u53ef\u89c1\u7684\uff0c\u6216\u8def\u7531\u5668\u5197\u4f59\u534f\u8bae\uff08\u5982VRRP\u6216HSRP\uff09\u3002\u5728\u8bf8\u5982\u6570\u636e\u4e2d\u5fc3\u8fd9\u6837\u7684\u534f\u540c\u5b9a\u4f4d\u73af\u5883\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u6240\u6709\u8fd9\u4e9b\u4e8b\u7269\u7684\u7ec4\u5408\u3002<\/p>\n<p style=\"text-align: justify;\">\u7531\u4e8e\u9632\u706b\u5899\u5728\u8fc7\u53bb\u4e00\u5929\u963b\u6b62\u4e86\u4e00\u5343\u56db\u767e\u4e07\u4e2aNetBIOS\u5e7f\u64ad\u6ca1\u6709\u4efb\u4f55\u4ef7\u503c\uff0c\u800c\u4e14\u566a\u58f0\u53ef\u80fd\u63a9\u76d6\u4e86\u91cd\u8981\u7684\u65e5\u5fd7\uff0c\u6240\u4ee5\u5728WAN\u63a5\u53e3\u4e0a\u6dfb\u52a0\u963b\u6b62\u89c4\u5219\u4ee5\u963b\u6b62\u566a\u58f0\u6d41\u91cf\u662f\u4e2a\u597d\u4e3b\u610f\u3002\u901a\u8fc7\u5728WAN\u63a5\u53e3\u4e0a\u6dfb\u52a0\u672a\u542f\u7528\u65e5\u5fd7\u8bb0\u5f55\u7684\u963b\u6b62\u89c4\u5219\uff0c\u8be5\u6d41\u91cf\u4ecd\u5c06\u88ab\u963b\u6b62\uff0c\u4f46\u4e0d\u518d\u586b\u5145\u65e5\u5fd7\u3002<\/p>\n<p style=\"text-align: justify;\">\u4e0b\u56fe\u4e2d\u663e\u793a\u7684\u89c4\u5219\u662f\u5728\u201cWAN\u201d\u4f4d\u4e8e\u8fb9\u7f18\u9632\u706b\u5899\u540e\u9762\u7684\u5185\u90e8LAN\u4e0a\u7684\u6d4b\u8bd5\u7cfb\u7edf\u4e0a\u914d\u7f6e\u7684\u3002\u4e3a\u4e86\u6d88\u9664\u65e5\u5fd7\u566a\u97f3\u4ee5\u67e5\u770b\u611f\u5174\u8da3\u7684\u4e8b\u60c5\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u8fd9\u4e2a\u89c4\u5219\u6765\u963b\u6b62 &#8211; \u4f46\u4e0d\u8bb0\u5f55 &#8211; \u8be5\u5b50\u7f51\u7684\u5e7f\u64ad\u5730\u5740\u7684\u76ee\u7684\u5730\u7684\u4efb\u4f55\u5185\u5bb9\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1755\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fwrules-dont-log-broadcasts.png\" alt=\"\" width=\"965\" height=\"100\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fwrules-dont-log-broadcasts.png 965w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fwrules-dont-log-broadcasts-300x31.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fwrules-dont-log-broadcasts-768x80.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fwrules-dont-log-broadcasts-500x52.png 500w\" sizes=\"auto, (max-width: 965px) 100vw, 965px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u963b\u6b62\u8bb0\u5f55\u5e7f\u64ad\u7684\u9632\u706b\u5899\u89c4\u5219<\/span><\/em><\/p>\n<p style=\"text-align: justify;\">\u6211\u4eec\u5efa\u8bae\u6dfb\u52a0\u7c7b\u4f3c\u7684\u89c4\u5219\uff0c\u4ee5\u5339\u914d\u7f51\u7edc\u73af\u5883\u4e2d\u89c2\u5bdf\u5230\u7684\u4efb\u4f55\u65e5\u5fd7\u566a\u58f0\u7684\u7ec6\u8282\u3002 \u5728\u201c\u7cfb\u7edf\u72b6\u6001\u201d&gt;\u201c\u7cfb\u7edf\u65e5\u5fd7\u201d\uff0c\u201c\u9632\u706b\u5899\u201d\u9009\u9879\u5361\u4e0b\u68c0\u67e5\u9632\u706b\u5899\u65e5\u5fd7\uff0c\u67e5\u770b\u9632\u706b\u5899\u963b\u6b62\u7684\u6d41\u91cf\u7c7b\u578b\uff0c\u5e76\u67e5\u770b\u65e5\u5fd7\u4e2d\u51fa\u73b0\u7684\u9891\u7387\u3002 \u5982\u679c\u4efb\u4f55\u7279\u5b9a\u6d41\u91cf\u6bcf\u5206\u949f\u8bb0\u5f55\u8d85\u8fc75\u6b21\uff0c\u5e76\u4e14\u6d41\u91cf\u4e0d\u662f\u6076\u610f\u6216\u503c\u5f97\u6ce8\u610f\u7684\uff0c\u8bf7\u4e3a\u5176\u6dfb\u52a0\u963b\u6b62\u89c4\u5219\u4ee5\u51cf\u5c11\u8bb0\u5f55\u566a\u58f0\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u65e5\u5fd7\u5206\u6790<\/h2>\n<p style=\"text-align: justify;\">pfSense\u4e0d\u8bb0\u5f55\u4efb\u4f55\u901a\u8fc7\u7684\u6d41\u91cf\u53ea\u8bb0\u5f55\u6240\u6709\u4e22\u5f03\u7684\u6d41\u91cf\u3002 \u8fd9\u662f\u51e0\u4e4e\u6240\u6709\u5f00\u6e90\u548c\u5546\u4e1a\u9632\u706b\u5899\u7684\u5178\u578b\u9ed8\u8ba4\u884c\u4e3a\u3002 \u8fd9\u662f\u6700\u5b9e\u9645\u7684\uff0c\u56e0\u4e3a\u8bb0\u5f55\u6240\u6709\u901a\u8fc7\u7684\u6d41\u91cf\u5f88\u5c11\u9700\u8981\uff0c\u8fd9\u53ea\u4f1a\u589e\u52a0\u8d1f\u8f7d\uff0c\u589e\u52a0\u65e5\u5fd7\u8bb0\u5f55\u7684\u6570\u91cf\u3002 \u7136\u800c\uff0c\u4ece\u5b89\u5168\u89d2\u5ea6\u6765\u770b\uff0c\u8fd9\u79cd\u65b9\u6cd5\u6709\u4e9b\u5012\u9000\u3002 \u88ab\u963b\u6b62\u7684\u6d41\u91cf\u4e0d\u4f1a\u635f\u5bb3\u7f51\u7edc\uff0c\u56e0\u6b64\u5176\u65e5\u5fd7\u503c\u662f\u6709\u9650\u7684\uff0c\u800c\u901a\u8fc7\u63a5\u53e3\u7684\u6570\u636e\u53ef\u80fd\u5305\u542b\u975e\u5e38\u91cd\u8981\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u5982\u679c\u7cfb\u7edf\u53d7\u5230\u5a01\u80c1\u3002 \u5728\u6d88\u9664\u4e86\u4e0a\u4e00\u8282\u6240\u8ff0\u7684\u4efb\u4f55\u65e0\u7528\u7684\u8bb0\u5f55\u566a\u58f0\u4e4b\u540e\uff0c\u4e3a\u4e86\u8d8b\u52bf\u5206\u6790\u7684\u76ee\u7684\uff0c\u5176\u4f59\u90e8\u5206\u662f\u6709\u4ef7\u503c\u7684\u3002 \u5982\u679c\u89c2\u5bdf\u5230\u660e\u663e\u591a\u4e8e\u6216\u5c11\u4e8e\u5e38\u89c4\u7684\u65e5\u5fd7\u6570\u91cf\uff0c\u90a3\u4e48\u8c03\u67e5\u8bb0\u5f55\u6d41\u91cf\u7684\u6027\u8d28\u53ef\u80fd\u66f4\u597d\u3002 OSSEC\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u57fa\u4e8e\u4e3b\u673a\u7684***\u68c0\u6d4b\u7cfb\u7edf\uff08IDS\uff09\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u65e5\u5fd7\u4ecepfSense\u6536\u96c6\u65e5\u5fd7\uff0c\u5e76\u6839\u636e\u65e5\u5fd7\u8bb0\u5f55\u7684\u5f02\u5e38\u60c5\u51b5\u53d1\u51fa\u8b66\u62a5\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u89c4\u5219\u65b9\u6cd5\u8bba<\/h1>\n<p style=\"text-align: justify;\">\u5728pfSense\u4e2d\uff0c\u63a5\u53e3\u9009\u9879\u5361\u4e0a\u7684\u89c4\u5219\u5728\u6bcf\u4e2a\u63a5\u53e3\u4e0a\u5e94\u7528\uff0c\u59cb\u7ec8\u5728\u8be5\u63a5\u53e3\u7684\u5165\u7ad9\u65b9\u5411\u4e0a\u5e94\u7528\u3002\u8fd9\u610f\u5473\u7740\u4eceLAN\u53d1\u8d77\u7684\u6d41\u91cf\u5c06\u4f7f\u7528LAN\u63a5\u53e3\u89c4\u5219\u8fdb\u884c\u8fc7\u6ee4\u3002\u901a\u8fc7WAN\u63a5\u53e3\u89c4\u5219\u8fc7\u6ee4\u4eceInternet\u53d1\u8d77\u7684\u6d41\u91cf\u3002\u56e0\u4e3a\u9ed8\u8ba4\u60c5\u51b5\u4e0bpfSense\u4e2d\u7684\u6240\u6709\u89c4\u5219\u90fd\u662f\u6709\u72b6\u6001\u7684\uff0c\u6240\u4ee5\u5f53\u6d41\u91cf\u5339\u914d\u5141\u8bb8\u89c4\u5219\u65f6\u5c06\u521b\u5efa\u4e00\u4e2a\u72b6\u6001\u8868\u6761\u76ee\u3002\u6240\u6709\u7684\u5e94\u7b54\u6d41\u91cf\u90fd\u88ab\u8fd9\u4e2a\u72b6\u6001\u8868\u9879\u81ea\u52a8\u5141\u8bb8\u3002<\/p>\n<p style=\"text-align: justify;\">\u6d6e\u52a8\u89c4\u5219\uff08\u6d6e\u52a8\u89c4\u5219\uff09\u662f\u4e00\u4e2a\u4f8b\u5916\uff0c\u6d6e\u52a8\u89c4\u5219\u53ef\u4ee5\u4f7f\u7528\u5165\u7ad9\u3001\u51fa\u7ad9\u6216\u4e24\u4e2a\u65b9\u5411\u4f5c\u7528\u4e8e\u4efb\u4f55\u63a5\u53e3\u3002\u51fa\u7ad9\u89c4\u5219\u4ece\u4e0d\u9700\u8981\uff0c\u56e0\u4e3a\u5728\u6bcf\u4e2a\u63a5\u53e3\u7684\u5165\u7ad9\u65b9\u5411\u4e0a\u5e94\u7528\u4e86\u8fc7\u6ee4\u3002\u5728\u4e00\u4e9b\u6709\u9650\u7684\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982\u5177\u6709\u4f17\u591a\u5185\u90e8\u63a5\u53e3\u7684\u9632\u706b\u5899\uff0c\u8bbe\u7f6e\u6d6e\u52a8\u89c4\u5219\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u6240\u9700\u7684\u9632\u706b\u5899\u89c4\u5219\u7684\u6570\u91cf\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5c06\u4e92\u8054\u7f51\u6d41\u91cf\u7684\u51fa\u53e3\u89c4\u5219\u5e94\u7528\u4e3a\u5e7f\u57df\u7f51\u4e0a\u7684\u51fa\u7ad9\u89c4\u5219\uff0c\u4ee5\u907f\u514d\u5728\u6bcf\u4e2a\u5185\u90e8\u63a5\u53e3\u4e0a\u590d\u5236\u51fa\u53e3\u89c4\u5219\u3002\u5165\u7ad9\u548c\u51fa\u7ad9\u8fc7\u6ee4\u7684\u4f7f\u7528\u4f7f\u914d\u7f6e\u66f4\u52a0\u590d\u6742\uff0c\u66f4\u5bb9\u6613\u51fa\u73b0\u7528\u6237\u9519\u8bef\uff0c\u4f46\u5728\u7279\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u53ef\u80fd\u662f\u9700\u8981\u7684\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u63a5\u53e3\u7ec4<\/h2>\n<p style=\"text-align: justify;\">\u63a5\u53e3\u7ec4\u662f\u4e00\u79cd\u540c\u65f6\u5728\u591a\u4e2a\u63a5\u53e3\u4e0a\u653e\u7f6e\u89c4\u5219\u7684\u65b9\u6cd5\u3002 \u8fd9\u53ef\u4ee5\u7b80\u5316\u4e00\u4e9b\u89c4\u5219\u914d\u7f6e\uff0c\u5982\u679c\u76f8\u4f3c\u7684\u89c4\u5219\u5728\u8bb8\u591a\u63a5\u53e3\u4e0a\u9700\u8981\u76f8\u540c\u7684\u65b9\u5f0f\u3002 \u63a5\u53e3\u7ec4\u89c4\u5219\uff08\u5982\u63a5\u53e3\u89c4\u5219\uff09\u4ec5\u5728\u5165\u7ad9\u65b9\u5411\u8fdb\u884c\u5904\u7406\u3002 Open***\uff0cL2TP\u548cPPPoE\u670d\u52a1\u5668\u7684***\u9009\u9879\u5361\u90fd\u662f\u5728\u5e55\u540e\u81ea\u52a8\u521b\u5efa\u7684\u7279\u6b8a\u63a5\u53e3\u7ec4\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f8b\u5982\uff0c\u4e00\u4e2a\u7ec4\u53ef\u4ee5\u7528\u4e8e\u5305\u62ec\u6240\u6709LAN\u6216DMZ\u7c7b\u578b\u63a5\u53e3\u6216\u4e00\u7ec4VLAN\u7684\u63a5\u53e3\u96c6\u5408\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u63a5\u53e3\u7ec4\u5728\u591aWAN\u4e2d\u65e0\u6548\uff0c\u56e0\u4e3a\u7ec4\u89c4\u5219\u65e0\u6cd5\u6b63\u786e\u5904\u7406\u5e94\u7b54\u3002 \u7531\u4e8e\u8fd9\u4e2a\u7f3a\u9677\uff0c\u5728\u6ca1\u6709\u9ed8\u8ba4\u7f51\u5173\u7684\u5e7f\u57df\u7f51\u4e0a\u5339\u914d\u4e00\u4e2a\u7ec4\u89c4\u5219\u7684\u6d41\u91cf\u5c06\u4f1a\u901a\u8fc7\u9ed8\u8ba4\u7f51\u5173\u4ece\u5e7f\u57df\u7f51\u9000\u51fa\uff0c\u800c\u4e0d\u662f\u901a\u8fc7\u5b83\u6240\u8fdb\u5165\u7684\u63a5\u53e3\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u89c4\u5219\u5904\u7406\u987a\u5e8f<\/h2>\n<p style=\"text-align: justify;\">\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u6211\u4eec\u5df2\u7ecf\u8c08\u5230\u4e86\u5982\u4f55\u5728\u63a5\u53e3\u9009\u9879\u5361\u4e0a\u5904\u7406\u89c4\u5219\uff0c\u4f46\u662f\u6709\u4e09\u4e2a\u4e3b\u8981\u7684\u89c4\u5219\u7c7b\uff1a\u5e38\u89c4\u63a5\u53e3\u89c4\u5219\uff0c\u6d6e\u52a8\u89c4\u5219\u548c\u63a5\u53e3\u7ec4\u89c4\u5219\uff08\u5305\u62ecVPN\u9009\u9879\u5361\u89c4\u5219\uff09\u3002 \u8fd9\u4e9b\u7c7b\u578b\u7684\u5904\u7406\u987a\u5e8f\u4e0d\u540c\uff0c\u4ed6\u4eec\u7684\u6392\u5e8f\u5982\u4e0b\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u6d6e\u52a8\u89c4\u5219<\/li>\n<li>\u63a5\u53e3\u7ec4\u89c4\u5219<\/li>\n<li>\u63a5\u53e3\u89c4\u5219<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u89c4\u5219\u5728\u5b9e\u9645\u7684\u89c4\u5219\u96c6\u4e2d\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u6392\u5e8f\uff0c\u5728\u5236\u5b9a\u89c4\u5219\u65f6\u8981\u8bb0\u4f4f\u8fd9\u4e00\u70b9\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u63a5\u53e3\u7ec4\u5305\u542b\u963b\u6b62\u6d41\u91cf\u7684\u89c4\u5219\uff0c\u5219\u8be5\u89c4\u5219\u4e0d\u80fd\u7528\u63a5\u53e3\u9009\u9879\u5361\u89c4\u5219\u8986\u76d6\uff0c\u56e0\u4e3a\u6d41\u91cf\u5df2\u7531\u89c4\u5219\u96c6\u4e2d\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u63a5\u53e3\u7ec4\u89c4\u5219\u5904\u7406\u3002<\/p>\n<p style=\"text-align: justify;\">\u5904\u7406\u9632\u706b\u5899\u89c4\u5219\u76f4\u5230\u627e\u5230\u5339\u914d\u624d\u505c\u6b62\uff0c\u4f46\u662f\uff0c\u5982\u679c\u4e00\u4e2a\u6570\u636e\u5305\u5728\u7ec4\u89c4\u5219\u4e2d\u4e0d\u5339\u914d\uff0c\u4ecd\u7136\u53ef\u4ee5\u901a\u8fc7\u63a5\u53e3\u89c4\u5219\u8fdb\u884c\u5339\u914d\u3002<\/p>\n<p style=\"text-align: justify;\">\u53e6\u4e00\u4e2a\u91cd\u8981\u7684\u5730\u65b9\u5c31\u662f\u5206\u914dOpenVPN\u63a5\u53e3\u3002 \u5982\u679c\u5728OpenVPN\u9009\u9879\u5361\u4e0a\u6709\u4e00\u4e2a\u201c\u5168\u90e8\u5141\u8bb8\u201d\u7684\u89c4\u5219\uff0c\u5b83\u5c06\u4e0e\u63a5\u53e3\u7ec4\u89c4\u5219\u5339\u914d\u3002 \u8fd9\u610f\u5473\u7740\u63a5\u53e3\u9009\u9879\u5361\u4e0a\u7684\u89c4\u5219\u5c06\u4e0d\u9002\u7528\u3002 \u8fd9\u53ef\u80fd\u662f\u4e00\u4e2a\u95ee\u9898\uff0c\u5982\u679cOpenVPN\u7684\u89c4\u5219\u9700\u8981\u5e94\u7b54\uff0c\u5e94\u786e\u4fdd\u6d41\u91cf\u901a\u8fc7VPN\u9000\u51fa\u3002\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u81ea\u52a8\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u7531\u4e8e\u5404\u79cd\u539f\u56e0\uff0cpfSense\u4f1a\u81ea\u52a8\u6dfb\u52a0\u5185\u90e8\u9632\u706b\u5899\u89c4\u5219\u3002 \u672c\u8282\u4ecb\u7ecd\u81ea\u52a8\u6dfb\u52a0\u7684\u89c4\u5219\u53ca\u5176\u7528\u9014\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u53cd\u9501\u5b9a\u89c4\u5219<\/h3>\n<p style=\"text-align: justify;\">\u4e3a\u9632\u6b62\u5c06\u7ba1\u7406\u5458\u9501\u5b9a\u5728Web\u754c\u9762\u4e4b\u5916\uff0cpfSense\u9ed8\u8ba4\u542f\u7528\u9632\u9501\u5b9a\u89c4\u5219\u3002 \u8fd9\u53ef\u4ee5\u5728<strong>\u7cfb\u7edf&gt;\u00a0\u9ad8\u7ea7\u8bbe\u7f6e<\/strong>\u9875\u9762\u4e0a\u914d\u7f6e\u3002 \u8fd9\u4e2a\u81ea\u52a8\u6dfb\u52a0\u7684\u89c4\u5219\u5141\u8bb8\u6765\u81ea\u5305\u542b\u8be5\u89c4\u5219\u7684\u7f51\u7edc\u5185\u7684\u4efb\u4f55\u6e90\u7684\u6d41\u91cf\u76d1\u542cLAN IP\u5730\u5740\u7684\u4efb\u4f55\u9632\u706b\u5899\u7ba1\u7406\u534f\u8bae\u3002 \u4f8b\u5982\uff0c\u5b83\u5141\u8bb8\u8bbf\u95eeWebGUI\u7684TCP\u7aef\u53e3443\uff0cGUI\u91cd\u5b9a\u5411\u7684TCP\u7aef\u53e380\u4ee5\u53ca\u542f\u7528SSH\u7684\u7aef\u53e322\u3002 \u5982\u679cWebGUI\u7aef\u53e3\u5df2\u66f4\u6539\uff0c\u5219\u914d\u7f6e\u7684\u7aef\u53e3\u662f\u9632\u9501\u5b9a\u89c4\u5219\u6240\u5141\u8bb8\u7684\u7aef\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u5177\u6709\u5b89\u5168\u610f\u8bc6\u7684\u73af\u5883\u4e2d\uff0c\u6700\u4f73\u505a\u6cd5\u662f\u7981\u7528\u6b64\u89c4\u5219\u5e76\u914d\u7f6eLAN\u89c4\u5219\uff0c\u4ee5\u4fbf\u53ea\u6709\u53ef\u4fe1\u4e3b\u673a\u7684\u522b\u540d\u624d\u80fd\u8bbf\u95ee\u9632\u706b\u5899\u7684\u7ba1\u7406\u754c\u9762\u3002 \u66f4\u597d\u7684\u505a\u6cd5\u662f\u4e0d\u5141\u8bb8\u4ece\u5c40\u57df\u7f51\u8bbf\u95ee\uff0c\u53ea\u80fd\u4ece\u5b64\u7acb\u7684\u7ba1\u7406\u7f51\u7edc\u8bbf\u95ee\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9650\u5236\u4ece\u5c40\u57df\u7f51\u8bbf\u95ee\u7ba1\u7406\u754c\u9762<\/h4>\n<p style=\"text-align: justify;\">\u9996\u5148\uff0c\u6839\u636e\u9700\u8981\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219\uff0c\u4ee5\u9650\u5236\u5bf9\u6240\u9700\u7ba1\u7406\u754c\u9762\u7684\u8bbf\u95ee\u3002 \u5728\u4e0b\u56fe\u4e2d\uff0cSSH\u548cHTTPS\u90fd\u7528\u4e8e\u7ba1\u7406\uff0c\u56e0\u6b64\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b\u7aef\u53e3\u7684\u7ba1\u7406\u7aef\u53e3\u522b\u540d\uff08\u7ba1\u7406\u7aef\u53e3\u522b\u540d\uff09\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1756\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias.png\" alt=\"\" width=\"1047\" height=\"390\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias.png 1047w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias-1024x381.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias-300x112.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias-768x286.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-ports-alias-500x186.png 500w\" sizes=\"auto, (max-width: 1047px) 100vw, 1047px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u7ba1\u7406\u7aef\u53e3\u7684\u522b\u540d<\/span><\/em><\/p>\n<p style=\"text-align: justify;\">\u7136\u540e\u4e3a\u5c06\u6709\u6743\u8bbf\u95ee\u7ba1\u7406\u754c\u9762\u7684\u4e3b\u673a\u548c\/\u6216\u7f51\u7edc\u521b\u5efa\u4e00\u4e2a\u522b\u540d\uff08\u89c1\u4e0b\u56fe\uff09\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1757\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1.png\" alt=\"\" width=\"1139\" height=\"431\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1-1024x387.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1-300x114.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1-768x291.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-hosts-alias-1-500x189.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p style=\"text-align: center;\"><em>\u7ba1\u7406\u4e3b\u673a\u7684\u522b\u540d<\/em><\/p>\n<p style=\"text-align: justify;\">\u751f\u6210\u7684\u522b\u540d\u663e\u793a\u5728\u56fe\u5f62\u522b\u540d\u5217\u8868\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1758\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list.png\" alt=\"\" width=\"1037\" height=\"66\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list.png 1037w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list-1024x65.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list-300x19.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list-768x49.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/management-alias-list-500x32.png 500w\" sizes=\"auto, (max-width: 1037px) 100vw, 1037px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em>\u522b\u540d\u5217\u8868<\/em><\/p>\n<p style=\"text-align: justify;\">\u7136\u540e\uff0cLAN\u9632\u706b\u5899\u89c4\u5219\u5fc5\u987b\u914d\u7f6e\u4e3a\u5141\u8bb8\u4ee5\u524d\u5b9a\u4e49\u7684\u4e3b\u673a\u8bbf\u95ee\uff0c\u5e76\u62d2\u7edd\u6240\u6709\u5176\u4ed6\u8bbf\u95ee\u3002 \u6709\u5f88\u591a\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u7f51\u7edc\u73af\u5883\u4ee5\u53ca\u5982\u4f55\u5904\u7406\u51fa\u53e3\u8fc7\u6ee4\u3002\u00a0\u4e0b\u9762\u4e3a\u4e24\u4e2a\u4f8b\u5b50\u3002 \u7b2c\u4e00\u4e2a\u5141\u8bb8DNS\u67e5\u8be2\u5230\u5c40\u57df\u7f51\u7684IP\u5730\u5740\uff0c\u5982\u679c\u542f\u7528\u4e86DNS\u89e3\u6790\u5668\u6216DNS\u8f6c\u53d1\u5668\uff0c\u8fd9\u4e5f\u662f\u5141\u8bb8\u5c40\u57df\u7f51\u4e3b\u673aping\u5c40\u57df\u7f51IP\u5730\u5740\u3002 \u7136\u540e\u62d2\u7edd\u6240\u6709\u5176\u4ed6\u6d41\u91cf\u3002 \u7b2c\u4e8c\u4e2a\u793a\u4f8b\u5141\u8bb8\u4ece\u7ba1\u7406\u4e3b\u673a\u8bbf\u95ee\u7ba1\u7406\u7aef\u53e3\uff0c\u7136\u540e\u62d2\u7edd\u6240\u6709\u5176\u4ed6\u6d41\u91cf\u5230\u7ba1\u7406\u7aef\u53e3\u3002\u00a0\u4f60\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u7684\u7ba1\u7406\u529e\u6cd5\u3002\u00a0<strong>\u8bf7\u8bb0\u4f4f\uff0c\u6e90\u7aef\u53e3\u8981\u8bbe\u7f6e\u6210\u4e0e\u76ee\u6807\u7aef\u53e3\u4e0d\u540c\u3002<\/strong><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1759\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules.png\" alt=\"\" width=\"1050\" height=\"303\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules.png 1050w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-1024x295.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-300x87.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-768x222.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-1000x288.png 1000w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-500x144.png 500w\" sizes=\"auto, (max-width: 1050px) 100vw, 1050px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u793a\u4f8b\u53d7\u9650\u7ba1\u7406LAN\u89c4\u5219<\/span><\/em><\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1760\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2.png\" alt=\"\" width=\"1047\" height=\"194\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2.png 1047w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2-1024x190.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2-300x56.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2-768x142.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/restricted-management-lan-rules-2-500x93.png 500w\" sizes=\"auto, (max-width: 1047px) 100vw, 1047px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: center;\"><em><span class=\"caption-text\">\u53d7\u9650\u7ba1\u7406LAN\u89c4\u5219\u5907\u7528\u793a\u4f8b<\/span><\/em><\/p>\n<p style=\"text-align: justify;\">\u4e00\u65e6\u914d\u7f6e\u4e86\u9632\u706b\u5899\u89c4\u5219\uff0c\u8bf7\u7981\u7528<strong>\u7cfb\u7edf&gt;\u9ad8\u7ea7\u8bbe\u7f6e<\/strong>\u9875\u9762\u4e0a\u7684webGUI\u53cd\u9501\u5b9a\u89c4\u5219\u3002 \u9009\u4e2d\u8be5\u6846\u5e76\u5355\u51fb\u4fdd\u5b58\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u5982\u679c\u5728\u7981\u7528\u9632\u9501\u5b9a\u89c4\u5219\u4e4b\u540e\uff0c\u7ba1\u7406\u63a5\u53e3\u4e0d\u80fd\u518d\u88ab\u8bbf\u95ee\uff0c\u5219\u9632\u706b\u5899\u89c4\u5219\u6ca1\u6709\u88ab\u9002\u5f53\u5730\u914d\u7f6e\u3002 \u901a\u8fc7\u5728\u63a7\u5236\u53f0\u83dc\u5355\u4e2d\u4f7f\u7528\u201c\u8bbe\u7f6e\u63a5\u53e3IP\u5730\u5740\u201d\u9009\u9879\u91cd\u65b0\u542f\u7528\u9632\u9501\u5b9a\u89c4\u5219\uff0c\u7136\u540e\u9009\u62e9\u91cd\u7f6eLAN IP\u5730\u5740\u3002 \u5c06\u5176\u8bbe\u7f6e\u4e3a\u5f53\u524d\u7684IP\u5730\u5740\uff0c\u89c4\u5219\u5c06\u81ea\u52a8\u91cd\u65b0\u542f\u7528\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1761\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled.png\" alt=\"\" width=\"1060\" height=\"102\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled.png 1060w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled-1024x99.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled-300x29.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled-768x74.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/antilockout-disabled-500x48.png 500w\" sizes=\"auto, (max-width: 1060px) 100vw, 1060px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u7981\u7528\u9632\u9501\u5b9a\u89c4\u5219<\/p>\n<h3 style=\"text-align: justify;\">\u53cd\u6b3a\u9a97\u89c4\u5219<\/h3>\n<p style=\"text-align: justify;\">pfSense\u4f7f\u7528pf\u4e2d\u7684antispoof\u529f\u80fd\u6765\u963b\u6b62\u6b3a\u9a97\u6027\u6d41\u91cf\u3002 \u8fd9\u63d0\u4f9b\u4e86RFC3704\u4e2d\u5b9a\u4e49\u7684\u5355\u64ad\u53cd\u5411\u8def\u5f84\u8f6c\u53d1\uff08uRPF\uff09\u529f\u80fd\u3002\u9632\u706b\u5899\u6839\u636e\u5176\u8def\u7531\u8868\u68c0\u67e5\u6bcf\u4e2a\u5206\u7ec4\uff0c\u5e76\u4e14\u5982\u679c\u8fde\u63a5\u5c1d\u8bd5\u6765\u81ea\u9632\u706b\u5899\u5df2\u77e5\u7684\u7f51\u7edc\u4e0a\u4e0d\u9a7b\u7559\u63a5\u53e3\u4e0a\u7684\u6e90IP\u5730\u5740\uff0c \u5b83\u5c06\u88ab\u4e22\u5f03\u3002 \u4f8b\u5982\uff0c\u5e26\u6709\u5185\u90e8\u7f51\u7edc\u6e90IP\u5730\u5740\u7684\u5e7f\u57df\u7f51\u5305\u5c06\u88ab\u4e22\u5f03\u3002 \u5185\u90e8\u7f51\u7edc\u4e0a\u53d1\u8d77\u7684\u4efb\u4f55\u5185\u5bb9\u90fd\u4e0d\u5728\u5185\u90e8\u7f51\u7edc\u4e0a\u7684\u6e90IP\u5730\u5740\u5c06\u88ab\u4e22\u5f03\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u963b\u6b62\u4e13\u7528\u7f51\u7edc<\/h3>\n<p style=\"text-align: justify;\">WAN\u63a5\u53e3\u4e0a\u7684\u201c<strong>\u963b\u6b62\u4e13\u7528\u7f51\u7edc<\/strong>\u201d\u9009\u9879\u4f1a\u81ea\u52a8\u4e3aRFC 1918\u5b50\u7f51\u8bbe\u7f6e\u963b\u6b62\u89c4\u5219\u3002 \u9664\u975e\u5728WAN\u4e0a\u4f7f\u7528\u4e13\u7528IP\u7a7a\u95f4\uff0c\u5426\u5219\u542f\u7528\u6b64\u9009\u9879\u3002 \u8fd9\u53ea\u9002\u7528\u4e8eWAN\u7aef\u53d1\u8d77\u7684\u6d41\u91cf\u3002 \u672c\u5730\u5ba2\u6237\u7aef\u4ecd\u53ef\u80fd\u4ece\u9632\u706b\u5899\u5185\u90e8\u5230\u8fbe\u4e13\u7528\u7f51\u7edc\u4e0a\u7684\u4e3b\u673a\u3002 \u6b64\u9009\u9879\u53ef\u7528\u4e8e\u4efb\u4f55\u63a5\u53e3\uff0c\u4f46\u901a\u5e38\u4ec5\u7528\u4e8eWAN\u7c7b\u578b\u63a5\u53e3\u3002 \u53ef\u4ee5\u624b\u52a8\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u7684\u89c4\u5219\uff0c\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u5305\u542bRFC 1918\u5b50\u7f51\u7684\u522b\u540d\uff0c\u5e76\u5728\u63a5\u53e3\u89c4\u5219\u7684\u9876\u90e8\u6dfb\u52a0\u4e00\u4e2a\u9632\u706b\u5899\u89c4\u5219\u6765\u963b\u6b62\u4e0e\u8be5\u522b\u540d\u5339\u914d\u7684\u6e90\u7684\u6d41\u91cf\uff0c\u4ece\u800c\u963b\u6b62\u63a5\u53e3\u4e0a\u7684\u4e13\u7528\u7f51\u7edc\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u963b\u6b62Bogon\u7f51\u7edc<\/h3>\n<p style=\"text-align: justify;\">Bogon\u7f51\u7edc\u662f\u90a3\u4e9b\u6c38\u8fdc\u4e0d\u5e94\u8be5\u5728\u4e92\u8054\u7f51\u4e0a\u770b\u5230\u7684\u7f51\u7edc\uff0c\u5305\u62ec\u4fdd\u7559\u548c\u672a\u5206\u914d\u7684IP\u5730\u5740\u7a7a\u95f4\u3002 \u6765\u81ea\u8fd9\u4e9b\u7f51\u7edc\u7684\u6d41\u91cf\u7684\u5b58\u5728\u53ef\u80fd\u8868\u660e\u6b3a\u9a97\u6027\u6d41\u91cf\u6216\u672a\u88ab\u4f7f\u7528\u7684\u5b50\u7f51\u88ab\u52ab\u6301\u4ee5\u4f9b\u6076\u610f\u4f7f\u7528\u3002 pfSense\u63d0\u4f9b\u4e86\u4e24\u4e2abogons\u5217\u8868\uff0c\u6839\u636e\u9700\u8981\u8fdb\u884c\u66f4\u65b0\uff0c\u4e00\u4e2a\u7528\u4e8eIPv4 bogon\u7f51\u7edc\uff0c\u4e00\u4e2a\u7528\u4e8eIPv6 bogon\u7f51\u7edc\u3002 \u5982\u679c\u542f\u7528Block bogon\u7f51\u7edc\uff0c\u5219\u9632\u706b\u5899\u5c06\u5728\u6bcf\u4e2a\u6708\u7684\u7b2c\u4e00\u5929\u4ecefiles.pfsense.org\u83b7\u53d6\u66f4\u65b0\u7684bogons\u5217\u8868\u3002 \u8be5\u811a\u672c\u5728\u5f53\u5730\u65f6\u95f4\u51cc\u66683\u70b9\u8fd0\u884c\u3002 \u8fd9\u4e2a\u5217\u8868\u5e76\u4e0d\u7ecf\u5e38\u6539\u53d8\uff0c\u65b0\u7684IP\u5730\u5740\u5206\u914d\u5728\u5b9e\u9645\u4f7f\u7528\u4e4b\u524d\u7684\u51e0\u4e2a\u6708\u5df2\u4ece\u79fb\u52a8\u5217\u8868\u4e2d\u5220\u9664\uff0c\u6240\u4ee5\u6bcf\u6708\u66f4\u65b0\u5c31\u8db3\u591f\u4e86\u3002 \u5982\u679c\u5fc5\u987b\u66f4\u9891\u7e41\u5730\u66f4\u65b0\u5217\u8868\uff0c\u8bf7\u5728\u201c\u7cfb\u7edf&gt;\u9ad8\u7ea7\u8bbe\u7f6e\u201d\u7684\u201c\u9632\u706b\u5899\u548cNAT\u201d\u9009\u9879\u5361\u4e0a\u66f4\u6539\u66f4\u65b0\u9891\u7387\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1aIPv6\u7684\u5217\u8868\u975e\u5e38\u5e9e\u5927\uff0c\u5982\u679c\u7cfb\u7edf\u4e2d\u6ca1\u6709\u8db3\u591f\u7684\u5185\u5b58\uff0c\u6216\u8005\u8868\u9879\u7684\u6700\u5927\u6570\u91cf\u4e0d\u8db3\u4ee5\u5305\u542b\u5b83\uff0c\u5219\u53ef\u80fd\u65e0\u6cd5\u52a0\u8f7d\u3002<\/p>\n<p style=\"text-align: justify;\">\u786e\u4fdd\u9632\u706b\u5899\u53ef\u4ee5\u89e3\u6790DNS\u4e3b\u673a\u540d\uff0c\u5426\u5219\u66f4\u65b0\u5c06\u5931\u8d25\u3002 \u8981\u786e\u4fdd\u9632\u706b\u5899\u89e3\u6790DNS\uff0c\u8bf7\u6d4f\u89c8\u81f3\u7cfb\u7edf\u8bca\u65ad&gt; DNS\u67e5\u627e\uff0c\u7136\u540e\u5c1d\u8bd5\u89e3\u6790files.pfsense.org\u3002 \u5982\u679c\u53ef\u884c\uff0c\u5219\u8fdb\u5165\u7cfb\u7edf\u8bca\u65ad&gt;\u6d4b\u8bd5\u7aef\u53e3\u5e76\u5c1d\u8bd5\u8fde\u63a5\u5230files.pfsense.org\u768480\u7aef\u53e3\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1762\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org.png\" alt=\"\" width=\"1149\" height=\"537\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org.png 1149w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org-1024x479.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org-300x140.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org-768x359.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ping-files-pfsense-org-500x234.png 500w\" sizes=\"auto, (max-width: 1149px) 100vw, 1149px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><span class=\"caption-text\">\u6d4b\u8bd5Bogon\u66f4\u65b0\u7684\u8fde\u63a5\u6027<\/span><\/p>\n<h4 style=\"text-align: justify;\">\u5f3a\u5236bogons\u66f4\u65b0<\/h4>\n<p style=\"text-align: justify;\">\u7531\u4e8ebogon\u540d\u5355\u53d8\u5316\u76f8\u5bf9\u8f83\u5c11\uff0c\u6bcf\u6708\u66f4\u65b0\u7684bogon\u5df2\u7ecf\u8db3\u591f\u3002 \u4f46\u662f\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u624b\u52a8bogon\u66f4\u65b0\u7684\u60c5\u51b5\uff0c\u4f8b\u5982\uff0c\u7531\u4e8eDNS\u914d\u7f6e\u4e0d\u6b63\u786e\u5bfc\u81f4bogon\u66f4\u65b0\u5931\u8d25\u3002 \u5728<strong>\u7cfb\u7edf\u8bca\u65ad&gt;\u00a0\u8868<\/strong>\u4e2d\u901a\u8fc7\u9632\u706b\u5899Web\u754c\u9762\u6267\u884c\u66f4\u65b0\uff0c\u65b9\u6cd5\u662f\u9009\u62e9bogons\u6216bogonsv6\uff0c\u7136\u540e\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1763\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-refresh-1.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0<strong>\u66f4\u65b0\u3002<\/strong><\/p>\n<h3 style=\"text-align: justify;\">IPsec<\/h3>\n<p style=\"text-align: justify;\">\u5f53\u542f\u7528\u7ad9\u70b9\u5230\u7ad9\u70b9IPsec\u8fde\u63a5\u65f6\uff0c\u4f1a\u81ea\u52a8\u6dfb\u52a0\u89c4\u5219\uff0c\u5141\u8bb8\u8fdc\u7a0b\u96a7\u9053\u7aef\u70b9IP\u5730\u5740\u8bbf\u95eeUDP\u7aef\u53e3500\u548c4500\uff0c\u4ee5\u53ca\u7528\u4e8e\u8fde\u63a5\u7684WAN IP\u5730\u5740\u4e0a\u7684ESP\u534f\u8bae\u3002 \u5f53\u542f\u7528\u79fb\u52a8\u5ba2\u6237\u7aef\u7684IPsec\u65f6\uff0c\u5141\u8bb8\u76f8\u540c\u7684\u6d41\u91cf\uff0c\u4f46\u662f\u6765\u81ea\u4efb\u4f55\u6765\u6e90\uff0c\u800c\u4e0d\u662f\u7279\u5b9a\u7684\u6e90\u5730\u5740\u3002<\/p>\n<p style=\"text-align: justify;\">\u7531\u4e8e\u7b56\u7565\u8def\u7531\u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u4efb\u4f55\u5339\u914d\u6307\u5b9a\u7f51\u5173\u7684\u89c4\u5219\u7684\u6d41\u91cf\u90fd\u5c06\u88ab\u5f3a\u5236\u4f20\u8f93\u5230Internet\uff0c\u5e76\u7ed5\u8fc7IPsec\u5904\u7406\u3002 \u89c4\u5219\u4f1a\u81ea\u52a8\u6dfb\u52a0\u4ee5\u53d6\u6d88\u6d41\u5411\u8fdc\u7a0b***\u5b50\u7f51\u6d41\u91cf\u7684\u7b56\u7565\u8def\u7531\uff0c\u4f46\u5e76\u4e0d\u603b\u662f\u5177\u6709\u9884\u671f\u7684\u6548\u679c\u3002 \u8981\u7981\u7528\u81ea\u52a8<strong>\u5426\u5b9a\u89c4\u5219<\/strong>\uff0c\u5e76\u5728\u5185\u90e8\u63a5\u53e3\u4e0a\u7684\u89c4\u5219\u9876\u90e8\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\uff0c\u4ee5\u5c06\u6d41\u91cf\u4f20\u9012\u5230\u6ca1\u6709\u7f51\u5173\u96c6\u7684***\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u63d0\u793a\uff1a\u81ea\u52a8\u6dfb\u52a0\u7684IPsec\u89c4\u5219\u5c06\u5728IPsec\u4e2d\u8fdb\u4e00\u6b65\u8ba8\u8bba\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9ed8\u8ba4\u62d2\u7edd\u89c4\u5219<\/h3>\n<p style=\"text-align: justify;\">\u4e0d\u7b26\u5408\u4efb\u4f55\u7528\u6237\u5b9a\u4e49\u7684\u89c4\u5219\u6216\u5176\u4ed6\u81ea\u52a8\u6dfb\u52a0\u7684\u89c4\u5219\u5219\u5c06\u88ab\u9ed8\u8ba4\u62d2\u7edd\u89c4\u5219\u62d2\u7edd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9632\u706b\u5899 \u9632\u706b\u5899\u57fa\u7840 \u5165\u53e3\u8fc7\u6ee4 \u51fa\u53e3\u8fc7\u6ee4 \u7b80\u4ecb\u9632\u706b\u5899\u89c4\u5219 \u522b\u540d \u9632\u706b\u5899\u89c4\u5219\u914d\u7f6e\u5b9e\u4f8b &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=171\">\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":[226],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-226"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/171","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=171"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}