{"id":153,"date":"2018-07-29T08:34:47","date_gmt":"2018-07-29T00:34:47","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=153"},"modified":"2020-09-01T16:22:10","modified_gmt":"2020-09-01T08:22:10","slug":"pfsense-book%e4%b9%8b%e7%a1%ac%e4%bb%b6%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=153","title":{"rendered":"pfSense book\u4e4b\u786c\u4ef6\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"<p style=\"text-align: justify;\">pfSense\u00ae\u8f6f\u4ef6\u53d1\u884c\u7248\u4e0eFreeBSD\u652f\u6301\u7684\u5927\u591a\u6570\u786c\u4ef6\u517c\u5bb9\u3002pfSense 2.4.x\u548c\u66f4\u9ad8\u7248\u672c\u4e0e64\u4f4d(amd64\uff0cx86-64)\u4f53\u7cfb\u7ed3\u6784\u786c\u4ef6\u548c\u57fa\u4e8eNetgate ARM\u7684\u9632\u706b\u5899\u517c\u5bb9\u3002pfSense 2.3.x\u53ca\u66f4\u4f4e\u7248\u672c\u4e0e32\u4f4d(i386\uff0cx86)\u548c64\u4f4d(amd64\uff0cx86-64)\u4f53\u7cfb\u7ed3\u6784\u786c\u4ef6\u517c\u5bb9\u3002\u76ee\u524d\u4e0d\u652f\u6301\u8bf8\u5982ARM(Netgate\u51fa\u552e\u7684\u8bbe\u5907\u9664\u5916)\u3001PowerPC\u3001MIPS\u3001SPARC\u7b49\u5907\u7528\u786c\u4ef6\u4f53\u7cfb\u7ed3\u6784\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u786c\u4ef6\u517c\u5bb9\u6027<\/h1>\n<p style=\"text-align: justify;\">\u786e\u4fdd\u786c\u4ef6\u4e0epfSense\u8f6f\u4ef6\u517c\u5bb9\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ecepfSense\u5546\u5e97\u8d2d\u4e70\u786c\u4ef6\u3002 \u5546\u5e97\u4e2d\u7684\u786c\u4ef6\u4f1a\u5728\u6bcf\u4e2apfSense\u8f6f\u4ef6\u7248\u672c\u4e2d\u8fdb\u884c\u6d4b\u8bd5\uff0c\u5e76\u9488\u5bf9\u6027\u80fd\u8fdb\u884c\u4e86\u8c03\u6574\u3002<\/p>\n<p style=\"text-align: justify;\">\u5bf9\u4e8eDIY\u89e3\u51b3\u65b9\u6848\uff0c\u9605\u8bfbFreeBSD\u786c\u4ef6\u8bf4\u660e\u662f\u786e\u5b9a\u786c\u4ef6\u517c\u5bb9\u6027\u7684\u6700\u4f73\u65b9\u6cd5\u3002pfSense2.4.5-RELEASE-p1\u57fa\u4e8e<a class=\"reference external\" href=\"https:\/\/mail.google.com\/mail\/?view=cm&amp;fs=1&amp;tf=1&amp;to=11.3-STABLE%40r357046\" target=\"_blank\" rel=\"noopener noreferrer\">11 .3-STABLE\u00a0@\u00a0r357046<\/a>\uff0c\u56e0\u6b64\u53ef<a class=\"reference external\" href=\"http:\/\/www.freebsd.org\/releases\/10.3R\/hardware.html\">\u5728FreeBSD\u7f51\u7ad9\u4e0a\u7684\u786c\u4ef6\u8bf4\u660e\u4e2d<\/a>\u627e\u5230\u517c\u5bb9\u7684\u786c\u4ef6\u00a0\u3002\u53e6\u4e00\u4e2a\u65b9\u6cd5\u662f\u67e5\u8be2<a class=\"reference external\" href=\"http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/faq\/hardware.html\">FreeBSD FAQ<\/a>\u7684<a class=\"reference external\" href=\"http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/faq\/hardware.html\">\u786c\u4ef6\u90e8\u5206<\/a>\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7f51\u5361<\/h2>\n<p style=\"text-align: justify;\">FreeBSD\u652f\u6301\u5404\u79cd\u5404\u6837\u7684\u6709\u7ebf\u4ee5\u592a\u7f51\u5361(NIC)\uff0c\u5927\u90e8\u5206\u90fd\u4e0epfSense\u517c\u5bb9\u3002\u4f46\u662f\uff0c\u5e76\u975e\u6240\u6709\u7684\u7f51\u5361\u90fd\u662f\u76f8\u540c\u7684\u3002\u4e0d\u540c\u7684\u5236\u9020\u5546\u4e4b\u95f4\u7684\u786c\u4ef6\u8d28\u91cf\u5dee\u522b\u5f88\u5927\u3002<\/p>\n<p style=\"text-align: justify;\">\u6211\u4eec\u63a8\u8350\u4f7f\u7528\u82f1\u7279\u5c14PRO\/1000 1Gb\u548cPRO\/10GbE 10Gb\u7f51\u5361\uff0c\u56e0\u4e3a\u5b83\u4eec\u5728FreeBSD\u4e2d\u6709\u7a33\u5b9a\u7684\u9a71\u52a8\u7a0b\u5e8f\u652f\u6301\uff0c\u800c\u4e14\u6027\u80fd\u975e\u5e38\u597d\u3002 pfSense\u5546\u5e97\u4e2d\u9500\u552e\u7684\u5927\u591a\u6570\u786c\u4ef6\u90fd\u5305\u542bIntel \u7f51\u5361\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728FreeBSD\u652f\u6301\u7684\u5404\u79cd\u5176\u4ed6PCIe\/PCI\u5361\u4e2d\uff0c\u4e00\u4e9b\u5de5\u4f5c\u6b63\u5e38\uff0c\u5176\u4ed6\u53ef\u80fd\u6709\u95ee\u9898\uff0c\u5982VLAN\u4e0d\u80fd\u6b63\u5e38\u5de5\u4f5c\uff0c\u4e0d\u80fd\u8bbe\u7f6e\u901f\u5ea6\u6216\u53cc\u5de5\uff0c\u6216\u6027\u80fd\u5dee\u7b49\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cFreeBSD\u53ef\u80fd\u652f\u6301\u4e00\u4e2a\u7279\u5b9a\u7684\u7f51\u5361\uff0c\u4f46\u662f\u5728\u4e0e\u7279\u5b9a\u7684\u4e3b\u677f\u82af\u7247\u7ec4\u642d\u914d\u65f6\uff0c\u9a71\u52a8\u7a0b\u5e8f\u7684\u652f\u6301\u53ef\u80fd\u4f1a\u5f88\u5dee\u3002\u5982\u679c\u6709\u7591\u95ee\uff0c\u8bf7\u5728pfSense\u8bba\u575b\u4e2d\u641c\u7d22\u5176\u4ed6\u4eba\u4f7f\u7528\u76f8\u540c\u6216\u7c7b\u4f3c\u786c\u4ef6\u7684\u7ecf\u9a8c\u3002\u5f53\u9632\u706b\u5899\u8981\u6c42\u4f7f\u7528VLAN\u65f6\uff0c\u8bf7\u9009\u62e9\u5728\u786c\u4ef6\u4e2d\u652f\u6301VLAN\u5904\u7406\u7684\u9002\u914d\u5668<\/p>\n<h3 style=\"text-align: justify;\">USB\u7f51\u5361<\/h3>\n<p style=\"text-align: justify;\">\u6211\u4eec\u4e0d\u5efa\u8bae\u4f7f\u7528\u4efb\u4f55\u54c1\u724c\/\u578b\u53f7\u7684USB\u7f51\u5361\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u53ef\u9760\u6027\u5dee\uff0c\u6027\u80fd\u4e5f\u4e0d\u7a33\u5b9a\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u65e0\u7ebf\u7f51\u5361<\/h3>\n<p style=\"text-align: justify;\">pfSense\u5185\u7f6e\u65e0\u7ebf\u529f\u80fd\uff0c\u53ef\u4ee5\u8ba9\u8fd0\u884cpfSense\u8f6f\u4ef6\u7684\u9632\u706b\u5899\u505a\u4e3a\u65e0\u7ebf\u63a5\u5165\u70b9\uff0c\u6216\u4f7f\u7528\u65e0\u7ebf802.11\u8fde\u63a5\u4f5c\u4e3aWAN\u8fde\u63a5\uff0c\u6216\u4e24\u8005\u517c\u800c\u6709\u4e4b\u3002<\/p>\n<footer>\n<h1 style=\"text-align: justify;\">\u6700\u4f4e\u786c\u4ef6\u8981\u6c42<\/h1>\n<p style=\"text-align: justify;\">\u6ee1\u8db3pfSense 2.4.2-RELEASE-p1\u7248\u672c\u8fd0\u884c\u7684\u6700\u4f4e\u786c\u4ef6\u8981\u6c42\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>CPU \uff1a600 MHz\u6216\u66f4\u5feb<\/li>\n<li>RAM \uff1a512 MB\u6216\u66f4\u591a<\/li>\n<li>4 GB\u6216\u66f4\u5927\u7684\u78c1\u76d8\u9a71\u52a8\u5668\uff08SSD\uff0cHDD\u7b49\uff09<\/li>\n<li>\u4e00\u4e2a\u6216\u591a\u4e2a\u517c\u5bb9\u7684\u7f51\u5361<\/li>\n<li>\u7528\u4e8e\u521d\u59cb\u5b89\u88c5\u7684\u53ef\u542f\u52a8U\u76d8\u6216CD \/ DVD-ROM<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u6700\u4f4e\u8981\u6c42\u4e0d\u9002\u4e8e\u6240\u6709\u73af\u5883\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u786c\u4ef6\u9009\u62e9<\/h1>\n<p style=\"text-align: justify;\">\u5c06\u5f00\u653e\u6e90\u4ee3\u7801\u64cd\u4f5c\u7cfb\u7edf\u4e0e\u672a\u7ecf\u6d4b\u8bd5\u7684\u786c\u4ef6\u4e00\u8d77\u4f7f\u7528\u53ef\u80fd\u4f1a\u4ea7\u751f\u786c\u4ef6\/\u8f6f\u4ef6\u51b2\u7a81\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u9884\u9632\u786c\u4ef6\u95ee\u9898<\/h2>\n<h3 style=\"text-align: justify;\">\u4f7f\u7528\u5b98\u65b9pfSense\u786c\u4ef6<\/h3>\n<p style=\"text-align: justify;\">\u6211\u4eec\u5f3a\u70c8\u5efa\u8bae\u60a8\u4f7f\u7528pfSense\u5546\u5e97\u7684\u5b98\u65b9\u786c\u4ef6\u3002\u00a0\u5b98\u65b9\u786c\u4ef6\u5e73\u53f0\u7ecf\u8fc7\u4e86\u5f7b\u5e95\u7684\u6d4b\u8bd5\u548c\u9a8c\u8bc1\uff0c\u80fd\u786e\u4fdd\u7cfb\u7edf\u8fd0\u884c\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u501f\u9274\u522b\u4eba\u7684\u7ecf\u9a8c<\/h3>\n<p style=\"text-align: justify;\">\u4ed6\u4eba\u7684\u7ecf\u9a8c\u662f\u5b9d\u8d35\u7684\u6e90\u77e5\u8bc6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebf\u7814\u7a76pfSense\u548c\u786c\u4ef6\u517c\u5bb9\u6027\u6765\u627e\u5230\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u5c24\u5176\u662f\u5728\u00a0<a class=\"reference external\" href=\"https:\/\/forum.netgate.com\/\">pfSense\u8bba\u575b<\/a>\u4e0a\u3002\u6545\u969c\u62a5\u544a\u4e0d\u4e00\u5b9a\u88ab\u8ba4\u4e3a\u662f\u6743\u5a01\u7684\uff0c\u56e0\u4e3a\u9664\u4e86\u786c\u4ef6\u4e0d\u517c\u5bb9\u4ee5\u5916\uff0c\u5176\u4ed6\u95ee\u9898\u4e5f\u53ef\u80fd\u5f15\u8d77\u95ee\u9898\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u6240\u6d89\u53ca\u7684\u786c\u4ef6\u6765\u81ea\u4e3b\u8981\u5236\u9020\u5546\uff0c\u53ef\u4ee5\u5c06\u54c1\u724c\uff0c\u578b\u53f7\u4e0e<code class=\"docutils literal notranslate\"><span class=\"pre\">site:pfsense.org<\/span><\/code>\u505a\u4e3a\u5173\u952e\u5b57\u8fdb\u884c\u641c\u7d22\uff0c\u5219\u53ef\u4ee5\u5728pfSense.org\u7f51\u7ad9\u4e0a\u641c\u7d22\u76f8\u5173\u7684\u7528\u6237\u4f53\u9a8c\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528<code class=\"docutils literal notranslate\"><span class=\"pre\">FreeBSD<\/span><\/code>\u505a\u4e3a\u5173\u952e\u5b57\u8fdb\u884c\u76f8\u540c\u7684\u641c\u7d22\uff0c\u53ef\u80fd\u4f1a\u5e26\u6765\u66f4\u591a\u6709\u76ca\u7684\u7ecf\u9a8c\u3002<\/p>\n<div id=\"naming-conventions\" class=\"section\" style=\"text-align: justify;\">\n<h2>\u547d\u540d\u7ea6\u5b9a<\/h2>\n<\/div>\n<p style=\"text-align: justify;\">\u5728\u672c\u4e66\u4e2d\uff0c\u6211\u4eec\u5c0664\u4f4d\u786c\u4ef6\u4f53\u7cfb\u67b6\u6784\u79f0\u4e3a\u201camd64\u201d\uff0c\u8fd9\u662fFreeBSD\u4f7f\u7528\u7684\u4f53\u7cfb\u67b6\u6784\u3002 \u82f1\u7279\u5c14\u91c7\u7528\u4e86AMD\u4e3ax86-64\u521b\u5efa\u7684\u67b6\u6784\uff0c\u56e0\u6b64amd64\u662f\u6307\u6240\u6709x86 \u768464\u4f4dCPU\u3002<\/p>\n<div class=\"document\" style=\"text-align: justify;\" role=\"main\">\n<div>\n<div id=\"hardware-selection\" class=\"section\">\n<div id=\"preventing-hardware-headaches\" class=\"section\">\n<div id=\"search-for-the-experiences-of-others\" class=\"section\">\n<div id=\"naming-conventions\" class=\"section\">\n<p>NETGATE\u8bbe\u5907\u578b\u53f7\uff0c\u5305\u62ec\u57fa\u4e8e\u786c\u4ef6\u7684<code class=\"docutils literal notranslate\"><span class=\"pre\">armv6<\/span><\/code>\u67b6\u6784\uff0c\u4e5f\u53eb<code class=\"docutils literal notranslate\"><span class=\"pre\">arm<\/span><\/code>\u548c<code class=\"docutils literal notranslate\"><span class=\"pre\">aarch64<\/span><\/code>\uff0c\u4e5f\u53eb<code class=\"docutils literal notranslate\"><span class=\"pre\">arm64<\/span><\/code>\u3002\u8fd9\u4e9b\u72ec\u7279\u4f53\u7cfb\u7ed3\u6784\u7684\u7279\u5b9a\u9879\u76ee\u5c06\u5728\u5fc5\u8981\u65f6\u88ab\u53d6\u6d88\uff0c\u4f46\u901a\u7528\u672f\u8bedARM\u53ef\u80fd\u88ab\u8ba4\u4e3a\u9002\u7528\u4e8e\u4e24\u8005\uff0c\u4f46\u4ec5\u9002\u7528\u4e8eNetgate\u51fa\u552e\u7684\u57fa\u4e8eARM\u7684\u7279\u5b9a\u8bbe\u5907\uff0c\u4f8b\u5982SG-1100\u548cSG-3100\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h1 style=\"text-align: justify;\">\u786c\u4ef6\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u786e\u5b9apfSense\u7684\u786c\u4ef6\u914d\u7f6e\uff0c\u6240\u9700\u7684\u541e\u5410\u91cf\u548c\u5fc5\u8981\u7684\u529f\u80fd\u662f\u786c\u4ef6\u9009\u62e9\u7684\u4e3b\u8981\u56e0\u7d20\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7f51\u7edc\u541e\u5410\u91cf<\/h2>\n<p style=\"text-align: justify;\">\u5982\u679c\u662f\u4f4e\u4e8e100 Mbps\u7684\u672a\u52a0\u5bc6\u541e\u5410\u91cf\uff0c\u6700\u4f4e\u786c\u4ef6\u914d\u7f6e\u5c31\u53ef\u4ee5\u6ee1\u8db3\u8981\u6c42\u3002 \u8981\u6ee1\u8db3\u66f4\u9ad8\u7684\u541e\u5410\u91cf\u8981\u6c42\uff0c\u8bf7\u6839\u636e\u5e7f\u6cdb\u7684\u6d4b\u8bd5\u548c\u90e8\u7f72\u7ecf\u9a8c\u5e76\u9075\u5faa\u4ee5\u4e0b\u6307\u5357\u3002<\/p>\n<p style=\"text-align: justify;\"><a class=\"reference external\" href=\"https:\/\/www.netgate.com\/products\/appliances\">Netgate Store<\/a>\u63d0\u4f9b\u4e86\u672c\u8282\u4e2d\u5f15\u7528\u7684\u786c\u4ef6\u3002\u786c\u4ef6\u7684\u4e00\u822c\u89c4\u683c\u53ef\u5728<a class=\"reference internal\" href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/book\/hardware\/hardware-sizing-guidance.html#table-pfsense-hardware\"><span class=\"std std-ref\">pfSense\u786c\u4ef6<\/span><\/a>\u8868\u4e2d\u627e\u5230\u00a0\u3002\u6807\u6709\u201c*\u201d\u7684\u7f51\u7edc\u63a5\u53e3\u662f\u96c6\u6210\u7684\u4ea4\u6362\u5f0f\u4ee5\u592a\u7f51\u7aef\u53e3\u3002\u7528\u201cSFP\u201d\u5236\u6210\u7684\u63a5\u53e3\u9700\u8981SFP\u6a21\u5757\u3002\u67d0\u4e9b\u578b\u53f7\u53ef\u80fd\u8fd8\u63d0\u4f9b\u5176\u4ed6\u6269\u5c55\u5361\uff0c\u8bf7\u67e5\u770b\u00a0<a class=\"reference external\" href=\"https:\/\/www.netgate.com\/products\/appliances\">Netgate Store<\/a>\u9875\u9762\u4ee5\u83b7\u53d6\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<div class=\"wy-table-responsive\" style=\"text-align: justify;\">\n<table id=\"id1\" class=\"docutils align-default\">\n<caption><span style=\"color: #ff6600;\"><strong><span class=\"caption-text\">pfSense\u786c\u4ef6<\/span><\/strong><\/span><\/caption>\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr class=\"row-odd\">\n<th class=\"head\"><strong>\u8bbe\u5907\u578b\u53f7<\/strong><\/th>\n<th class=\"head\"><strong>\u00a0 \u00a0 \u5904\u7406\u5668<\/strong><\/th>\n<th class=\"head\"><strong>\u65f6\u949f\uff08\u6838\u5fc3\uff09<\/strong><\/th>\n<th class=\"head\"><strong>\u8bb0\u5fc6\u4f53\uff08GB\uff09<\/strong><\/th>\n<th class=\"head\"><strong>\u7f51\u5361\u901f\u5ea6<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-even\">\n<td>SG-1100<\/td>\n<td>ARM Cortex A53<\/td>\n<td>1.2 GHz\uff082\uff09<\/td>\n<td>1\u4e2a<\/td>\n<td>3x1G *<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>SG-3100<\/td>\n<td>ARMv7 Cortex-A9<\/td>\n<td>1.6 GHz\uff082\uff09<\/td>\n<td>2<\/td>\n<td>2x1G\uff0c4x1G *<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>SG-5100<\/td>\n<td>\u82f1\u7279\u5c14\u51cc\u52a8C3558<\/td>\n<td>2.2 GHz\uff084\uff09<\/td>\n<td>4-16<\/td>\n<td>6x1G<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-7100<\/td>\n<td>\u82f1\u7279\u5c14\u51cc\u52a8C3558<\/td>\n<td>2.2 GHz\uff084\uff09<\/td>\n<td>8-24<\/td>\n<td>2\u4e2a10G SFP\uff0c8\u4e2a1G *<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>XG-1537<\/td>\n<td>\u82f1\u7279\u5c14\u81f3\u5f3aDE D-1537<\/td>\n<td>1.7 GHz\uff088\uff09<\/td>\n<td>8-32<\/td>\n<td>2\u4e2a10G SFP\uff0c2\u4e2a1G<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-1541<\/td>\n<td>\u82f1\u7279\u5c14\u81f3\u5f3aDE D-1541<\/td>\n<td>2.1 GHz\uff088\uff09<\/td>\n<td>16-32<\/td>\n<td>2x10G\uff0c2x1G<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">\u4e0b\u8868\u6bd4\u8f83\u4e86\u51e0\u79cd\u786c\u4ef6\u578b\u53f7\u4e4b\u95f4\u7684\u541e\u5410\u91cf\u3002\u8be5\u8868\u5305\u542b\u6709\u6548\u8d1f\u8f7d\u5927\u5c0f\u4e3a1460\u5b57\u8282\u7684TCP\u6570\u636e\u5305\u7684\u541e\u5410\u91cf\uff0c\u8be5\u541e\u5410\u91cf\u7531iPerf3\u00a0<code class=\"docutils literal notranslate\"><span class=\"pre\">pf<\/span><\/code>\u542f\u7528\u3002\u5728\u6240\u6709\u53ef\u7528\u7684\u57fa\u672c\u6a21\u578b\u7aef\u53e3\u4e0a\u6d4b\u8bd5\u4e86\u901f\u5ea6\u3002\u8fd9\u4e9b\u6570\u5b57\u5f80\u5f80\u66f4\u5927\uff0c\u56e0\u4e3a\u8fd9\u662f\u6700\u4f73\u60c5\u51b5\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5bf9\u4e8e\u5178\u578b\u76841500\u5b57\u8282MTU\u94fe\u8def\uff0c\u6240\u6709\u6570\u636e\u5305\u5747\u4e3a\u5168\u5c3a\u5bf8\u3002<\/p>\n<div class=\"admonition warning\" style=\"text-align: justify;\">\n<p class=\"admonition-title\">\u6ce8\u610f\uff1a\u4ee5\u4e0b\u6570\u5b57\u662f\u6b63\u5728\u8fdb\u884c\u7684\u6d4b\u8bd5\u7684\u793a\u4f8b\u7ed3\u679c\uff0c\u4e0d\u80fd\u51c6\u786e\u53cd\u6620\u6bcf\u4e2a\u8bbe\u5907\u7684\u5168\u90e8\u6f5c\u5728\u541e\u5410\u91cf\u3002<\/p>\n<\/div>\n<div class=\"wy-table-responsive\" style=\"text-align: justify;\">\n<table id=\"id2\" class=\"docutils align-default\">\n<caption><strong><span class=\"caption-text\" style=\"color: #ff6600;\">\u5404\u79cdpfSense\u8bbe\u5907\u6700\u5927\u541e\u5410\u91cf(1460\u5b57\u8282\u6570\u636e\u5305)<\/span><\/strong><\/caption>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr class=\"row-odd\">\n<th class=\"head\"><strong>\u8bbe\u5907\u578b\u53f7<\/strong><\/th>\n<th class=\"head\"><strong>TCP-1460B<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-even\">\n<td>SG-1100<\/td>\n<td>656 Mbps<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>SG-3100<\/td>\n<td>2.44 Gbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>SG-5100<\/td>\n<td>3.65 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-7100<\/td>\n<td>6.81 Gbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>XG-1537<\/td>\n<td>14.48 Gbit \/ s<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-1541<\/td>\n<td>14.63 Gb \/\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">\u5728\u5b9e\u9645\u7684\u7f51\u7edc\u4e2d\uff0c\u6d41\u91cf\u53ef\u80fd\u5305\u542b\u5927\u5c0f\u4e0d\u540c\u7684\u6570\u636e\u5305\uff0c\u800c\u4e0d\u662f\u5168\u90e8\u8fd9\u4e48\u5927\uff0c\u4f46\u5b83\u5b8c\u5168\u53d6\u51b3\u4e8e\u73af\u5883\u548c\u6240\u6d89\u53ca\u6d41\u91cf\u7684\u7c7b\u578b\u3002IMIX\u6d4b\u8bd5\u56fe\u8fd1\u4f3c\u6df7\u5408\u6d41\u91cf\uff0c\u4f7f\u5176\u66f4\u63a5\u8fd1\u771f\u5b9e\u73af\u5883\u3002<\/p>\n<p style=\"text-align: justify;\">\u4e0b\u8868\u6bd4\u8f83\u4e86\u51e0\u79cd\u8bbe\u5907\u4e4b\u95f4\u7684\u541e\u5410\u91cf\uff0c\u4f46\u662f\u4f7f\u7528\u4e86IMIX\u6837\u5f0f\u7684\u6570\u636e\u5305\u5927\u5c0f\u6df7\u5408\u3002\u5728\u6240\u6709\u53ef\u7528\u7684\u8bbe\u5907\u7aef\u53e3\u4e0a\u6d4b\u8bd5\u4e86\u901f\u5ea6\u3002\u7531\u4e8e\u5904\u7406\u8f83\u5c0f\u7684\u6570\u636e\u5305\u4f1a\u589e\u52a0\u8d1f\u8f7d\uff0c\u56e0\u6b64\u8fd9\u4e9b\u6570\u5b57\u5f80\u5f80\u4f1a\u66f4\u4f4e\u3002<\/p>\n<div class=\"wy-table-responsive\" style=\"text-align: justify;\">\n<table id=\"id3\" class=\"docutils align-default\">\n<caption><span style=\"color: #ff6600;\"><strong><span class=\"caption-text\">\u5404\u79cdpfSense\u8bbe\u5907\u6700\u5927\u541e\u5410\u91cf(IMIX)<\/span><\/strong><\/span><\/caption>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr class=\"row-odd\">\n<th class=\"head\"><strong>\u8bbe\u5907\u578b\u53f7<\/strong><\/th>\n<th class=\"head\"><strong>IMIX<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-even\">\n<td>SG-1100<\/td>\n<td>190 Mbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>SG-3100<\/td>\n<td>1.04 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>SG-5100<\/td>\n<td>1.84 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-7100<\/td>\n<td>1.85 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>XG-1537<\/td>\n<td>5.00 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-1541<\/td>\n<td>6.10 Gbit \/\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"text-align: justify;\">\u4f5c\u4e3a\u4e00\u822c\u53c2\u8003\uff0c\u4e0b\u8868\u5217\u51fa\u4e86<span class=\"caption-text\">\u4e0d\u540c\u6570\u636e\u5305\u5927\u5c0f\u5728500,000 PPS\u4e0b\u7684\u541e\u5410\u91cf\u3002<\/span><\/p>\n<div class=\"wy-table-responsive\" style=\"text-align: justify;\">\n<table id=\"id4\" class=\"docutils align-default\">\n<caption><strong><span class=\"caption-text\" style=\"color: #ff6600;\">\u4e0d\u540c\u6570\u636e\u5305\u5927\u5c0f\u5728500,000 PPS\u4e0b\u7684\u541e\u5410\u91cf<\/span><\/strong><\/caption>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr class=\"row-odd\">\n<th class=\"head\"><strong>\u6570\u636e\u5305\u5927\u5c0f<\/strong><\/th>\n<th class=\"head\"><strong>500 Kpps\u541e\u5410\u91cf<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-even\">\n<td>64\u5b57\u8282<\/td>\n<td>244 Mbps\u7684<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>500\u5b57\u8282<\/td>\n<td>1.87 Gbps<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>1000\u5b57\u8282<\/td>\n<td>3.73 Gbps<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>1500\u5b57\u8282<\/td>\n<td>5.59 Gbps<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 style=\"text-align: justify;\"><span style=\"color: #000000; font-weight: bold;\">\u7f51\u5361\u6027\u80fd\u5dee\u5f02<\/span><\/h2>\n<p style=\"text-align: justify;\">\u7f51\u5361\u7684\u9009\u62e9\u5bf9\u6027\u80fd\u6709\u91cd\u5927\u5f71\u54cd\u3002 \u5ec9\u4ef7\u7684\u4f4e\u7aef\u5361\u6bd4Intel\u7b49\u9ad8\u8d28\u91cf\u7684\u7f51\u5361\u5360\u7528\u66f4\u591a\u7684CPU\u3002\u00a0\u5f71\u54cd\u9632\u706b\u5899\u541e\u5410\u91cf\u7684\u7b2c\u4e00\u4e2a\u74f6\u9888\u662fCPU\uff0c\u4f46\u6709\u65f6\u5019\u7f51\u5361\u66f4\u91cd\u8981\u3002 \u540c\u9891\u7387CPU\uff0c\u5982\u679c\u4f7f\u7528\u66f4\u597d\u7684\u7f51\u5361\uff0c\u541e\u5410\u91cf\u53ef\u4ee5\u660e\u663e\u63d0\u9ad8\u3002 \u76f8\u6bd4\u4e4b\u4e0b\uff0c\u5982\u679c\u4f7f\u7528\u4f4e\u52a3\u7684\u7f51\u5361\uff0c\u63d0\u5347CPU\u7684\u901f\u5ea6\u5374\u4e0d\u4f1a\u6210\u6bd4\u4f8b\u5730\u589e\u52a0\u541e\u5410\u91cf\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u9632\u706b\u5899\u5176\u4ed6\u529f\u80fd\u5f71\u54cd<\/h2>\n<p style=\"text-align: justify;\">\u5728\u9632\u706b\u5899\u4e0a\u542f\u7528\u7684\u529f\u80fd\u3001\u670d\u52a1\u548c\u63d2\u4ef6\u53ef\u80fd\u4f1a\u964d\u4f4e\u603b\u541e\u5410\u91cf\uff0c\u56e0\u4e3a\u5b83\u4eec\u4f1a\u6d88\u8017\u786c\u4ef6\u8d44\u6e90\u3002 \u62e6\u622a\u6216\u68c0\u67e5\u7f51\u7edc\u6d41\u91cf\u7684\u63d2\u4ef6\u5c24\u5176\u5982\u6b64\uff0c\u4f8b\u5982Snort\u6216Suricata\u3002<\/p>\n<p style=\"text-align: justify;\">\u5927\u591a\u6570\u57fa\u672c\u7cfb\u7edf\u529f\u80fd\u4e0d\u4f1a\u5f71\u54cd\u786c\u4ef6\u6027\u80fd\uff0c\u4f46\u4e0d\u6392\u9664\u5c11\u6570\u53ef\u80fd\u4f1a\u5bf9\u786c\u4ef6\u5229\u7528\u7387\u4ea7\u751f\u76f8\u5f53\u5927\u7684\u5f71\u54cd\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u72b6\u6001\u8868\u5360\u7528<\/h2>\n<p style=\"text-align: justify;\">\u72b6\u6001\u8868\u662f\u5b58\u50a8\u8ddf\u8e2a\u901a\u8fc7\u9632\u706b\u5899\u7684\u6d3b\u52a8\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\u3002 \u901a\u8fc7\u9632\u706b\u5899\u7684\u6bcf\u4e2a\u8fde\u63a5\u6d88\u8017\u4e24\u4e2a\u72b6\u6001\uff1a\u4e00\u4e2a\u662f\u8fdb\u5165\u9632\u706b\u5899\uff0c\u4e00\u4e2a\u662f\u79bb\u5f00\u9632\u706b\u5899\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u9632\u706b\u5899\u5fc5\u987b\u540c\u65f6\u5904\u7406100,000\u4e2aWeb\u670d\u52a1\u5668\u5ba2\u6237\u7aef\u8fde\u63a5\uff0c\u5219\u72b6\u6001\u8868\u5fc5\u987b\u80fd\u591f\u4fdd\u5b58200,000\u4e2a\u72b6\u6001\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u9700\u8981\u5927\u91cf\u5e76\u53d1\u8fde\u63a5\u7684\u9632\u706b\u5899\u5fc5\u987b\u6709\u8db3\u591f\u7684\u5185\u5b58\u6765\u4fdd\u5b58\u72b6\u6001\u8868\u3002 \u6bcf\u4e2a\u72b6\u6001\u9700\u8981\u5927\u7ea61 KB\u7684\u5185\u5b58\uff0c\u8ba1\u7b97\u5185\u5b58\u6d88\u8017\u975e\u5e38\u7b80\u5355\uff0c\u72b6\u6001\u8868\u8d8a\u5927\uff0c\u5c31\u8d8a\u6d88\u8017\u5185\u5b58\u3002\u00a0 \u9632\u706b\u5899\u672c\u8eab\u4ee5\u53ca\u5176\u4ed6\u670d\u52a1\u9700\u8981175-256 MB\u5185\u5b58\uff0c\u9632\u706b\u5899\u6240\u4f7f\u7528\u7684\u529f\u80fd\u8d8a\u591a\uff0c\u4e5f\u4f1a\u6d88\u8017\u66f4\u591a\u7684\u5185\u5b58\u3002<\/p>\n<table class=\"docutils\">\n<caption><strong><span style=\"color: #ff6600;\">\u72b6\u6001\u8868\u5185\u5b58\u6d88\u8017\u91cf<\/span><\/strong><\/caption>\n<colgroup>\n<col width=\"28%\" \/>\n<col width=\"34%\" \/>\n<col width=\"38%\" \/><\/colgroup>\n<thead valign=\"bottom\">\n<tr class=\"row-odd firstRow\">\n<th class=\"head\">\u72b6\u6001\u8868\u5927\u5c0f<\/th>\n<th class=\"head\">\u8fde\u63a5\u6570<\/th>\n<th class=\"head\">\u5185\u5b58\u4f7f\u7528\u91cf<\/th>\n<\/tr>\n<\/thead>\n<tbody valign=\"top\">\n<tr class=\"row-even\">\n<td>100,000<\/td>\n<td>50,000<\/td>\n<td>~97 MB<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>500,000<\/td>\n<td>250,000<\/td>\n<td>~488 MB<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>1,000,000<\/td>\n<td>500,000<\/td>\n<td>~976 MB<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>3,000,000<\/td>\n<td>1,500,000<\/td>\n<td>~2900 MB<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>8,000,000<\/td>\n<td>4,000,000<\/td>\n<td>~7800 MB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u5bf9\u7f51\u7edc\u9700\u6c42\u4fdd\u7559\u9002\u5f53\u7684\u5bcc\u4f59\u5f88\u6709\u5fc5\u8981\u3002 \u6839\u636e\u4e0a\u9762\u7684\u4fe1\u606f\uff0c100,000\u4e2a\u72b6\u6001\u5927\u7ea6\u6d88\u8017100MB\u7684\u5185\u5b58\uff0c100\u4e07\u4e2a\u72b6\u6001\u5927\u7ea6\u6d88\u80171GB\u7684\u5185\u5b58\u3002<\/p>\n<h2 style=\"text-align: justify;\">VPN<\/h2>\n<p style=\"text-align: justify;\">\u5ba2\u6237\u901a\u5e38\u4f1a\u95ee\u6709\u5173VPN\u7684\u95ee\u9898\u662f\u201c\u6211\u7684\u786c\u4ef6\u53ef\u4ee5\u5904\u7406\u591a\u5c11\u4e2a\u8fde\u63a5\uff1f\u201d\u00a0\u5728\u5927\u591a\u6570\u90e8\u7f72\u4e2d\uff0c\u8fd9\u662f\u6b21\u8981\u56e0\u7d20\uff0c\u56e0\u6b64\u8003\u8651\u8f83\u5c11\u3002\u8be5\u6307\u6807\u662f\u8fc7\u53bb\u5176\u4ed6\u4f9b\u5e94\u5546\u5982\u4f55\u83b7\u5f97VPN\u529f\u80fd\u8bb8\u53ef\u7684\u7ed3\u679c\uff0c\u5e76\u4e14\u5728pfSense\u4e2d\u6ca1\u6709\u7279\u5b9a\u7684\u76f4\u63a5\u7b49\u6548\u9879\u3002VPN\u7684\u786c\u4ef6\u9700\u6c42\u4e3b\u8981\u8003\u8651\u56e0\u7d20\u662fVPN\u6d41\u91cf\u7684\u6f5c\u5728\u541e\u5410\u91cf\u3002<\/p>\n<p style=\"text-align: justify;\">\u6240\u6709\u7c7b\u578b\u7684VPN\u52a0\u5bc6\u548c\u89e3\u5bc6\u7f51\u7edc\u6d41\u91cf\u90fd\u4f1a\u5360\u7528\u5927\u91cfCPU\u3002pfSense\u63d0\u4f9b\u4e86\u51e0\u79cd\u4e0eIPsec\u4e00\u8d77\u4f7f\u7528\u7684\u52a0\u5bc6\u9009\u9879\u3002\u5404\u79cd\u52a0\u5bc6\u7684\u6267\u884c\u65b9\u5f0f\u4e0d\u540c\uff0c\u9632\u706b\u5899\u7684\u6700\u5927\u541e\u5410\u91cf\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u52a0\u5bc6\u4ee5\u53ca\u8be5\u52a0\u5bc6\u662f\u5426\u53ef\u4ee5\u7531\u786c\u4ef6\u52a0\u901f\u3002<\/p>\n<p style=\"text-align: justify;\">\u786c\u4ef6\u52a0\u5bc6\u52a0\u901f\u5668\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u6700\u5927VPN\u541e\u5410\u91cf\uff0c\u5e76\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u6d88\u9664\u4e86\u52a0\u901f\u52a0\u5bc6\u4e4b\u95f4\u7684\u6027\u80fd\u5dee\u5f02\u3002\u4e0b\u8868\u7684\u541e\u5410\u91cf\u8bf4\u660e\u4e86\u4f7f\u7528ipsec\u65f6pfSense\u5b58\u50a8\u4e2d\u53ef\u7528\u7684\u5404\u79cd\u786c\u4ef6\u7684\u6700\u5927\u541e\u5410\u91cf\u3002<\/p>\n<p style=\"text-align: justify;\">\u5bf9\u4e8eIPsec\uff0c\u53ef\u4ee5\u901a\u8fc7\u677f\u8f7d\u52a0\u5bc6\u52a0\u901f\u5668\u6765\u52a0\u901f\u52a0\u5bc6\u89e3\u5bc6\u8fc7\u7a0b\u3002\u4f8b\u5982\uff0cAES-GCM\u901a\u8fc7AES-NI\u8fdb\u884c\u52a0\u901f\uff0c\u5b83\u4e0d\u4ec5\u66f4\u5feb\uff0c\u800c\u4e14\u4e0d\u9700\u8981\u5355\u72ec\u7684\u8eab\u4efd\u9a8c\u8bc1\u7b97\u6cd5\u3002\u4e0eOpenVPN\u76f8\u6bd4\uff0cIPsec\u7684\u6bcf\u6570\u636e\u5305OS\u5904\u7406\u5f00\u9500\u66f4\u5c11\uff0c\u56e0\u6b64\u76ee\u524dIPsec\u51e0\u4e4e\u603b\u662f\u6bd4OpenVPN\u66f4\u5feb\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u4ee5\u4e0b\u6570\u5b57\u662f\u6b63\u5728\u8fdb\u884c\u7684\u6d4b\u8bd5\u7684\u793a\u4f8b\u7ed3\u679c\uff0c\u5e76\u4e0d\u80fd\u51c6\u786e\u53cd\u6620\u6bcf\u4e2a\u8bbe\u5907\u7684\u5168\u90e8\u6f5c\u5728\u541e\u5410\u91cf\u3002<\/p>\n<table id=\"id6\" class=\"docutils align-default\">\n<caption><span style=\"color: #ff6600;\"><strong><span class=\"caption-text\">IPsec\u541e\u5410\u91cf(\u6309\u786c\u4ef6\u578b\u53f7)<\/span><\/strong><\/span><\/caption>\n<colgroup>\n<col \/>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<thead>\n<tr class=\"row-odd\">\n<th class=\"head\"><strong>\u8bbe\u5907\u578b\u53f7<\/strong><\/th>\n<th class=\"head\"><strong>IPsec\u52a0\u5bc6<\/strong><\/th>\n<th class=\"head\"><strong>TCP 1460B<\/strong><\/th>\n<th class=\"head\"><strong>IMIX<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-even\">\n<td>SG-1100<\/td>\n<td>AES-128-CBC + SHA1<\/td>\n<td>74.2 Mbit \/\u79d2<\/td>\n<td>46 Mbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>SG-3100<\/td>\n<td>AES-128-CBC + SHA1<\/td>\n<td>453 Mbit \/\u79d2<\/td>\n<td>108 Mbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>SG-5100<\/td>\n<td>AES-128-GCM<\/td>\n<td>923 Mbit \/\u79d2<\/td>\n<td>380 Mbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-7100<\/td>\n<td>AES-128-GCM<\/td>\n<td>1.28 Gb \/\u79d2<\/td>\n<td>385 Mbit \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-even\">\n<td>XG-1537<\/td>\n<td>AES-128-GCM<\/td>\n<td>2.77 Gbit \/\u79d2<\/td>\n<td>2.10 Gb \/\u79d2<\/td>\n<\/tr>\n<tr class=\"row-odd\">\n<td>XG-1541<\/td>\n<td>AES-128-GCM<\/td>\n<td>2.82 Gb \/\u79d2<\/td>\n<td>2.81 Gb \/\u79d2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">\u5728\u9632\u706b\u5899\u9700\u8981\u9ad8VPN\u541e\u5410\u91cf\u7684\u60c5\u51b5\u4e0b\uff0c\u786c\u4ef6\u52a0\u5bc6\u52a0\u901f\u81f3\u5173\u91cd\u8981\uff0c\u4e0d\u4ec5\u8981\u786e\u4fdd\u5feb\u901f\u7684\u4f20\u8f93\u901f\u5ea6\uff0c\u8fd8\u8981\u51cf\u5c11CPU\u5f00\u9500\u3002CPU\u5f00\u9500\u7684\u51cf\u5c11\u610f\u5473\u7740VPN\u4e0d\u4f1a\u964d\u4f4e\u9632\u706b\u5899\u4e0a\u5176\u4ed6\u670d\u52a1\u7684\u6027\u80fd\u3002\u901a\u8fc7\u4f7f\u7528\u5305\u542bAES-NI\u652f\u6301\u548cIPsec\u4e2d\u7684AES-GCM\u7684CPU\uff0c\u53ef\u4ee5\u83b7\u5f97\u66f4\u4f73\u7684\u901f\u5ea6\u63d0\u5347\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u63d2\u4ef6<\/h2>\n<p style=\"text-align: justify;\">\u67d0\u4e9b\u63d2\u4ef6\u5bf9\u786c\u4ef6\u8981\u6c42\u6709\u91cd\u5927\u5f71\u54cd\uff0c\u5728\u9009\u62e9\u786c\u4ef6\u65f6\u5fc5\u987b\u8003\u8651\u5230\u5b83\u4eec\u7684\u4f7f\u7528\u3002<\/p>\n<h3 style=\"text-align: justify;\">Snort\/Suricata<\/h3>\n<p style=\"text-align: justify;\">Snort\u548cSuricata\u662f\u7528\u4e8e\u7f51\u7edc\u5165\u4fb5\u68c0\u6d4b\u7684pfSense\u8f6f\u4ef6\u5305\u3002\u6839\u636e\u5b83\u4eec\u7684\u914d\u7f6e\uff0c\u5b83\u4eec\u53ef\u80fd\u9700\u8981\u5927\u91cf\u7684\u5185\u5b58\u3002\u4e00\u822c\u60c5\u51b5\u4e0b1GB\u662f\u6700\u5c0f\u503c\uff0c\u67d0\u4e9b\u914d\u7f6e\u53ef\u80fd\u9700\u89812GB\u6216\u66f4\u591a\u3002Suricata\u662f\u591a\u7ebf\u7a0b\u7684\uff0c\u5982\u679c\u786c\u4ef6\u63d0\u4f9b\u652f\u6301\uff0c\u5219\u53ef\u4ee5\u5229\u7528NETMAP\u8fdb\u884c\u5185\u8054IPS\u3002<\/p>\n<h3 style=\"text-align: justify;\">Squid<\/h3>\n<p style=\"text-align: justify;\">Squid\u662fpfSense\u4f7f\u7528\u7684\u7f13\u5b58HTTP\u4ee3\u7406\u670d\u52a1\u5668\u63d2\u4ef6\u3002 \u78c1\u76d8I\/O\u6027\u80fd\u662fSquid\u7528\u6237\u7684\u4e00\u4e2a\u91cd\u8981\u8003\u8651\u56e0\u7d20\uff0c\u56e0\u4e3a\u5b83\u51b3\u5b9a\u4e86\u7f13\u5b58\u6027\u80fd\u3002 \u76f8\u6bd4\u4e4b\u4e0b\uff0c\u78c1\u76d8\u901f\u5ea6\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u4e0e\u5927\u591a\u6570pfSense\u9632\u706b\u5899\u65e0\u5173\uff0c\u56e0\u4e3a\u552f\u4e00\u91cd\u8981\u7684\u78c1\u76d8\u6d3b\u52a8\u662f\u542f\u52a8\u65f6\u95f4\u548c\u5347\u7ea7\u65f6\u95f4; \u5b83\u4e0e\u7f51\u7edc\u541e\u5410\u91cf\u6216\u5176\u4ed6\u6b63\u5e38\u64cd\u4f5c\u65e0\u5173\u3002<\/p>\n<p style=\"text-align: justify;\">\u5373\u4f7f\u5bf9\u4e8eSquid\uff0c\u4efb\u4f55\u786c\u76d8\u9a71\u52a8\u5668\u5728\u5c0f\u578b\u73af\u5883\u4e2d\u4e5f\u8db3\u591f\u4e86\u3002\u5bf9\u4e8e200\u591a\u4e2a\u7528\u6237\u7684\u90e8\u7f72\uff0c\u5fc5\u987b\u4f7f\u7528\u9ad8\u8d28\u91cfSSD\u6765\u63d0\u5347\u7f13\u5b58\u901f\u5ea6\u3002<\/p>\n<p style=\"text-align: justify;\">Squid\u7f13\u5b58\u7684\u5927\u5c0f\u4e5f\u5f71\u54cd\u5230\u9632\u706b\u5899\u6240\u9700\u7684\u5185\u5b58\u6570\u91cf\u3002\u5728amd64\u4e0a\uff0c\u6bcf1GB\u7f13\u5b58\uff0cSquid\u5927\u7ea6\u6d88\u801714MB\u5185\u5b58\u3002\u4e00\u4e2a100GB\u7684\u7f13\u5b58\u5c06\u9700\u89811.4GB\u7684\u5185\u5b58\u7528\u4e8e\u7f13\u5b58\u7ba1\u7406\uff0c\u8fd9\u8fd8\u4e0d\u5305\u62ec\u9c7f\u9c7c\u9700\u8981\u7684\u5176\u4ed6\u5185\u5b58\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u786c\u4ef6\u4f18\u5316\u548c\u6545\u969c\u6392\u9664<\/h1>\n<p style=\"text-align: justify;\">pfSense\u00ae\u4e0b\u7684\u5e95\u5c42\u64cd\u4f5c\u7cfb\u7edf\u53ef\u4ee5\u901a\u8fc7\u8bb8\u591a\u65b9\u5f0f\u8fdb\u884c\u5fae\u8c03\u3002\u5728pfSense\u4e2d\u7684\u201c<strong>\u9ad8\u7ea7\u9009\u9879\u201d<\/strong>\u4e0b\u63d0\u4f9b\u4e86\u5176\u4e2d\u7684\u4e00\u4e9b\u53ef\u8c03\u53c2\u6570\u3002pfSense\u9ed8\u8ba4\u5b89\u88c5\u5305\u62ec\u4e00\u4e9b\u8c03\u6574\u7684\u503c\uff0c\u8fd9\u4e9b\u503c\u7ecf\u8fc7\u8c03\u6574\u53ef\u5b9e\u73b0\u826f\u597d\u7684\u6027\u80fd\uff0c\u800c\u53c8\u4e0d\u4f1a\u8fc7\u4e8e\u6fc0\u8fdb\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u786c\u4ef6\u6216\u9a71\u52a8\u7a0b\u5e8f\u9700\u8981\u66f4\u6539\u503c\uff0c\u6216\u8005\u7279\u5b9a\u7684\u7f51\u7edc\u5de5\u4f5c\u8d1f\u8f7d\u9700\u8981\u66f4\u6539\u624d\u80fd\u6700\u4f73\u5730\u6267\u884c\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u4fee\u6539\/boot\/loader.conf.local\u6587\u4ef6\uff0c\u5fc5\u987b\u91cd\u542f\u9632\u706b\u5899\u624d\u80fd\u751f\u6548\u3002<\/p>\n<h2 style=\"text-align: justify;\">Mbuf\u00a0\u8017\u5c3d<\/h2>\n<p style=\"text-align: justify;\">\u7528\u6237\u9047\u5230\u7684\u4e00\u4e2a\u5e38\u89c1\u95ee\u9898\u662fmbuf\u8017\u5c3d\u3002 \u5982\u679c\u9632\u706b\u5899\u7528\u5b8c\u4e86mbufs\uff0c\u90a3\u4e48\u5728\u67d0\u4e9b\u7f51\u7edc\u8d1f\u8f7d\u4e0b\u4f1a\u5bfc\u81f4\u5185\u6838\u5d29\u6e83\u548c\u91cd\u542f\uff0c\u4ece\u800c\u8017\u5c3d\u6240\u6709\u53ef\u7528\u7684\u7f51\u7edc\u5185\u5b58\u7f13\u51b2\u533a\u3002 \u5bf9\u4e8e\u4f7f\u7528\u591a\u4e2a\u961f\u5217\u7684\u7f51\u5361\u6216\u5728\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u4e0b\u4f18\u5316\u6027\u80fd\u7684\u7f51\u5361\u66f4\u4e3a\u5e38\u89c1\u3002 \u6b64\u5916\uff0c\u5f53\u9632\u706b\u5899\u4f7f\u7528\u67d0\u4e9b\u529f\u80fd(\u5982\u9650\u5236\u5668)\u65f6\uff0cmbuf\u4f7f\u7528\u7387\u4f1a\u589e\u52a0\u3002\u8981\u589e\u52a0\u53ef\u7528\u7684mbufs\u6570\u91cf\uff0c\u53ef\u4ee5\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230<code class=\"docutils literal\"><span class=\"pre\">\/boot\/loader.conf.local<\/span><\/code>:<\/p>\n<pre>kern.ipc.nmbclusters=\"1000000\"<\/pre>\n<p style=\"text-align: justify;\">\u6b64\u5916\uff0c\u53ef\u80fd\u9700\u8981\u5176\u4ed6\u7c7b\u4f3c\u7684\u503c\uff0c\u5982kern.ipc.nmbjumbop\u3002 \u9664\u4e86\u5728\u4eea\u8868\u677f\u67e5\u770bMbuf\u5360\u7528\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<span class=\"pre\">netstat<\/span>\u00a0<span class=\"pre\">-m<\/span>\u6765\u8fdb\u884c\u68c0\u67e5\uff0c\u4ee5\u9a8c\u8bc1Mbuf\u662f\u5426\u8017\u5c3d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7f51\u5361\u961f\u5217\u8ba1\u6570<\/h2>\n<p style=\"text-align: justify;\">\u51fa\u4e8e\u6027\u80fd\u539f\u56e0\uff0c\u67d0\u4e9b\u7f51\u5361\u7c7b\u578b\u4f7f\u7528\u591a\u4e2a\u961f\u5217\u6765\u5904\u7406\u6570\u636e\u5305\u3002 \u5728\u591a\u6838\u7cfb\u7edf\u4e0a\uff0c\u901a\u5e38\u9a71\u52a8\u7a0b\u5e8f\u4f1a\u5e0c\u671b\u6bcf\u4e2aCPU\u6838\u5fc3\u4f7f\u7528\u4e00\u4e2a\u961f\u5217\u3002 \u6709\u51e0\u79cd\u60c5\u51b5\u4f1a\u5bfc\u81f4\u7a33\u5b9a\u6027\u95ee\u9898\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u51cf\u5c11\u7f51\u5361\u4f7f\u7528\u7684\u961f\u5217\u6765\u89e3\u51b3\u3002 \u8981\u51cf\u5c11\u961f\u5217\u6570\u91cf\uff0c\u8bf7\u5728\/boot\/loader.conf.local\u4e2d\u6307\u5b9a\u65b0\u503c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>hw.igb.num_queues=1<\/pre>\n<p style=\"text-align: justify;\">sysctl OID\u7684\u540d\u79f0\u56e0\u7f51\u5361\u800c\u5f02\uff0c\u4f46\u901a\u5e38\u4f4d\u4e8e\u00a0<code class=\"docutils literal\"><span class=\"pre\">hw.&lt;drivername&gt;<\/span><\/code>\u4e0b\u7684<span class=\"pre\">sysctl<\/span>\u00a0<span class=\"pre\">-a<\/span>\u7684\u8f93\u51fa\u4e2d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7981\u7528MSIX<\/h2>\n<p style=\"text-align: justify;\">\u53e6\u4e00\u4e2a\u5e38\u89c1\u7684\u95ee\u9898\u662f\u7f51\u5361\u6ca1\u6709\u6b63\u786e\u652f\u6301MSIX\u3002 \u53ef\u4ee5\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\u5230\/boot\/loader.conf.local\u7981\u7528MSIX\uff1a<\/p>\n<pre>hw.pci.enable_msix=0<\/pre>\n<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>pfSense\u00ae\u8f6f\u4ef6\u53d1\u884c\u7248\u4e0eFreeBSD\u652f\u6301\u7684\u5927\u591a\u6570\u786c\u4ef6\u517c\u5bb9\u3002pfSense  &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=153\">\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":[196],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-196"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/153","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=153"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}