{"id":185,"date":"2018-07-29T08:54:13","date_gmt":"2018-07-29T00:54:13","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=185"},"modified":"2020-08-24T22:12:20","modified_gmt":"2020-08-24T14:12:20","slug":"pfsense-book%e4%b9%8bikev2%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%85%8d%e7%bd%ae%e7%a4%ba%e4%be%8b","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=185","title":{"rendered":"pfSense book\u4e4bIKEv2\u670d\u52a1\u5668\u914d\u7f6e\u793a\u4f8b"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>\u79fb\u52a8\u5ba2\u6237\u7aef\u7684\u670d\u52a1\u5668\u914d\u7f6e\u6709\u51e0\u4e2a\u7ec4\u4ef6\uff1a<\/strong><\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u4e3aVPN\u521b\u5efa\u4e00\u4e2a\u8bc1\u4e66\u7ed3\u6784<\/li>\n<li>\u914d\u7f6eIPsec\u79fb\u52a8\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/li>\n<li>\u4e3a\u5ba2\u6237\u7aef\u8fde\u63a5\u521b\u5efa\u9636\u6bb51\u548c\u9636\u6bb52<\/li>\n<li>\u6dfb\u52a0IPsec\u9632\u706b\u5899\u89c4\u5219<\/li>\n<li>\u521b\u5efa***\u7684\u7528\u6237\u51ed\u636e<\/li>\n<li>ipsec\u8fde\u63a5\u6d4b\u8bd5<\/li>\n<li>ipsec\u6545\u969c\u6392\u9664<\/li>\n<li>ipsec\u65e5\u5fd7\u8bf4\u660e<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u4e3aVPN\u521b\u5efaIKEv2\u8bc1\u4e66\u7ed3\u6784<\/h2>\n<h3 style=\"text-align: justify;\">\u521b\u5efa\u4e00\u4e2a\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679c\u8bc1\u4e66\u7ba1\u7406\u5668\u4e2d\u6ca1\u6709\u5408\u9002\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784\uff08CA\uff09\uff0c\u90a3\u4e48\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e00\u4e2a\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406\uff0cCAS\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\u6dfb\u52a0\u4e00\u4e2a\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<li>\u8bc1\u4e66\u6765\u6e90\u9009\u521b\u5efa\u4e00\u4e2a\u5185\u90e8\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<li>\u6309\u7167\u516c\u53f8\u6216\u7279\u5b9a\u5730\u70b9\u7684\u4fe1\u606f\u586b\u5199\u5176\u4f59\u7684\u5b57\u6bb5<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\u5668\u8bc1\u4e66<\/strong><\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u8bf7\u4e25\u683c\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u5982\u679c\u4efb\u4f55\u4e00\u90e8\u5206\u4e0d\u6b63\u786e\uff0c\u5219\u67d0\u4e9b\u6216\u6240\u6709\u5ba2\u6237\u7aef\u53ef\u80fd\u65e0\u6cd5\u8fde\u63a5\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406,\u8bc1\u4e66\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\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u8bc1\u4e66<\/li>\n<li>\u8bc1\u4e66\u6765\u6e90\u9009\u521b\u5efa\u5185\u90e8\u8bc1\u4e66<\/li>\n<li>\u8f93\u5165\u63cf\u8ff0\u540d\u79f0\u5982\uff1aIKEv2\u00a0Server<\/li>\n<li>\u9009\u62e9\u5728\u4e0a\u4e00\u6b65\u4e2d\u521b\u5efa\u7684\u8bc1\u4e66\u9881\u53d1\u673a\u6784<\/li>\n<li>\u8f93\u5165\u5bc6\u94a5\u957f\u5ea6,\u6458\u8981\u7b97\u6cd5\u548c\u6709\u6548\u671f<\/li>\n<li>\u9009\u62e9\u8bc1\u4e66\u7c7b\u578b\u4e3a\u670d\u52a1\u5668\u8bc1\u4e66<\/li>\n<li>\u6839\u636e\u9700\u8981\u5728\u4e13\u7528\u540d\u79f0\u5b57\u6bb5\u4e2d\u586b\u5199\u5730\u533a\u548c\u516c\u53f8\u6570\u636e\uff0c\u5c06\u5176\u4eceCA\u4e2d\u590d\u5236\u5e76\u4fdd\u7559\u539f\u6837<\/li>\n<li>\u8f93\u5165\u901a\u7528\u540d\u79f0\u4f5c\u4e3aDNS\u4e2d\u5b58\u5728\u7684\u9632\u706b\u5899\u7684\u4e3b\u673a\u540d\u79f0\u3002\u5982\u679c\u5ba2\u6237\u7aef\u5c06\u901a\u8fc7IP\u5730\u5740\u8fde\u63a5\uff0c\u8bf7\u5728\u6b64\u5904\u586b\u5199IP\u5730\u5740<\/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\" \/>\u6dfb\u52a0 \u4e00\u4e2a\u65b0\u7684\u66ff\u4ee3\u540d\u79f0<\/li>\n<li>\u5728\u7c7b\u578b\u5b57\u6bb5\u4e2d\u9009FQDN\u6216\u4e3b\u673a\u540d<\/li>\n<li>\u5728\u201c\u503c\u201d\u5b57\u6bb5\u4e2d\u518d\u6b21\u8f93\u5165\u9632\u706b\u5899\u7684\u4e3b\u673a\u540d<\/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\u6dfb\u52a0\u53e6\u4e00\u4e2a\u66ff\u4ee3\u540d\u79f0<\/li>\n<li>\u5728\u7c7b\u578b\u5b57\u6bb5\u9009IP\u5730\u5740<\/li>\n<li>\u5728\u201c\u503c\u201d\u5b57\u6bb5\u4e2d\u8f93\u5165\u9632\u706b\u5899\u7684WAN IP\u5730\u5740<\/li>\n<li>\u6839\u636e\u9700\u8981\u4e3a\u5ba2\u6237\u7aef\u53ef\u80fd\u7528\u4e8e\u8fde\u63a5\u7684\u9632\u706b\u5899\u4e0a\u7684\u5176\u4ed6\u4e3b\u673a\u540d\u6216IP\u5730\u5740\u6dfb\u52a0\u66f4\u591a\u66ff\u4ee3\u540d\u79f0<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<h2 style=\"text-align: justify;\">\u914d\u7f6eIPsec\u79fb\u52a8\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u5728\u914d\u7f6e\u79fb\u52a8IPsec\u5b9e\u4f8b\u4e4b\u524d\uff0c\u9996\u5148\u9009\u62e9\u4e00\u4e2aIP\u5730\u5740\u8303\u56f4\u7528\u4e8e\u79fb\u52a8\u5ba2\u6237\u7aef\u3002 \u786e\u4fddIP\u5730\u5740\u4e0d\u4e0e\u4efb\u4f55\u73b0\u6709\u7f51\u7edc\u91cd\u53e0; IP\u5730\u5740\u5fc5\u987b\u4e0e\u6258\u7ba1\u79fb\u52a8\u96a7\u9053\u7684\u7ad9\u70b9\u4ee5\u53ca\u5ba2\u6237\u7aef\u8fde\u63a5\u7684LAN\u4e0d\u540c\u3002 \u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5c06\u4f7f\u752810.3.200.0\/24\uff0c\u4f46\u5b83\u53ef\u4ee5\u662f\u4efb\u4f55\u672a\u4f7f\u7528\u7684\u5b50\u7f51\u3002<\/p>\n<p style=\"text-align: justify;\">\u9996\u5148\uff0c\u8bf7\u5728\u9632\u706b\u5899\u4e0a\u542f\u7528IPsec\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230VPN &gt; IPsec<\/li>\n<li>\u9009\u4e2d\u542f\u7528IPsec<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301\u4e5f\u5fc5\u987b\u542f\u7528:<\/p>\n<ul>\n<li>\u5bfc\u822a\u5230VPN &gt;IPsec<\/li>\n<li>\u70b9\u51fb\u79fb\u52a8\u5ba2\u6237\u7aef\u6807\u7b7e<\/li>\n<li>\u9009\u4e2d\u542f\u7528IPsec\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1833\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable.png\" alt=\"\" width=\"1148\" height=\"142\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable.png 1148w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable-1024x127.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable-300x37.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable-768x95.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_enable-500x62.png 500w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/p>\n<p class=\"caption\">\u542f\u7528IPsec\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5c06\u7528\u6237\u8ba4\u8bc1\u8bbe\u7f6e\u4e3a\u201c\u672c\u5730\u6570\u636e\u5e93\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u6240\u793a\u3002\u5728\u7528\u6237\u7ba1\u7406\uff08\u7528\u6237\u7ba1\u7406\u548c\u8ba4\u8bc1\uff09\u4e2d\u5b9a\u4e49\u7684RADIUS\u670d\u52a1\u5668\u53ef\u4ee5\u5728\u8fd9\u91cc\u9009\u62e9\u7528\u4e8e\u5728\u4f7f\u7528EAP-RADIUS\u65f6\u5bf9\u7528\u6237\u8fdb\u884c\u8ba4\u8bc1\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1834\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth.png\" alt=\"\" width=\"1139\" height=\"213\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth-1024x191.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth-300x56.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth-768x144.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg_auth-500x94.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u79fb\u52a8\u5ba2\u6237\u7aef\u8ba4\u8bc1<\/p>\n<p style=\"text-align: justify;\">\u67d0\u4e9b\u8bbe\u7f6e\u53ef\u80fd\u4f1a\u63a8\u9001\u5230\u5ba2\u6237\u7aef\uff0c\u4f8b\u5982\u5ba2\u6237\u7aefIP\u5730\u5740\u548cDNS\u670d\u52a1\u5668\u3002 \u8fd9\u4e9b\u9009\u9879\u663e\u793a\u5728\u201c\u79fb\u52a8\u5ba2\u6237\u7aef\u63a8\u9001\u7684\u8bbe\u7f6e\u201d\u4e2d\u3002 \u4e0d\u540c\u5ba2\u6237\u7aef\u5bf9\u8fd9\u4e9b\u9009\u9879\u7684\u652f\u6301\u5404\u4e0d\u76f8\u540c\uff0c\u4f46\u5728\u5927\u591a\u6570\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5f97\u5230\u5f88\u597d\u7684\u652f\u6301<\/p>\n<p style=\"text-align: justify;\"><strong>\u865a\u62df\u5730\u5740\u6c60:<\/strong><\/p>\n<p style=\"text-align: justify;\">\u5b9a\u4e49\u5c06\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u6c60\u3002 \u8fd9\u4e2a\u4f8b\u5b50\u4f7f\u752810.3.200.0\/24\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u865a\u62dfIPv6\u5730\u5740\u6c60:<\/strong><\/p>\n<p style=\"text-align: justify;\">\u8ddf\u4e0a\u9762\u76f8\u540c\uff0c\u53ea\u4e0d\u8fc7\u662fIPv6\u5730\u5740\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u7f51\u7edc\u5217\u8868:<\/strong><\/p>\n<p style=\"text-align: justify;\">\u63a7\u5236\u5ba2\u6237\u7aef\u662f\u5426\u5c1d\u8bd5\u901a\u8fc7\u96a7\u9053\u53d1\u9001\u6240\u6709\u6d41\u91cf\uff0c\u6216\u8005\u4ec5\u9488\u5bf9\u7279\u5b9a\u7f51\u7edc\u7684\u6d41\u91cf\u3002 \u5982\u679c\u9009\u4e2d\u6b64\u9009\u9879\uff0c\u5219\u79fb\u52a8\u9636\u6bb52\u5b9a\u4e49\u7684\u672c\u5730\u7f51\u7edc\u9009\u9879\u4e2d\u5b9a\u4e49\u7684\u7f51\u7edc\u5c06\u88ab\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u3002 \u5982\u679c\u672a\u9009\u4e2d\u6b64\u9009\u9879\uff0c\u5219\u5ba2\u6237\u7aef\u5c06\u5c1d\u8bd5\u901a\u8fc7\u96a7\u9053\u53d1\u9001\u5176\u6240\u6709\u6d41\u91cf\uff0c\u5305\u62ecInternet\u6d41\u91cf\u3002 \u5e76\u975e\u6240\u6709\u5ba2\u6237\u90fd\u5c0a\u91cd\u8fd9\u4e00\u9009\u62e9\u3002 \u5bf9\u4e8e\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u5ba2\u6237\u7aef\u53ea\u80fd\u5728\u9636\u6bb52\u5230\u8fbe\u7f51\u7edc\uff0c\u6240\u4ee5\u9009\u4e2d\u8fd9\u4e2a\u9009\u9879\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u4fdd\u5b58Xauth\u5bc6\u7801<\/strong>:<\/p>\n<p style=\"text-align: justify;\">\u9009\u4e2d\u540e\uff0c\u652f\u6301\u6b64\u63a7\u4ef6\u7684\u5ba2\u6237\u7aef\u5c06\u5141\u8bb8\u7528\u6237\u5728\u4f7f\u7528Xauth\u65f6\u4fdd\u5b58\u5176\u51ed\u636e\u3002 \u8fd9\u4e3b\u8981\u662f\u7531\u57fa\u4e8e\u601d\u79d1\u7684\u5ba2\u6237\u7aef\uff08\u5982iOS\u548cMac OS X\u4e0a\u7684\u5ba2\u6237\u7aef\uff09\u6240\u63a8\u5d07\u7684\u3002\u7531\u4e8e\u672c\u793a\u4f8b\u4f7f\u7528\u4e86IKEv2\uff0c\u56e0\u6b64\u5e76\u4e0d\u91cd\u8981\u3002<\/p>\n<p style=\"text-align: justify;\">DNS\u9ed8\u8ba4\u57df:\u9009\u4e2d\u540e\uff0c\u8f93\u5165\u5230\u6846\u4e2d\u7684\u503c\u5c06\u4f5c\u4e3aDNS\u8bf7\u6c42\u7684\u9ed8\u8ba4\u57df\u540e\u7f00\u63a8\u9001\u7ed9\u5ba2\u6237\u7aef\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u5c06\u6b64\u8bbe\u7f6e\u4e3aexample.com\uff0c\u5e76\u4e14\u5ba2\u6237\u7aef\u8bf7\u6c42\u4e3b\u673a\uff0c\u5219\u4f1a\u5c1d\u8bd5\u6267\u884chost.example.com\u7684DNS\u8bf7\u6c42\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u62c6\u5206DNS<\/strong>:<\/p>\n<p style=\"text-align: justify;\">\u63a7\u5236\u5ba2\u6237\u7aef\u5982\u4f55\u5c06DNS\u8bf7\u6c42\u53d1\u9001\u5230\u63d0\u4f9b\u7684DNS\u670d\u52a1\u5668\uff08\u5982\u679c\u6709\uff09\u3002 \u5982\u679c\u672a\u9009\u4e2d\u6b64\u9009\u9879\uff0c\u5219\u5ba2\u6237\u7aef\u5c06\u628a\u6240\u6709DNS\u8bf7\u6c42\u53d1\u9001\u5230\u63d0\u4f9b\u7684DNS\u670d\u52a1\u5668\u3002 \u5982\u679c\u8be5\u9009\u9879\u88ab\u9009\u4e2d\uff0c\u4f46\u4fdd\u7559\u4e3a\u7a7a\uff0c\u5e76\u4e14\u8bbe\u7f6e\u4e86DNS\u9ed8\u8ba4\u57df\uff0c\u5219\u53ea\u6709\u8be5\u57df\u540d\u7684\u8bf7\u6c42\u624d\u4f1a\u8f6c\u5230\u63d0\u4f9b\u7684DNS\u670d\u52a1\u5668\u3002 \u5982\u679c\u9009\u4e2d\u5e76\u8f93\u5165\u4e00\u4e2a\u503c\uff0c\u90a3\u4e48\u53ea\u6709\u8f93\u5165\u6846\u4e2d\u7684\u57df\u540d\u8bf7\u6c42\u624d\u4f1a\u88ab\u8f6c\u53d1\u5230\u63d0\u4f9b\u7684DNS\u670d\u52a1\u5668\u3002 \u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cexample.com\u548cexample.org\u90fd\u88ab\u4f7f\u7528\uff0c\u5e76\u4e14\u8fd9\u4e24\u4e2a\u57df\u7684DNS\u8bf7\u6c42\u5c06\u4f1a\u5230\u8fbeVPN\u670d\u52a1\u5668\uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u8f93\u5165\u8fd9\u4e9b\u503c\uff0c\u5e76\u7528\u7a7a\u683c\u9694\u5f00\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>DNS\u670d\u52a1\u5668<\/strong>:<\/p>\n<p style=\"text-align: justify;\">\u5f53\u9009\u4e2d\u5411\u5ba2\u6237\u7aef\u63d0\u4f9bDNS\u670d\u52a1\u5668\u5217\u8868\u65f6\uff0c\u4e3a\u672c\u5730DNS\u670d\u52a1\u5668\uff08\u598210.3.0.1\uff09\u8f93\u5165IP\u5730\u5740\uff0c\u8fd9\u4e9b\u503c\u5c06\u5728VPN\u8fde\u63a5\u65f6\u53d1\u9001\u7ed9\u5ba2\u6237\u7aef\u4f7f\u7528\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u5982\u679c\u79fb\u52a8\u5ba2\u6237\u7aef\u5c06\u901a\u8fc7VPN\u8def\u7531\u5230Internet\uff0c\u8bf7\u786e\u4fdd\u5ba2\u6237\u7aef\u4f7f\u7528\u6b64\u9009\u9879\u4ece\u9632\u706b\u5899\u83b7\u53d6DNS\u670d\u52a1\u5668\uff0c\u5e76\u4e14\u6ca1\u6709\u542f\u7528\u62c6\u5206DNS\u3002 \u5982\u679c\u6ca1\u6709\u8fd9\u6837\u505a\uff0c\u5ba2\u6237\u7aef\u5c06\u5c1d\u8bd5\u4eceISP\u5206\u914d\u7684\u4efb\u4f55\u670d\u52a1\u5668\u83b7\u53d6DNS\uff0c\u4f46\u662f\u901a\u8fc7\u96a7\u9053\u8def\u7531\u8be5\u8bf7\u6c42\u5f88\u53ef\u80fd\u4f1a\u5931\u8d25\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>WINS\u670d\u52a1\u5668\uff1a<\/strong><\/p>\n<p style=\"text-align: justify;\">\u4e0eDNS\u670d\u52a1\u5668\u7c7b\u4f3c\uff0c\u4f46\u7528\u4e8eWINS\u3002\u73b0\u5728\u5df2\u5f88\u5c11\u4f7f\u7528\uff0c\u6700\u597d\u8fd8\u662f\u7981\u7528\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>Phase 2 PFS\u7ec4\uff1a<\/strong><\/p>\n<p style=\"text-align: justify;\">\u8986\u76d6\u6240\u6709\u79fb\u52a8Phase 2\u6761\u76ee\u7684PFS\u8bbe\u7f6e\u3002 \u901a\u5e38\u6700\u597d\u5728P2\u6761\u76ee\u4e0a\u5355\u72ec\u8bbe\u7f6e\u6b64\u503c\uff0c\u56e0\u6b64\u8bf7\u4e0d\u8981\u9009\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u767b\u9646\u6a2a\u5e45\uff1a<\/strong><\/p>\n<p style=\"text-align: justify;\">\u53ef\u9009\uff0c\u53ea\u9002\u7528\u4e8eXauth\u5ba2\u6237\u7aef\u3002 \u4fdd\u6301\u672a\u9009\u4e2d\u5e76\u7a7a\u767d<\/p>\n<p style=\"text-align: justify;\">\u8bbe\u7f6e\u5b8c\u6210\u540e\u5982\u4e0b\uff1a<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1835\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg.png\" alt=\"\" width=\"1146\" height=\"950\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg.png 1146w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg-1024x849.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg-300x249.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg-768x637.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_modecfg-362x300.png 362w\" sizes=\"auto, (max-width: 1146px) 100vw, 1146px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u79fb\u52a8\u5ba2\u6237\u7aef\u63a8\u9001\u8bbe\u7f6e<\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><strong>\u521b\u5efa\u9636\u6bb51\u548c\u9636\u6bb52<\/strong><\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\uff0cpfSense\u5c06\u663e\u793a\u8b66\u544a\uff0c\u6307\u51fa\u79fb\u52a8\u5ba2\u6237\u7aef\u6ca1\u6709\u5b9a\u4e49Phase 1\u3002<\/li>\n<li>\u70b9\u51fb\u521b\u5efaPhase 1\uff0c\u4e3a\u79fb\u52a8\u5ba2\u6237\u7aef\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Phase1\u6761\u76ee\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1836\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create.png\" alt=\"\" width=\"1145\" height=\"80\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create.png 1145w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create-1024x72.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create-300x21.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create-768x54.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1_create-500x35.png 500w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><\/p>\n<p>\u5355\u51fb\u96a7\u9053\u9009\u9879\u5361\uff0c\u914d\u7f6e\u9009\u9879\u5982\u4e0b:<\/p>\n<p style=\"text-align: justify;\"><strong>\u00a0 \u00a0 \u5bc6\u94a5\u4ea4\u6362\u7248\u672c<\/strong>:IKEv2<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>Internet\u534f\u8bae<\/strong>:IPv4<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u63a5\u53e3<\/strong>:WAN<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u63cf\u8ff0\u8bf4\u660e<\/strong>:\u00a0Mobile IPsec<\/p>\n<p style=\"text-align: justify;\">\u00a0<strong>\u00a0\u00a0\u00a0\u8ba4\u8bc1\u65b9\u6cd5<\/strong>:EAP-MSCHAPv2<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0<strong>\u6211\u7684\u6807\u8bc6\u7b26<\/strong>:\u4ece\u4e0b\u62c9\u5217\u8868\u4e2d\u9009\u62e9\u201c\u53ef\u5206\u8fa8\u540d\u79f0\u201d\uff0c\u7136\u540e\u8f93\u5165\u9632\u706b\u5899\u7684\u4e3b\u673a\u540d\uff0c\u4e0e\u670d\u52a1\u5668\u8bc1\u4e66\u7684\u4e3b\u673a\u540d\u76f8\u540c\uff0c VPN.example.com<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u5bf9\u7aef\u6807\u8bc6\u7b26<\/strong>:Any<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u6211\u7684\u8bc1\u4e66<\/strong>:\u9009\u62e9\u4e4b\u524d\u521b\u5efa\u7684IPsec\u670d\u52a1\u5668\u8bc1\u4e66<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u52a0\u5bc6\u7b97\u6cd5<\/strong>:\u8bbe\u7f6e\u4e3a3DES (\u5982\u679c\u6ca1\u6709iOS \/ OS X\u8bbe\u5907\uff0c\u5219\u4e3aAES 256)<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u54c8\u5e0c\u7b97\u6cd5<\/strong>:\u5fc5\u987b\u8bbe\u7f6e\u4e3a SHA1 (\u5982\u679c\u6ca1\u6709iOS \/ OS X\u8bbe\u5907\uff0c\u5219\u4e3aSHA256)<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>DH\u7ec4<\/strong>:\u5fc5\u987b\u8bbe\u7f6e\u4e3a2 (1024 bit)<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0<strong>\u6709\u6548\u671f<\/strong>:\u5fc5\u987b\u4e3a 28800<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0\u00a0<strong>\u7981\u7528\u9884\u6388\u5bc6\u7801<\/strong>:\u4e0d\u9009\u4e2d<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0<strong>\u00a0 \u7981\u7528\u91cd\u65b0\u8ba4\u8bc1<\/strong>:\u4e0d\u9009\u4e2d<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0<strong>\u00a0\u4ec5\u54cd\u5e94<\/strong>:\u4e0d\u9009\u4e2d<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>MOBIKE<\/strong>:\u8bbe\u7f6e\u4e3a\u542f\u7528\u4ee5\u5141\u8bb8\u5ba2\u6237\u7aef\u5728IP\u5730\u5740\u4e4b\u95f4\u6f2b\u6e38\uff0c\u5426\u5219\u8bbe\u7f6e\u4e3a\u7981\u7528\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1837\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1.png\" alt=\"\" width=\"1140\" height=\"552\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1-1024x496.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1-300x145.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1-768x372.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p1-500x242.png 500w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u79fb\u52a8\u5ba2\u6237\u7aef\u9636\u6bb5 1<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<li>\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1838\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus-circle-1.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u663e\u793a\u9636\u6bb5 2\u6761\u76ee\uff0c\u5c55\u5f00\u9636\u6bb52\u5217\u8868<\/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\u6dfb\u52a0\u65b0\u7684phase 2\u6761\u76ee<\/li>\n<\/ul>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u914d\u7f6e\u9009\u9876\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u6a21\u5f0f<\/strong>:\u9009IPv4\u96a7\u9053<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u672c\u5730\u7f51\u7edc<\/strong>:\u8bbe\u7f6e\u4e3aLAN\u5b50\u7f51\u6216\u5176\u4ed6\u672c\u5730\u7f51\u7edc\u3002 \u8981\u901a\u8fc7VPN\u96a7\u9053\u4f20\u8f93\u6240\u6709\u6d41\u91cf\uff0c\u8bf7\u9009\u62e9\u7f51\u7edc\uff0c\u5e76\u8f93\u5165\u63a9\u7801\u4e3a0\u76840.0.0.0<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>NAT\/BINAT<\/strong>:\u8bbe\u7f6e\u4e3aNone<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u534f\u8bae<\/strong>:\u8bbe\u7f6e\u4e3aESP, \u8fd9\u5c06\u52a0\u5bc6\u96a7\u9053\u6d41\u91cf<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u52a0\u5bc6\u7b97\u6cd5<\/strong>:\u5fc5\u987b\u8bbe\u7f6e\u4e3aAES\uff0c\u81ea\u52a8\u9009\u62e9\u5bc6\u94a5\u957f\u5ea6\u3002 \u5982\u679c\u6709iOS\u6216OS X\u5ba2\u6237\u7aef\u8fde\u63a5\uff0c\u4e5f\u9009\u4e2d3DES\u3002<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u54c8\u5e0c\u7b97\u6cd5<\/strong>:\u9009SHA1\u548c SHA256<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>PFS\u5bc6\u94a5\u7ec4<\/strong>:\u8bbe\u4e3a\u5173\u95ed<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0<strong>\u6709\u6548\u671f<\/strong>:\u00a03600<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1839\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2.png\" alt=\"\" width=\"1139\" height=\"949\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2-1024x853.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2-300x250.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2-768x640.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_p2-360x300.png 360w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u79fb\u52a8\u5ba2\u6237\u7aef\u9636\u6bb5 2<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<li>\u5355\u51fb\u5e94\u7528\u66f4\u6539<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1840\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply.png\" alt=\"\" width=\"1141\" height=\"78\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply-1024x70.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply-300x21.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply-768x53.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_apply-500x34.png 500w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/p>\n<h2 style=\"text-align: justify;\">\u521b\u5efaIPsec\u79fb\u52a8\u7528\u6237<\/h2>\n<p style=\"text-align: justify;\">\u4e0b\u4e00\u6b65\u662f\u6dfb\u52a0\u7528\u6237\u4ee5\u4f9bEAP-MSCHAPv2\u4f7f\u7528\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230VPN &gt; IPsec,\u9884\u5171\u4eab\u5bc6\u94a5\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\u6dfb\u52a0\u65b0\u5bc6\u94a5<\/li>\n<\/ul>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u914d\u7f6e\u9009\u9879\u5982\u4e0b:<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u6807\u8bc6\u7b26<\/strong>\uff1a\u5ba2\u6237\u7aef\u7684\u7528\u6237\u540d\u53ef\u4ee5\u7528\u591a\u79cd\u65b9\u5f0f\u8868\u793a\uff0c\u4f8b\u5982\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u00a0jimp@example.com<\/p>\n<p style=\"text-align: justify;\">\u00a0\u00a0\u00a0<strong>\u00a0\u52a0\u5bc6\u7c7b\u578b<\/strong>\uff1a\u8bbe\u7f6e\u4e3aEAP<\/p>\n<p style=\"text-align: justify;\">\u00a0 \u00a0\u00a0<strong>\u9884\u5171\u4eab\u5bc6\u94a5\uff1a<\/strong>\u5ba2\u6237\u7aef\u7684\u5bc6\u7801,\u00a0\u5982 abc123<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u4e3a\u5176\u4ed6\u7684VPN\u7528\u6237\u91cd\u590d\u4e0a\u8ff0\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1841\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user.png\" alt=\"\" width=\"1139\" height=\"189\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user-1024x170.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user-300x50.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user-768x127.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-ipsec_mobile_user-500x83.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><em>\u79fb\u52a8IPsec\u7528\u6237<\/em><\/p>\n<h2 style=\"text-align: justify;\">\u6dfb\u52a0IPsec\u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p style=\"text-align: justify;\">\u4e0e\u9759\u6001\u7ad9\u70b9\u5230\u7ad9\u70b9\u96a7\u9053\u4e00\u6837\uff0c\u79fb\u52a8\u96a7\u9053\u4e5f\u9700\u8981\u5728\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565\u4e0b\u7684IPsec\u9009\u9879\u5361\u4e2d\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\u3002 \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6d41\u91cf\u7684\u6765\u6e90\u5c06\u662f\u4e3a\u79fb\u52a8\u5ba2\u6237\u7aef\u9009\u62e9\u7684\u5b50\u7f51\uff0c\u76ee\u7684\u5730\u662fLAN\u7f51\u7edc\uff0c\u6216\u8005\u4e3a\u4efb\u610f\u3002<\/p>\n<h2 style=\"text-align: justify;\"><strong>\u521b\u5efaVPN\u7684\u7528\u6237\u51ed\u636e<\/strong><\/h2>\n<h1 style=\"text-align: justify;\">Windows IKEv2\u00a0\u5ba2\u6237\u7aef\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">Windows 8\u4ee5\u4e0a\u7684\u7248\u672c\u53ef\u4ee5\u8f7b\u677e\u652f\u6301IKEv2 VPN\uff0c\u800cWindows 7\u4e5f\u53ef\u4ee5\uff0c\u867d\u7136\u8fc7\u7a0b\u7565\u6709\u4e0d\u540c\u3002\u00a0\u672c\u793a\u4f8b\u8fc7\u7a0b\u5728Windows 10\u4e0a\u6267\u884c\uff0c\u4e0eWindows 8\u51e0\u4e4e\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5bfc\u5165CA\u8bc1\u4e66\u5230\u5ba2\u6237\u7aefPC\u4e0a<\/h2>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u4ecepfSense\u5bfc\u51faCA\u8bc1\u4e66\u5e76\u4e0b\u8f7d\u6216\u590d\u5236\u5230\u5ba2\u6237\u7aefPC:\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf&gt;\u8bc1\u4e66\u7ba1\u7406,CAS\u9009\u9879\u5361<\/li>\n<li>\u5728\u8bc1\u4e66\u5217\u8868\u53f3\u4fa7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1842\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-certificate-1.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u5bfc\u51faCA\u8bc1\u4e66<\/li>\n<\/ul>\n<\/li>\n<li>\u5728\u5ba2\u6237\u7aef\u8ba1\u7b97\u673a\u4e0a\u627e\u5230\u4e0b\u8f7d\u7684\u6587\u4ef6\uff08\u4f8b\u5982VPNCA.crt\uff09<\/li>\n<li>\u53cc\u51fb\u8fd9\u4e2a CA\u00a0\u6587\u4ef6<\/li>\n<li>\u5355\u51fb\u5b89\u88c5\u8bc1\u4e66<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1843\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-01-cert.png\" alt=\"\" width=\"376\" height=\"197\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-01-cert.png 376w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-01-cert-300x157.png 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u8bc1\u4e66\u5c5e\u6027<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u9009\u62e9\u672c\u5730\u8ba1\u7b97\u673a<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1844\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-02-certinstall.png\" alt=\"\" width=\"406\" height=\"516\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-02-certinstall.png 406w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-02-certinstall-236x300.png 236w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u8bc1\u4e66\u5bfc\u5165\u5411\u5bfc &#8211; \u5b58\u50a8\u4f4d\u7f6e<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u4e0b\u4e00\u6b65<\/li>\n<li>\u5982\u679c\u51fa\u73b0UAC\u63d0\u793a\uff0c\u8bf7\u5355\u51fb\u662f<\/li>\n<li>\u9009\u62e9\u5c06\u6240\u6709\u8bc1\u4e66\u90fd\u653e\u5165\u4e0b\u5217\u5b58\u50a8\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1845\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-03-certlocalmachine.png\" alt=\"\" width=\"535\" height=\"523\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-03-certlocalmachine.png 535w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-03-certlocalmachine-300x293.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-03-certlocalmachine-307x300.png 307w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u8bc1\u4e66\u5bfc\u5165\u5411\u5bfc &#8211; \u6d4f\u89c8\u5b58\u50a8<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u6d4f\u89c8<\/li>\n<li>\u5355\u51fb\u201c\u53d7\u4fe1\u4efb\u7684\u6839\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u201d<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1846\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-04-certstore.png\" alt=\"\" width=\"535\" height=\"524\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-04-certstore.png 535w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-04-certstore-300x294.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-04-certstore-306x300.png 306w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u9009\u62e9\u8bc1\u4e66\u5b58\u50a8<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5355\u51fb\u786e\u5b9a<\/li>\n<li>\u5355\u51fb\u5b8c\u6210\u3002<\/li>\n<li><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1847\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-05-certstoreselect.png\" alt=\"\" width=\"281\" height=\"265\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">\u5b8c\u6210\u8bc1\u4e66\u5bfc\u5165\u5411\u5bfc<\/p>\n<p style=\"text-align: justify;\"><strong>\u8bbe\u7f6e VPN\u8fde\u63a5<\/strong><\/p>\n<p style=\"text-align: justify;\">\u4e00\u65e6\u8bc1\u4e66\u6b63\u786e\u5bfc\u5165\uff0c\u5c31\u53ef\u4ee5\u521b\u5efa\u5ba2\u6237\u7aefVPN\u8fde\u63a5\u4e86\u3002 \u786e\u5207\u7684\u6b65\u9aa4\u5c06\u53d6\u51b3\u4e8e\u5ba2\u6237\u7aef\u4f7f\u7528\u7684Windows\u7248\u672c\uff0c\u4ee5\u4e0b\u662f\u5728Win10\u7684\u8bbe\u7f6e\u65b9\u6cd5\u3002<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5728\u5ba2\u6237\u7aefPC\u4e0a\u6253\u5f00\u7f51\u7edc\u548c\u5171\u4eab\u4e2d\u5fc3<\/li>\n<li>\u70b9\u51fb\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u8fde\u63a5\u6216\u7f51\u7edc<\/li>\n<li>\u9009\u62e9\u8fde\u63a5\u5230\u5de5\u4f5c\u533a<\/li>\n<li>\u5355\u51fb\u4e0b\u4e00\u6b65<\/li>\n<li>\u9009\u62e9\u5426\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8fde\u63a5<\/li>\n<li>\u5355\u51fb\u4e0b\u4e00\u6b65<\/li>\n<li>\u5355\u51fb\u4f7f\u7528\u6211\u7684Internet\u8fde\u63a5\uff08VPN\uff09<\/li>\n<li>\u5728Internet\u5730\u5740\u4e2d\u8f93\u5165\u670d\u52a1\u5668\u7684IP\u5730\u5740\u6216\u4e3b\u673a\u540d<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f<\/p>\n<p class=\"last\" style=\"text-align: justify;\">\u8fd9\u5fc5\u987b\u4e0e\u670d\u52a1\u5668\u8bc1\u4e66\u901a\u7528\u540d\u79f0\u6216\u914d\u7f6e\u7684\u5907\u7528\u540d\u79f0\u4e2d\u7684\u5185\u5bb9\u5339\u914d\uff01<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1848\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-06-certfinish.png\" alt=\"\" width=\"534\" height=\"522\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-06-certfinish.png 534w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-06-certfinish-300x293.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-06-certfinish-307x300.png 307w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\">Windows IKEv2 VPN\u8fde\u63a5\u8bbe\u7f6e<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u8f93\u5165\u76ee\u6807\u540d\u79f0<\/li>\n<li>\u5355\u51fb\u521b\u5efa<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1850\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-07-connectionname.png\" alt=\"\" width=\"614\" height=\"454\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-07-connectionname.png 614w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-07-connectionname-300x222.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-07-connectionname-406x300.png 406w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/p>\n<p style=\"text-align: justify;\">\u8fde\u63a5\u5df2\u7ecf\u6dfb\u52a0\uff0c\u4f46\u6709\u51e0\u4e2a\u9ed8\u8ba4\u503c\u9700\u8981\u8fdb\u884c\u4fee\u6539\u3002 \u8bf7\u53c2\u9605\u56fe\u4e0b\u56fe\u8fdb\u884c\u8bbe\u7f6e\uff1a<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5728Windows\u7684\u7f51\u7edc\u8fde\u63a5\/\u9002\u914d\u5668\u8bbe\u7f6e\u4e2d\uff0c\u627e\u5230\u4e0a\u9762\u521b\u5efa\u7684\u8fde\u63a5<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u8fde\u63a5<\/li>\n<li>\u5355\u51fb\u5c5e\u6027<\/li>\n<li>\u5355\u51fb\u5b89\u5168\u9009\u9879\u5361<\/li>\n<li>\u8bbe\u7f6eVPN\u7c7b\u578b\u4e3a\uff1aKEv2<\/li>\n<li>\u8bbe\u7f6e\u6570\u636e\u52a0\u5bc6\u9009\u9879\u4e3a \uff1a\u9700\u8981\u52a0\u5bc6\uff08\u5982\u679c\u670d\u52a1\u5668\u62d2\u7edd\u5c06\u65ad\u5f00\u8fde\u63a5\uff09<\/li>\n<li>\u8bbe\u7f6e\u8eab\u4efd\u9a8c\u8bc1\u4e3a\u4f7f\u7528\u53ef\u6269\u5c55\u8eab\u4efd\u9a8c\u8bc1\u534f\u8bae(EAP)(E):\u00a0Microsoft:\u5b89\u5168\u5bc6\u7801\u00a0(EAP-MSCHAP v2) (\u542f\u7528\u52a0\u5bc6)<\/li>\n<li>\u5355\u51fb\u786e\u5b9a<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1849\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-08-connectionsettings.png\" alt=\"\" width=\"363\" height=\"475\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-08-connectionsettings.png 363w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-windows-08-connectionsettings-229x300.png 229w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><em>Windows IKEv2 VPN\u8fde\u63a5\u5c5e\u6027<\/em><\/p>\n<p style=\"text-align: justify;\">\u73b0\u5728VPN\u8fde\u63a5\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u7981\u7528EKU\u68c0\u67e5<\/h2>\n<p style=\"text-align: justify;\">\u5728pfSense 2.2.4\u53ca\u66f4\u9ad8\u7248\u672c\u4e0a\u6b63\u786e\u8bbe\u7f6e\u4e86CA\u548c\u670d\u52a1\u5668\u8bc1\u4e66\u540e\uff0c\u7981\u7528EKU\u68c0\u67e5\u5df2\u7ecf\u4e0d\u662f\u5fc5\u9700\u7684\u4e86\u3002 \u5982\u679c\u51fa\u4e8e\u67d0\u79cd\u539f\u56e0\u5fc5\u987b\u4f7f\u7528\u4e0d\u6b63\u786e\u7684\u670d\u52a1\u5668\u8bc1\u4e66\uff0c\u5219\u53ef\u80fd\u9700\u8981\u5728Windows\u4e0a\u7981\u7528\u6269\u5c55\u5bc6\u94a5\u4f7f\u7528\u68c0\u67e5\u3002 \u7981\u7528\u6b64\u68c0\u67e5\u8fd8\u4f1a\u7981\u7528\u8bc1\u4e66\u7684\u516c\u7528\u540d\u79f0\u548cSAN\u5b57\u6bb5\u7684\u9a8c\u8bc1\uff0c\u56e0\u6b64\u53ef\u80fd\u4f1a\u6709\u5371\u9669\u3002 \u7981\u7528\u6b64\u670d\u52a1\u5668\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6765\u81ea\u540c\u4e00CA\u7684\u4efb\u4f55\u8bc1\u4e66\uff0c\u56e0\u6b64\u8bf7\u8c28\u614e\u64cd\u4f5c\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u7981\u7528\u6269\u5c55\u5bc6\u94a5\u7528\u6cd5\u68c0\u67e5\uff0c\u8bf7\u6253\u5f00Windows\u5ba2\u6237\u7aef\u4e0a\u7684\u6ce8\u518c\u8868\u7f16\u8f91\u5668\uff0c\u5e76\u5bfc\u822a\u5230\u5ba2\u6237\u7aef\u6ce8\u518c\u8868\u4e2d\u7684\u4ee5\u4e0b\u4f4d\u7f6e\uff1a<\/p>\n<pre>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\RasMan\\Parameters\\<\/pre>\n<p style=\"text-align: justify;\">\u6dfb\u52a0\u4e00\u4e2a\u540d\u4e3aDisableIKENameEkuCheck\u7684\u65b0DWORD\u6761\u76ee\uff0c\u5e76\u5c06\u5176\u503c\u8bbe\u7f6e\u4e3a\u201c1\u201d\u3002<\/p>\n<p style=\"text-align: justify;\">\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u542f\u52a8\u624d\u80fd\u6fc0\u6d3b\u8bbe\u7f6e\u3002<\/p>\n<h1 style=\"text-align: justify;\">iOS 11 IKEv2\u5ba2\u6237\u7aef\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u4eceIOS9\u5f00\u59cb\uff0ciOS\u5185\u7f6e\u4e86\u5bf9IKEv2\u7684\u652f\u6301\uff0c\u53ef\u4ee5\u4eceGUI\u914d\u7f6e\u800c\u4e0d\u9700\u8981vpn\u914d\u7f6e\u6587\u4ef6\u3002 \u548c\u5176\u4ed6\u5ba2\u6237\u4e00\u6837\uff0c\u5fc5\u987b\u5b89\u88c5CA\u8bc1\u4e66\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5bfc\u5165CA\u5230OS\u8bbe\u5907<\/h2>\n<p style=\"text-align: justify;\">\u5c06CA\u8bc1\u4e66\u5bfc\u5165\u5230\u5ba2\u6237\u7aef\u8bbe\u5907\u662f\u4e00\u4e2a\u76f8\u5bf9\u5bb9\u6613\u7684\u8fc7\u7a0b\u3002 \u7b2c\u4e00\u6b65\u662f\u5c06CA\u8bc1\u4e66\u62ff\u5230\u5ba2\u6237\u7aef\u8bbe\u5907\u4e0a\u3002 \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\uff0c\u5982\u56fe\u7528iOS\u90ae\u4ef6\u5ba2\u6237\u7aef\u63a5\u6536CA\u8bc1\u4e66<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1851\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-01-certmail.png\" alt=\"\" width=\"640\" height=\"563\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-01-certmail.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-01-certmail-300x264.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-01-certmail-341x300.png 341w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p style=\"text-align: justify;\">iOS\u90ae\u4ef6\u5ba2\u6237\u7aef\u63a5\u6536CA\u8bc1\u4e66<\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u4ece\u7535\u5b50\u90ae\u4ef6\u5b89\u88c5\u8bc1\u4e66\uff1a<\/li>\n<li>\u4ec5\u5c06CA\u8bc1\u4e66\uff08\u4e0d\u662f\u5bc6\u94a5\uff09\u53d1\u9001\u5230\u53ef\u4ece\u5ba2\u6237\u7aef\u8bbe\u5907\u8bbf\u95ee\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740<\/li>\n<li>\u6253\u5f00\u5ba2\u6237\u7aef\u8bbe\u5907\u4e0a\u7684\u90ae\u4ef6\u5e94\u7528\u7a0b\u5e8f<\/li>\n<li>\u6253\u5f00\u5305\u542bCA\u8bc1\u4e66\u7684\u90ae\u4ef6<\/li>\n<li>\u70b9\u51fb\u9644\u4ef6\u5b89\u88c5CA\u8bc1\u4e66<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1852\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-02-certinstall.png\" alt=\"\" width=\"640\" height=\"572\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-02-certinstall.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-02-certinstall-300x268.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-02-certinstall-336x300.png 336w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u70b9\u51fb\u53f3\u4e0a\u65b9\u7684\u201c\u5b89\u88c5\u201d\uff0c\u5c06\u51fa\u73b0\u4e00\u4e2a\u8b66\u544a\u5c4f\u5e55\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1853\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-03-certwarning.png\" alt=\"\" width=\"640\" height=\"612\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-03-certwarning.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-03-certwarning-300x287.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-03-certwarning-314x300.png 314w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<ul class=\" list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u70b9\u51fb\u53f3\u4e0a\u65b9\u7684\u5b89\u88c5\u518d\u6b21\u786e\u8ba4\uff0c\u7136\u540e\u663e\u793a\u4e00\u4e2a\u6700\u7ec8\u63d0\u793a\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/li>\n<li>\n<p class=\"caption\">\u5728\u786e\u8ba4\u63d0\u793a\u5904\u70b9\u51fb\u5b89\u88c5\uff0c\u73b0\u5728\u5c06CA\u8bc1\u4e66\u5b58\u50a8\u4e3a\u53d7\u4fe1\u4efb\u7684\u6761\u76ee\u3002<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1854\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-04-certconfirm.png\" alt=\"\" width=\"640\" height=\"270\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-04-certconfirm.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-04-certconfirm-300x127.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-04-certconfirm-500x211.png 500w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h2 style=\"text-align: justify;\">\u8bbe\u7f6eVPN\u8fde\u63a5<\/h2>\n<p style=\"text-align: justify;\">\u4e00\u65e6\u5b89\u88c5\u4e86CA\u8bc1\u4e66\uff0c\u5c31\u5fc5\u987b\u914d\u7f6e\u4e00\u4e2aVPN\u6761\u76ee\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u8fdb\u5165\u624b\u673a\u7684\u8bbe\u7f6e&gt;\u901a\u7528&gt;VPN<\/li>\n<li>\u6dfb\u52a0VPN\u914d\u7f6e<\/li>\n<li>\u8bbe\u7f6e\u7c7b\u578b\u4e3a<em>IKEv2<\/em>\u00a0(default)<\/li>\n<li>\u8f93\u5165\u4e00\u4e2a\u63cf\u8ff0(\u4f8b\u5982\u00a0ExampleCo VPN)<\/li>\n<li>\u5728\u670d\u52a1\u5668\u4e2d\u8f93\u5165\u9632\u706b\u5899\u4e3b\u673a\u540d\u6216IP\u5730\u5740<\/li>\n<li>\u5728Remote ID\u4e2d\u518d\u6b21\u8f93\u5165\u9632\u706b\u5899\u7684\u4e3b\u673a\u540d<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f:\u8fd9\u5fc5\u987b\u5339\u914d\u670d\u52a1\u5668\u8bc1\u4e66\u7684\u901a\u7528\u540d\u79f0\u548cSAN\u6761\u76ee\u3002<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u672c\u5730ID\u7559\u7a7a<\/li>\n<li>\u5c06\u7528\u6237\u9274\u5b9a\u8bbe\u7f6e\u4e3a\u7528\u6237\u540d<\/li>\n<li>\u8f93\u5165\u7528\u6237\u540d\u6216\u5bc6\u7801<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f:\u4f7f\u7528EAP-MSCHAPv2\uff0c\u7528\u6237\u540d\u662f\u5728\u201cVPN\u201d&gt;\u201cIPsec\u201d\u4e0b\u7684\u201c\u9884\u5171\u4eab\u5bc6\u94a5\u201d\u9009\u9879\u5361\u4e0a\u4e3a\u7528\u6237\u6761\u76ee\u914d\u7f6e\u7684\u6807\u8bc6\u7b26\u3002 \u4f7f\u7528EAP-RADIUS\uff0c\u8fd9\u5c06\u662f\u5728RADIUS\u670d\u52a1\u5668\u4e0a\u8bbe\u7f6e\u7684\u7528\u6237\u540d\u3002<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u70b9\u51fb\u5b8c\u6210<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1855\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-05-vpnsettings.png\" alt=\"\" width=\"640\" height=\"1136\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-05-vpnsettings.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-05-vpnsettings-577x1024.png 577w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-05-vpnsettings-169x300.png 169w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><em>iOS IKEv2\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/em><\/p>\n<h2 style=\"text-align: justify;\">\u8fde\u63a5\u548c\u65ad\u5f00<\/h2>\n<p style=\"text-align: justify;\">\u901a\u8fc7\u8bbf\u95ee\u8bbe\u7f6e\u4e0b\u7684VPN\u6761\u76ee\u53ef\u4ee5\u8fde\u63a5\u6216\u65ad\u5f00VPN\u3002\u00a0\u8fd9\u4e24\u4e2a\u5730\u65b9\u7a0d\u6709\u4e0d\u540c\uff1a<\/p>\n<ol class=\"arabic simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u8bbe\u7f6e VPN<\/li>\n<li>\u8bbe\u7f6e &gt;\u901a\u7528 &gt; VPN<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">\u4e00\u65e6\u5b58\u5728\u81f3\u5c11\u4e00\u4e2aVPN\u8fde\u63a5\uff0c\u76f4\u63a5\u4f1a\u5728\u8bbe\u7f6e\u91cc\u9762\u51fa\u73b0VPN\u6761\u76ee\u3002<\/p>\n<p style=\"text-align: justify;\">\u4e00\u65e6\u5728VPN\u5217\u8868\u4e2d\uff0c\u5fc5\u987b\u9009\u62e9VPN\u6761\u76ee\uff08\u5728\u5176\u6761\u76ee\u65c1\u8fb9\u663e\u793a\u590d\u9009\u6807\u8bb0\uff09\uff0c\u7136\u540e\u6ed1\u5757\u53ef\u4ee5\u79fb\u52a8\u5230\u201c\u5f00\u201d\u4f4d\u7f6e\u4ee5\u8fde\u63a5\u3002<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1856\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-06-vpnlist.png\" alt=\"\" width=\"640\" height=\"617\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-06-vpnlist.png 640w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-06-vpnlist-300x289.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/ipsec-mobile-ikev2-ios-06-vpnlist-311x300.png 311w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p class=\"caption\" style=\"text-align: justify;\"><em>IOS VPN\u5217\u8868<\/em><\/p>\n<h2 style=\"text-align: justify;\"><strong>\u6d4b\u8bd5IPsec\u8fde\u63a5<\/strong><\/h2>\n<p style=\"text-align: justify;\">\u5bf9\u4e8eIPsec\u96a7\u9053\u6765\u8bf4\uff0c\u6700\u7b80\u5355\u7684\u6d4b\u8bd5\u5c31\u662f\u4ece\u9632\u706b\u5899\u540e\u9762\u7684\u4e00\u4e2a\u5ba2\u6237\u7aefping\u5230\u53e6\u4e00\u4e2a\u5ba2\u6237\u7aef\u3002 \u5982\u679c\u80fdping\u901a\uff0c\u96a7\u9053\u5c31\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u4e86\u3002<\/p>\n<p style=\"text-align: justify;\">\u6b63\u5982pfSense\u542f\u52a8\u7684\u6d41\u91cf\u548cIPsec\u4e2d\u6240\u63d0\u5230\u7684\uff0c\u4ecepfSense\u9632\u706b\u5899\u542f\u52a8\u7684\u6d41\u91cf\u901a\u5e38\u4e0d\u4f1a\u5728\u6ca1\u6709\u989d\u5916\u8def\u7531\u7684\u60c5\u51b5\u4e0b\u7a7f\u8d8a\u96a7\u9053\uff0c\u4f46\u662f\u901a\u8fc7PING\u6307\u5b9a\u53d1\u51fa\u7684\u6e90\uff0c\u53ef\u4ee5\u5feb\u901f\u6d4b\u8bd5\u9632\u706b\u5899\u672c\u8eab\u7684\u8fde\u63a5\u3002<\/p>\n<p style=\"text-align: justify;\">\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6267\u884c\u8fd9\u4e2a\u6d4b\u8bd5\uff1aGUI\u548cshell\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5728GUI\u4e2d\u4f7f\u7528Ping\u5de5\u5177<\/h2>\n<p style=\"text-align: justify;\">\u5728GUI\u4e2d\uff0c\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf\u8bca\u65ad<strong>&gt; Ping<\/strong><\/li>\n<li>\u5728\u4e3b\u673a\u5b57\u6bb5\u4e2d\u8f93\u5165\u4e00\u4e2a\u8fdc\u7a0b\u8def\u7531\u5668\u8fdc\u7a0b\u96a7\u9053\u5b50\u7f51\u7684IP\uff08\u4f8b\u598210.5.0.1\uff09<\/li>\n<li>\u534f\u8bae\u9009<strong>\u00a0<\/strong><em>IPv4<\/em><\/li>\n<li>\u6e90\u5730\u5740\uff1a\u5728\u672c\u5730\u9632\u706b\u5899\u4e0a\u9009\u62e9\u4e00\u4e2a\u63a5\u53e3\u6216IP\u5730\u5740\uff08\u4f8b\u5982\uff0c\u9009\u62e9LAN\u4f5c\u4e3aLAN IP\u5730\u5740\uff09<\/li>\n<li>\u6700\u5927ping\u6570\uff0c\u9009\u9ed8\u8ba4<em>3<\/em><\/li>\n<li>\u5355\u51fb<strong>Ping<\/strong><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u5982\u679c\u96a7\u9053\u6b63\u5e38\u5de5\u4f5c\uff0c\u5219\u9632\u706b\u5899\u5c06\u4ece\u7ad9\u70b9B\u7684\u5c40\u57df\u7f51\u5730\u5740\u63a5\u6536ping\u56de\u590d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u6700\u521d\u6ca1\u6709\u5efa\u7acb\u96a7\u9053\uff0c\u90a3\u4e48\u5728\u96a7\u9053\u534f\u5546\u8fc7\u7a0b\u4e2d\u4e22\u5931\u51e0\u4e2aping\u662f\u5f88\u5e38\u89c1\u7684\uff0c\u6240\u4ee5\u5982\u679c\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u5931\u8d25\uff0c\u9009\u62e9\u66f4\u591a\u7684\u6b21\u6570\u6216\u91cd\u65b0\u8fd0\u884c\u6d4b\u8bd5\u662f\u4e00\u4e2a\u597d\u7684\u505a\u6cd5\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5728Shell\u4e2d\u4f7f\u7528Ping\u547d\u4ee4<\/h2>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u63a7\u5236\u53f0\u4e0a\u7684shell\u6216\u901a\u8fc7ssh\uff0c\u53ef\u4ee5\u624b\u52a8\u8fd0\u884cping\u547d\u4ee4\uff0c\u5e76\u53ef\u4ee5\u4f7f\u7528-S\u53c2\u6570\u6307\u5b9a\u6e90\u5730\u5740\u3002 \u5982\u679c\u4e0d\u4f7f\u7528-s\u6216\u9759\u6001\u8def\u7531\uff0cping\u751f\u6210\u7684\u6570\u636e\u5305\u5c06\u4e0d\u4f1a\u5c1d\u8bd5\u7a7f\u8d8a\u96a7\u9053\u3002\u00a0\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6d4b\u8bd5\u8bed\u6cd5\uff1a<\/p>\n<pre>#\u00a0\u00a0ping\u00a0-S\u00a0&lt;Local\u00a0LAN\u00a0IP&gt;\u00a0&lt;Remote\u00a0LAN\u00a0IP&gt;<\/pre>\n<p style=\"text-align: justify;\">\u672c\u5730LAN IP\u662f\u96a7\u9053\u7684\u672c\u5730\u5b50\u7f51\u5b9a\u4e49\u7684\u5185\u90e8\u63a5\u53e3\u4e0a\u7684IP\u5730\u5740\uff0c\u800c\u8fdc\u7a0bLAN IP\u662f\u8fdc\u7a0b\u8def\u7531\u5668\u4e0a\u5217\u51fa\u7684\u8fdc\u7a0b\u5b50\u7f51\u5185\u7684IP\u5730\u5740\u3002 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u8fd9\u53ea\u662f\u5404\u4e2apfSense\u9632\u706b\u5899\u7684LAN IP\u5730\u5740\u3002 \u6839\u636e\u4e0a\u9762\u7684\u7ad9\u70b9\u5230\u7ad9\u70b9\u793a\u4f8b\uff0c\u8fd9\u662f\u4eceSite A\u9632\u706b\u5899\u7684\u63a7\u5236\u53f0\u8f93\u5165\u7684\u5185\u5bb9\uff1a<\/p>\n<pre>#\u00a0\u00a0ping\u00a0-S\u00a010.3.0.1\u00a010.5.0.1<\/pre>\n<p style=\"text-align: justify;\">\u5982\u679c\u96a7\u9053\u6b63\u5e38\u5de5\u4f5c\uff0c\u5219\u9632\u706b\u5899\u5c06\u4ece\u7ad9\u70b9B\u7684\u5c40\u57df\u7f51\u5730\u5740\u63a5\u6536ping\u56de\u590d\u3002<\/p>\n<h1 style=\"text-align: justify;\"><strong>IPsec\u6545\u969c\u6392\u9664<\/strong><\/h1>\n<p style=\"text-align: justify;\">\u7531\u4e8eIPsec\u7684\u6311\u5254\u6027\u8d28\uff0c\u51fa\u73b0\u95ee\u9898\u5e76\u4e0d\u7f55\u89c1\u3002 \u5e78\u8fd0\u7684\u662f\uff0c\u6709\u4e00\u4e9b\u57fa\u672c\u7684\u6545\u969c\u6392\u9664\u6b65\u9aa4\u53ef\u4ee5\u7528\u6765\u8ffd\u8e2a\u6f5c\u5728\u7684\u95ee\u9898\u3002<\/p>\n<h2 style=\"text-align: justify;\">IPsec\u65e5\u5fd7<\/h2>\n<p style=\"text-align: justify;\">\u672c\u7ae0\u4e2d\u4ecb\u7ecd\u7684\u4f8b\u5b50\u6709\u4e3a\u4e86\u7b80\u6d01\u8d77\u89c1\u800c\u7f16\u8f91\u7684\u65e5\u5fd7\uff0c\u4f46\u4ecd\u6709\u91cd\u8981\u7684\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align: justify;\">IPsec\u65e5\u5fd7\u53ef\u4ee5\u88ab\u914d\u7f6e\u4e3a\u63d0\u4f9b\u66f4\u591a\u6709\u7528\u7684\u4fe1\u606f\u3002\u00a0\u5728pfSense\u4e2d\u8981\u914d\u7f6eIPsec\u65e5\u5fd7\u8bb0\u5f55\u6765\u8bca\u65ad\u96a7\u9053\u95ee\u9898\uff0c\u8bf7\u53c2\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ul class=\"simple list-paddingleft-2\" style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230VPN &gt; IPsec\u9ad8\u7ea7\u8bbe\u7f6e\u9009\u9879\u5361<\/li>\n<li>\u5c06<strong>IKE SA<\/strong>\u3001<strong>IKE Child SA<\/strong>\u3001<strong>Configuration Backend<\/strong>\u00a0\u8bbe\u7f6e\u4e3a\u8bca\u65ad<\/li>\n<li>\u5c06\u6240\u6709\u5176\u4ed6\u65e5\u5fd7\u8bbe\u7f6e\u8bbe\u7f6e\u4e3a\u63a7\u5236<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u66f4\u6539\u65e5\u5fd7\u8bb0\u5f55\u9009\u9879\u4e0d\u4f1a\u4e2d\u65adIPsec\u6d3b\u52a8\uff0c\u4e5f\u4e0d\u9700\u8981\u4e3a\u5f53\u524d\u7248\u672c\u7684pfSense\u4e0a\u7684IPsec\u8f93\u5165\u7279\u5b9a\u7684\u201c\u8c03\u8bd5\u6a21\u5f0f\u201d\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u96a7\u9053\u4e0d\u80fd\u5efa\u7acb<\/h2>\n<p style=\"text-align: justify;\">\u9996\u5148\u68c0\u67e5\u7cfb\u7edf\u72b6\u6001&gt;\u7cfb\u7edf\u670d\u52a1\u7684\u72b6\u6001\u3002 \u5982\u679cIPsec\u670d\u52a1\u5df2\u505c\u6b62\uff0c\u8bf7\u5728VPN&gt; IPsec\u68c0\u67e5\u5b83\u662f\u5426\u5df2\u542f\u7528\u3002 \u53e6\u5916\uff0c\u5982\u679c\u4f7f\u7528\u79fb\u52a8\u5ba2\u6237\u7aef\uff0c\u8bf7\u786e\u4fdd\u5728\u79fb\u52a8\u5ba2\u6237\u7aef\u4e0a\u7684\u542f\u7528\u6846\u4e5f\u88ab\u9009\u4e2d\u3002<\/p>\n<p style=\"text-align: justify;\">\u5982\u679c\u670d\u52a1\u6b63\u5728\u8fd0\u884c\uff0c\u8bf7\u68c0\u67e5\u9632\u706b\u5899\u65e5\u5fd7\uff08\u7cfb\u7edf\u72b6\u6001&gt;\u7cfb\u7edf\u65e5\u5fd7\uff0c\u9632\u706b\u5899\u9009\u9879\u5361\uff09\u4ee5\u67e5\u770b\u8fde\u63a5\u662f\u5426\u88ab\u963b\u6b62\uff0c\u5982\u679c\u662f\uff0c\u8bf7\u6dfb\u52a0\u89c4\u5219\u4ee5\u5141\u8bb8\u963b\u6b62\u7684\u6d41\u91cf\u3002 \u901a\u5e38\u4e3aIPsec\u81ea\u52a8\u6dfb\u52a0\u89c4\u5219\uff0c\u4f46\u53ef\u4ee5\u7981\u7528\u8be5\u529f\u80fd\u3002<\/p>\n<p style=\"text-align: justify;\">IPsec\u96a7\u9053\u8fde\u63a5\u5931\u8d25\u7684\u6700\u5e38\u89c1\u539f\u56e0\u662f\u914d\u7f6e\u4e0d\u5339\u914d\u3002 \u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5b83\u662f\u5f88\u5c0f\u7684\uff0c\u4f8b\u5982DH\u7ec4\u5728A\u4fa7\u8bbe\u7f6e\u4e3a1\uff0c\u5728B\u4fa7\u8bbe\u7f6e\u4e3a2\uff0c\u6216\u8005\u5728\u4e00\u4fa7\u4e3a\/ 24\u6216\u8005\u5728\u53e6\u4e00\u4fa7\u4e3a\/ 32\u7684\u5b50\u7f51\u63a9\u7801\u3002 \u4e00\u4e9b\u8def\u7531\u5668\uff08Linksys\uff09\u4e5f\u559c\u6b22\u9690\u85cf\u201c\u9ad8\u7ea7\u201d\u6309\u94ae\u80cc\u540e\u7684\u67d0\u4e9b\u9009\u9879\u3002 \u5927\u91cf\u7684\u53cd\u590d\u8bd5\u9a8c\u53ef\u80fd\u4f1a\u6d89\u53ca\u5230\u5927\u91cf\u7684\u65e5\u5fd7\u9605\u8bfb\uff0c\u4f46\u662f\u786e\u4fdd\u53cc\u65b9\u7cbe\u786e\u5339\u914d\u6700\u6709\u5e2e\u52a9\u3002<\/p>\n<p style=\"text-align: justify;\">\u6839\u636e\u96a7\u9053\u4e24\u7aef\u7684\u4e92\u8054\u7f51\u8fde\u63a5\u60c5\u51b5\uff0c\u4e00\u65b9\u6216\u53e6\u4e00\u65b9\u6d89\u53ca\u7684\u8def\u7531\u5668\u4e5f\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u5904\u7406IPsec\u901a\u4fe1\u3002 \u8fd9\u662f\u79fb\u52a8\u5ba2\u6237\u7aef\u548cNAT\u5728\u5b9e\u9645IPsec\u7aef\u70b9\u4e4b\u5916\u6d89\u53ca\u7684\u7f51\u7edc\u5f15\u8d77\u7684\u66f4\u5927\u7684\u5173\u6ce8\u3002 \u4e00\u822c\u6765\u8bf4\uff0cESP\u534f\u8bae\u5b58\u5728\u4e00\u76f4\u88ab\u963b\u585e\u6216\u5904\u7406\u4e0d\u5f53\u7684\u95ee\u9898\u3002 NAT\u7a7f\u8d8a\uff08NAT-T\uff09\u5c06ESP\u5c01\u88c5\u5728UDP\u7aef\u53e34500\u6d41\u91cf\u4e2d\uff0c\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u96a7\u9053\u5df2\u5efa\u7acb\uff0c\u4f46\u6ca1\u6709\u6d41\u91cf\u4f20\u9012<\/h2>\n<p style=\"text-align: justify;\">\u5982\u679c\u96a7\u9053\u5df2\u5efa\u7acb\uff0c\u4f46\u6ca1\u6709\u6d41\u91cf\u901a\u8fc7\uff0c\u9996\u5148\u5e94\u68c0\u67e5IPsec\u9632\u706b\u5899\u89c4\u5219\u3002\u5982\u679c\u7ad9\u70b9A\u65e0\u6cd5\u5230\u8fbe\u7ad9\u70b9B\uff0c\u8bf7\u68c0\u67e5\u7ad9\u70b9B\u7684\u9632\u706b\u5899\u65e5\u5fd7\u548c\u89c4\u5219\u3002\u76f8\u53cd\uff0c\u5982\u679c\u7ad9\u70b9B\u4e0d\u80fd\u8054\u7cfb\u7ad9\u70b9A\uff0c\u8bf7\u68c0\u67e5\u7ad9\u70b9A\u7684\u9632\u706b\u5899\u65e5\u5fd7\u548c\u89c4\u5219\u3002\u5728\u67e5\u770b\u89c4\u5219\u4e4b\u524d\uff0c\u8bf7\u5728\u201c\u9632\u706b\u5899\u201d\u9009\u9879\u5361\u4e0a\u7684\u7cfb\u7edf\u72b6\u6001&gt;\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u68c0\u67e5\u9632\u706b\u5899\u65e5\u5fd7\u3002\u5982\u679c\u5b58\u5728\u963b\u6b62\u7684\u6761\u76ee\u6d89\u53caIPsec\u96a7\u9053\u4e2d\u4f7f\u7528\u7684\u5b50\u7f51\uff0c\u5219\u7ee7\u7eed\u68c0\u67e5\u89c4\u5219\u3002<\/p>\n<p style=\"text-align: justify;\">IPsec\u6216enc0\u63a5\u53e3\u4e0a\u7684\u963b\u585e\u6570\u636e\u5305\u8868\u660e\u96a7\u9053\u672c\u8eab\u5df2\u5efa\u7acb\uff0c\u4f46\u6d41\u91cf\u6b63\u5728\u88ab\u9632\u706b\u5899\u89c4\u5219\u963b\u6b62\u3002\u5728\u5c40\u57df\u7f51\u6216\u5176\u4ed6\u5185\u90e8\u63a5\u53e3\u4e0a\u963b\u585e\u7684\u6570\u636e\u5305\u53ef\u80fd\u8868\u793a\u5728\u8be5\u63a5\u53e3\u89c4\u5219\u96c6\u4e0a\u53ef\u80fd\u9700\u8981\u9644\u52a0\u7684\u89c4\u5219\uff0c\u4ee5\u5141\u8bb8\u6765\u81ea\u5185\u90e8\u5b50\u7f51\u7684\u6d41\u91cf\u5230\u8fbeIPsec\u96a7\u9053\u7684\u8fdc\u7aef\u3002 WAN\u6216OPT WAN\u63a5\u53e3\u4e0a\u7684\u963b\u585e\u6570\u636e\u5305\u5c06\u963b\u6b62\u5efa\u7acb\u96a7\u9053\u3002\u901a\u5e38\u53ea\u6709\u5f53\u81ea\u52a8VPN\u89c4\u5219\u88ab\u7981\u7528\u65f6\u624d\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002\u6dfb\u52a0\u4e00\u4e2a\u89c4\u5219\u5141\u8bb8\u6765\u81ea\u8be5\u8fdc\u7a0bIP\u5730\u5740\u7684ESP\u534f\u8bae\u548cUDP\u7aef\u53e3500\u5c06\u5141\u8bb8\u5efa\u7acb\u96a7\u9053\u3002\u5728\u79fb\u52a8\u96a7\u9053\u7684\u60c5\u51b5\u4e0b\uff0c\u5141\u8bb8\u4efb\u4f55\u6765\u6e90\u7684\u6d41\u91cf\u8fde\u63a5\u5230\u8fd9\u4e9b\u7aef\u53e3\u3002<\/p>\n<p style=\"text-align: justify;\">IPsec\u63a5\u53e3\u7684\u89c4\u5219\u53ef\u4ee5\u5728IPsec\u9009\u9879\u5361\u4e0a\u7684\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565\u4e0b\u627e\u5230\u3002\u5e38\u89c1\u7684\u9519\u8bef\u5305\u62ec\u8bbe\u7f6e\u89c4\u5219\u53ea\u5141\u8bb8TCP\u901a\u4fe1\uff0c\u8fd9\u610f\u5473\u7740\u50cfICMP ping\u548cDNS\u8fd9\u6837\u7684\u534f\u8bae\u4e0d\u80fd\u901a\u8fc7\u96a7\u9053\u5de5\u4f5c\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8bbe\u7f6e\u4e0d\u5339\u914d\u4e5f\u53ef\u80fd\u5bfc\u81f4\u6d41\u91cf\u65e0\u6cd5\u901a\u8fc7\u96a7\u9053\u3002\u5728\u4e00\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5728\u4e00\u4e2a\u975epfSense\u9632\u706b\u5899\u4e0a\u5b9a\u4e49\u7684\u5b50\u7f51\u662f192.0.2.1\/24\uff0c\u800c\u5728pfSense\u9632\u706b\u5899\u4e0a\u662f192.0.2.0\/24\u3002\u5efa\u7acb\u4e86\u96a7\u9053\uff0c\u4f46\u662f\u76f4\u5230\u5b50\u7f51\u88ab\u7ea0\u6b63\uff0c\u6d41\u91cf\u624d\u80fd\u901a\u8fc7\u3002<\/p>\n<p style=\"text-align: justify;\">\u8def\u7531\u95ee\u9898\u662f\u53e6\u4e00\u79cd\u53ef\u80fd\u6027\u3002\u4f7f\u7528\u8ddf\u8e2a\u8def\u7531\uff08Windows\u4e0a\u7684tracert\uff09\u68c0\u67e5\u96a7\u9053\u53e6\u4e00\u4fa7\u7684IP\u5730\u5740\u53ef\u4ee5\u5e2e\u52a9\u8ffd\u8e2a\u8fd9\u4e9b\u7c7b\u578b\u7684\u95ee\u9898\u3002\u91cd\u590d\u96a7\u9053\u4e24\u4fa7\u7684\u6d4b\u8bd5\u3002\u5f53\u4f7f\u7528\u8ddf\u8e2a\u8def\u7531\uff08traceroute\uff09\u65f6\uff0c\u8fdb\u5165\u548c\u79bb\u5f00IPsec\u96a7\u9053\u7684\u6d41\u91cf\u4f3c\u4e4e\u7f3a\u5c11\u4e00\u4e9b\u4e2d\u95f4\u8df3\u8dc3\u3002\u8fd9\u662f\u6b63\u5e38\u7684\uff0c\u4e5f\u662fIPsec\u5de5\u4f5c\u7684\u4e00\u90e8\u5206\u3002\u6ca1\u6709\u6b63\u786e\u8fdb\u5165IPsec\u96a7\u9053\u7684\u6d41\u91cf\u5c06\u663e\u793a\u4e3a\u79bb\u5f00WAN\u63a5\u53e3\u5e76\u901a\u8fc7Internet\u5411\u5916\u8def\u7531\uff0c\u8fd9\u5c06\u6307\u5411\u8def\u7531\u95ee\u9898\uff0c\u5982pfSense\u4e0d\u662f\u7f51\u5173\uff08\u5982\u5728\u8def\u7531\u548c\u7f51\u5173\u6ce8\u610f\u4e8b\u9879\u4e2d\uff09\u3001\u9519\u8bef\u5730\u6307\u5b9a\u5728\u96a7\u9053\u5b9a\u4e49\u4e0a\u7684\u8fdc\u7a0b\u5b50\u7f51\u3001\u6216\u5df2\u7981\u7528\u96a7\u9053\u7b49 \u3002<\/p>\n<h2 style=\"text-align: justify;\">\u4e00\u4e9b\u4e3b\u673a\u5de5\u4f5c\uff0c\u4f46\u4e0d\u662f\u5168\u90e8<\/h2>\n<p style=\"text-align: justify;\">\u5982\u679c\u901a\u8fc7VPN\u7684\u67d0\u4e9b\u4e3b\u673a\u4e4b\u95f4\u7684\u6d41\u91cf\u529f\u80fd\u6b63\u5e38\uff0c\u4f46\u53e6\u5916\u4e00\u4e9b\u4e3b\u673a\u4e0d\u901a\u8fc7\uff0c\u5219\u901a\u5e38\u662f\u4ee5\u4e0b\u56db\u79cd\u60c5\u51b5\u4e4b\u4e00\uff1a<\/p>\n<p style=\"text-align: justify;\"><strong>1.\u7f3a\u5c11\u3001\u4e0d\u6b63\u786e\u6216\u88ab\u5ffd\u7565\u7684\u9ed8\u8ba4\u7f51\u5173<\/strong><strong>:<\/strong>\u5982\u679c\u8bbe\u5907\u6ca1\u6709\u9ed8\u8ba4\u7f51\u5173\uff0c\u6216\u8005\u6709\u4e00\u4e2a\u6307\u5411pfSense\u9632\u706b\u5899\u4e4b\u5916\u7684\u5176\u4ed6\u8bbe\u5907\uff0c\u5219\u4e0d\u77e5\u9053\u5982\u4f55\u6b63\u786e\u8fd4\u56deVPN\u4e0a\u7684\u8fdc\u7a0b\u7f51\u7edc\u3002\u6709\u4e9b\u8bbe\u5907\uff0c\u5373\u4f7f\u4f7f\u7528\u6307\u5b9a\u7684\u9ed8\u8ba4\u7f51\u5173\uff0c\u4e5f\u4e0d\u4f7f\u7528\u8be5\u7f51\u5173\u3002\u8fd9\u5df2\u7ecf\u51fa\u73b0\u5728\u5404\u79cd\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e0a\uff0c\u5305\u62ecIP\u6444\u50cf\u673a\u548c\u4e00\u4e9b\u6253\u5370\u673a\u3002\u9664\u4e86\u4fee\u590d\u8bbe\u5907\u4e0a\u7684\u8f6f\u4ef6\u4e4b\u5916\uff0c\u6ca1\u6709\u4ec0\u4e48\u53ef\u4ee5\u505a\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u8fde\u63a5\u5230\u5305\u542b\u8be5\u8bbe\u5907\u7684\u7f51\u7edc\u7684\u9632\u706b\u5899\u7684\u5185\u90e8\u63a5\u53e3\u4e0a\u8fd0\u884c\u6570\u636e\u5305\u6355\u83b7\u6765\u9a8c\u8bc1\u3002\u4f7f\u7528tcpdump\u8fdb\u884c\u6545\u969c\u6392\u9664\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728IPsec\u96a7\u9053\u4e2d\u627e\u5230\u4e00\u4e2aIPsec\u7279\u5b9a\u7684\u793a\u4f8b\u3002\u5982\u679c\u89c2\u5bdf\u5230\u6d41\u91cf\u79bb\u5f00\u9632\u706b\u5899\u7684\u5185\u90e8\u63a5\u53e3\uff0c\u4f46\u6ca1\u6709\u5e94\u7b54\u8fd4\u56de\uff0c\u5219\u8bbe\u5907\u6ca1\u6709\u6b63\u786e\u8def\u7531\u5176\u56de\u590d\u6d41\u91cf\uff0c\u6216\u8005\u53ef\u80fd\u901a\u8fc7\u672c\u5730\u5ba2\u6237\u7aef\u9632\u706b\u5899\u963b\u6b62\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong><strong>\u5b50\u7f51\u63a9\u7801\u4e0d\u6b63\u786e:<\/strong>\u5982\u679c\u4e00\u7aef\u4f7f\u7528\u7684\u5b50\u7f51\u4e3a10.0.0.0\/24\uff0c\u53e6\u4e00\u7aef\u4e3a10.254.0.0\/24\uff0c\u5e76\u4e14\u4e3b\u673a\u7684\u5b50\u7f51\u63a9\u7801\u4e3a255.0.0.0\u6216\/ 8\uff0c\u5219\u6c38\u8fdc\u4e0d\u80fd\u901a\u8fc7VPN\u8fdb\u884c\u901a\u4fe1 \u56e0\u4e3a\u5b83\u8ba4\u4e3a\u8fdc\u7a0bVPN\u5b50\u7f51\u662f\u672c\u5730\u7f51\u7edc\u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u8def\u7531\u5c06\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002 \u914d\u7f6e\u4e2d\u65ad\u7684\u7cfb\u7edf\u5c06\u5c1d\u8bd5\u901a\u8fc7ARP\u800c\u4e0d\u662f\u4f7f\u7528\u7f51\u5173\u8054\u7cfb\u8fdc\u7a0b\u7cfb\u7edf\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong><strong>\u4e3b\u673a\u9632\u706b\u5899<\/strong><strong>:<\/strong>\u5982\u679c\u76ee\u6807\u4e3b\u673a\u4e0a\u6709\u9632\u706b\u5899\uff0c\u5219\u53ef\u80fd\u4e0d\u5141\u8bb8\u8fde\u63a5\u3002 \u68c0\u67e5Windows\u9632\u706b\u5899\uff0ciptables\u6216\u7c7b\u4f3c\u7684\u5b9e\u7528\u7a0b\u5e8f\uff0c\u53ef\u80fd\u4f1a\u963b\u6b62\u4e3b\u673a\u5904\u7406\u6d41\u91cf\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>4.<\/strong><strong>pfSense\u4e0a\u7684\u9632\u706b\u5899\u89c4\u5219<\/strong><strong>:<\/strong>\u786e\u4fdd\u4e24\u7aef\u7684\u89c4\u5219\u5141\u8bb8\u6240\u9700\u7684\u7f51\u7edc\u6d41\u91cf\u3002<\/p>\n<p style=\"text-align: justify;\"><strong>\u8fde\u63a5\u6302\u8d77<\/strong><\/p>\n<p style=\"text-align: justify;\">IPsec\u4e0d\u80fd\u6b63\u5e38\u5904\u7406\u5206\u7247\u6570\u636e\u5305\u3002 \u8fd9\u4e9b\u95ee\u9898\u4e2d\u7684\u8bb8\u591a\u95ee\u9898\u591a\u5e74\u6765\u5df2\u7ecf\u5f97\u5230\u89e3\u51b3\uff0c\u4f46\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u6ede\u540e\u7684\u95ee\u9898\u3002 \u5982\u679c\u4ec5\u5728\u4f7f\u7528\u7279\u5b9a\u534f\u8bae\uff08SMB\uff0cRDP\u7b49\uff09\u65f6\u624d\u4f1a\u770b\u5230\u6302\u8d77\u6216\u4e22\u5305\uff0c\u5219\u53ef\u80fd\u9700\u8981VPN\u8bbe\u7f6eMSS\u3002 \u53ef\u4ee5\u5728\u201cVPN&gt; IPsec\u201d\u7684\u201c\u9ad8\u7ea7\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e0a\u6fc0\u6d3bMSS\u9650\u5236\u3002 \u5728\u8be5\u9875\u9762\u4e0a\uff0c\u9009\u4e2d\u542f\u7528VPN\u901a\u4fe1\u4e0a\u7684MSS\u9650\u5236\uff0c\u7136\u540e\u8f93\u5165\u4e00\u4e2a\u503c\u3002 \u4e00\u5f00\u59cb\u53ef\u4ee5\u8f93\u51651400\uff0c\u6162\u6162\u5730\u589e\u52a0MSS\u503c\uff0c\u76f4\u5230\u6b63\u5e38\u8fde\u63a5\uff0c\u7136\u540e\u518d\u964d\u4f4e\u4e00\u70b9\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u5d4c\u5165\u5f0f\u8def\u7531\u5668\u4e0a\u7684\u201c\u968f\u673a\u201d\u96a7\u9053\u65ad\u5f00\/ DPD\u6545\u969c<\/h2>\n<p style=\"text-align: justify;\">\u5728\u5176\u4ed6\u5d4c\u5165\u5f0f\u786c\u4ef6\u4e0a\uff0c\u5982\u679cIPsec\u96a7\u9053\u88ab\u4e22\u5f03\uff0c\u5219\u53ef\u80fd\u9700\u8981\u7981\u7528\u96a7\u9053\u4e0a\u7684DPD\u3002 \u8fd9\u79cd\u6545\u969c\u503e\u5411\u4e0e\u9ad8\u5e26\u5bbd\u4f7f\u7528\u65f6\u95f4\u76f8\u5173\u8054\u3002 \u5f53\u4f4e\u529f\u8017\u7cfb\u7edf\u4e0a\u7684CPU\u53d1\u9001IPsec\u901a\u4fe1\u6216\u5360\u7528\u5176\u4ed6\u8d44\u6e90\u65f6\uff0c\u4f1a\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u3002 \u7531\u4e8eCPU\u8fc7\u8f7d\uff0c\u53ef\u80fd\u65e0\u6cd5\u82b1\u65f6\u95f4\u6765\u54cd\u5e94DPD\u8bf7\u6c42\u6216\u8005\u770b\u5230\u81ea\u5df1\u7684\u8bf7\u6c42\u7684\u54cd\u5e94\u3002 \u56e0\u6b64\uff0c\u96a7\u9053\u5c06\u65e0\u6cd5\u901a\u8fc7DPD\u68c0\u67e5\u5e76\u65ad\u5f00\u8fde\u63a5\u3002 \u8fd9\u8868\u660e\u786c\u4ef6\u6b63\u5728\u8d85\u8d8a\u6781\u9650\u3002 \u5982\u679c\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u8003\u8651\u4f7f\u7528\u66f4\u5f3a\u5927\u7684\u786c\u4ef6\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u96a7\u9053\u5df2\u5efa\u7acb\u548c\u5de5\u4f5c\uff0c\u4f46\u4e0d\u80fd\u91cd\u65b0\u534f\u5546<\/h2>\n<p style=\"text-align: justify;\">\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u96a7\u9053\u6b63\u5e38\u8fd0\u884c\uff0c\u4f46\u662f\u4e00\u65e6\u9636\u6bb51\u6216\u9636\u6bb52\u7684\u4f7f\u7528\u671f\u9650\u5c4a\u6ee1\uff0c\u96a7\u9053\u5c06\u65e0\u6cd5\u6b63\u786e\u91cd\u65b0\u534f\u5546\u3002 \u8fd9\u53ef\u4ee5\u7528\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u8868\u73b0\u51fa\u6765\uff0c\u6bcf\u79cd\u65b9\u5f0f\u90fd\u6709\u4e0d\u540c\u7684\u5206\u8fa8\u65b9\u6cd5\u3002<\/p>\n<h3 style=\"text-align: justify;\">DPD\u4e0d\u53d7\u652f\u6301\uff0c\u4e00\u65b9\u4e22\u5f03\uff0c\u53e6\u4e00\u65b9\u4e22\u5f03<\/h3>\n<p style=\"text-align: justify;\">\u4ece\u7ad9\u70b9A\u5230\u7ad9\u70b9B\uff0c\u4ece\u7ad9\u70b9A\u53d1\u8d77\u7684\u6d41\u91cf\u5efa\u7acb\u96a7\u9053\u3002<\/p>\n<p style=\"text-align: justify;\">\u7ad9\u70b9B\u5728\u7ad9\u70b9A\u4e4b\u524d\u5230\u671f\u7684\u9636\u6bb51\u6216\u9636\u6bb52\u3002<\/p>\n<p style=\"text-align: justify;\">\u7ad9\u70b9A\u5c06\u76f8\u4fe1\u96a7\u9053\u5df2\u7ecf\u542f\u52a8\u5e76\u7ee7\u7eed\u53d1\u9001\u6d41\u91cf\uff0c\u5c31\u50cf\u96a7\u9053\u6b63\u5e38\u5de5\u4f5c\u4e00\u6837\u3002<\/p>\n<p style=\"text-align: justify;\">\u53ea\u6709\u5728\u7ad9\u70b9A\u7684\u9636\u6bb51\u6216\u9636\u6bb52\u7684\u4f7f\u7528\u671f\u9650\u5230\u671f\u65f6\uff0c\u5b83\u624d\u4f1a\u6309\u9884\u671f\u8fdb\u884c\u91cd\u65b0\u534f\u5546\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e24\u79cd\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\uff1a\u542f\u7528DPD\uff0c\u6216\u8005\u7ad9\u70b9B\u5fc5\u987b\u5c06\u6d41\u91cf\u53d1\u9001\u5230\u7ad9\u70b9A\uff0c\u8fd9\u5c06\u5bfc\u81f4\u6574\u4e2a\u96a7\u9053\u91cd\u65b0\u534f\u5546\u3002 \u5b9e\u73b0\u8fd9\u4e00\u70b9\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u662f\u5728\u96a7\u9053\u7684\u4e24\u4fa7\u542f\u7528\u4fdd\u6d3b\u673a\u5236\u3002<\/p>\n<h2 style=\"text-align: justify;\">\u96a7\u9053\u5728\u542f\u52a8\u65f6\u5efa\u7acb\uff0c\u800c\u4e0d\u662f\u5728\u54cd\u5e94\u65f6\u5efa\u7acb<\/h2>\n<p style=\"text-align: justify;\">\u5982\u679c\u96a7\u9053\u6709\u65f6\u4f1a\u5efa\u7acb\uff0c\u4f46\u5e76\u4e0d\u603b\u662f\uff0c\u4e00\u822c\u6765\u8bf4\uff0c\u67d0\u4e00\u65b9\u9762\u662f\u4e0d\u5339\u914d\u7684\u3002 \u96a7\u9053\u4ecd\u7136\u53ef\u4ee5\u5efa\u7acb\uff0c\u56e0\u4e3a\u5982\u679c\u4e00\u65b9\u63d0\u51fa\u7684\u8bbe\u7f6e\u66f4\u5b89\u5168\uff0c\u53e6\u4e00\u65b9\u53ef\u4ee5\u63a5\u53d7\uff0c\u4f46\u4e0d\u80fd\u53cd\u8fc7\u6765\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u5728\u4e00\u4e2aIKEv1\u96a7\u9053\u548c\u8bbe\u7f6e\u4e3aMain\u6a21\u5f0f\u7684\u7ad9\u70b9\u4e0e\u8bbe\u7f6e\u4e86Aggressive \/ Main\u6a21\u5f0f\u7684\u7ad9\u70b9\u901a\u4fe1\uff0c\u867d\u7136\u4e0d\u5339\u914d\uff0c\u96a7\u9053\u4ecd\u5c06\u5efa\u7acb\u3002 \u4f46\u662f\uff0c\u5982\u679c\u8bbe\u7f6e\u4e3aAggressive\u7684\u7aef\u53e3\u5c1d\u8bd5\u542f\u52a8\u96a7\u9053\uff0c\u5219\u5c06\u4f1a\u5931\u8d25\u3002<\/p>\n<p style=\"text-align: justify;\">\u6709\u6548\u671f\u4e0d\u5339\u914d\u4e0d\u4f1a\u5bfc\u81f4\u9636\u6bb51\u6216\u9636\u6bb52\u5931\u8d25\u3002<\/p>\n<p style=\"text-align: justify;\">\u8981\u8ddf\u8e2a\u8fd9\u4e9b\u6545\u969c\uff0c\u8bf7\u6309\u7167\u201cIPsec\u65e5\u5fd7\u8bb0\u5f55\u201d\u4e2d\u7684\u8bf4\u660e\u914d\u7f6e\u65e5\u5fd7\uff0c\u7136\u540e\u5c1d\u8bd5\u4ece\u5404\u7aef\u53d1\u8d77\u8fde\u63a5\u96a7\u9053\uff0c\u7136\u540e\u68c0\u67e5\u65e5\u5fd7\u3002<\/p>\n<h2 style=\"text-align: justify;\"><strong>IPsec\u65e5\u5fd7\u8bf4\u660e<\/strong><\/h2>\n<p style=\"text-align: justify;\">IPsec\u9009\u9879\u5361\u4e0a\u7684\u201c\u7cfb\u7edf\u72b6\u6001\u201d&gt;\u201c\u7cfb\u7edf\u65e5\u5fd7\u201d\u4e2d\u63d0\u4f9b\u7684IPsec\u65e5\u5fd7\u5305\u542b\u96a7\u9053\u8fde\u63a5\u8fc7\u7a0b\u7684\u8bb0\u5f55\u4ee5\u53ca\u6765\u81ea\u6b63\u5728\u8fdb\u884c\u7684\u96a7\u9053\u7ef4\u62a4\u6d3b\u52a8\u7684\u4e00\u4e9b\u6d88\u606f\u3002 \u672c\u8282\u5217\u51fa\u4e86\u4e00\u4e9b\u5178\u578b\u7684\u65e5\u5fd7\u6761\u76ee\uff0c\u5305\u62ec\u597d\u7684\u548c\u574f\u7684\u3002 \u8981\u67e5\u627e\u7684\u4e3b\u8981\u5185\u5bb9\u662f\u6307\u793a\u8fde\u63a5\u7684\u54ea\u4e00\u90e8\u5206\u8d77\u4f5c\u7528\u7684\u5173\u952e\u77ed\u8bed\u3002 \u5982\u679c\u65e5\u5fd7\u4e2d\u5b58\u5728\u201cIKE_SA &#8230; established\u201d\uff0c\u5219\u610f\u5473\u7740\u9636\u6bb51\u5df2\u6210\u529f\u5b8c\u6210\uff0c\u5e76\u4e14\u534f\u5546\u4e86\u5b89\u5168\u534f\u4f1a\u3002 \u5982\u679c\u201cCHILD_SA &#8230;\u5df2\u7ecf\u5efa\u7acb\u201d\uff0c\u90a3\u4e48\u7b2c\u4e8c\u9636\u6bb5\u4e5f\u5df2\u7ecf\u5b8c\u6210\uff0c\u96a7\u9053\u5df2\u7ecf\u5efa\u6210\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0c\u65e5\u5fd7\u5df2\u5728IPsec\u65e5\u5fd7\u8bb0\u5f55\u4e2d\u914d\u7f6e\u4e3a\u4fa6\u542c\uff0c\u800c\u4e0d\u76f8\u5173\u7684\u6d88\u606f\u53ef\u80fd\u4f1a\u88ab\u5ffd\u7565\u3002 \u8bf7\u8bb0\u4f4f\u8fd9\u4e9b\u662f\u6837\u672c\uff0c\u5177\u4f53\u7684ID\u53f7\u7801\uff0cIP\u5730\u5740\u7b49\u7b49\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u6210\u529f\u7684\u8fde\u63a5<\/h3>\n<p style=\"text-align: justify;\">\u5f53\u96a7\u9053\u6210\u529f\u5efa\u7acb\u540e\uff0c\u53cc\u65b9\u90fd\u4f1a\u5efa\u7acb\u4e00\u4e2aIKE SA\u548c\u4e00\u4e2a\u5b50SA\u3002 \u5f53\u591a\u4e2a\u9636\u6bb52\u5b9a\u4e49\u4e0eIKEv1\u4e00\u8d77\u51fa\u73b0\u65f6\uff0c\u9488\u5bf9\u6bcf\u4e2a\u9636\u6bb52\u6761\u76ee\u534f\u5546\u5b50SA\u3002<\/p>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a009[IKE]\u00a0IKE_SA\u00a0con2000[11]\u00a0established\u00a0between\u00a0192.0.2.90[192.0.2.90]...192.0.2.74[192.0.2.74]charon:\u00a009[IKE]\u00a0CHILD_SA\u00a0con2000{2}\u00a0established\u00a0with\u00a0SPIs\u00a0cf4973bf_i\u00a0c1cbfdf2_o\u00a0and\u00a0TS\u00a0192.168.48.0\/24|\/0\u00a0===\u00a010.42.42.0\/24|\/0<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a003[IKE]\u00a0IKE_SA\u00a0con1000[19]\u00a0established\u00a0between\u00a0192.0.2.74[192.0.2.74]...192.0.2.90[192.0.2.90]charon:\u00a016[IKE]\u00a0CHILD_SA\u00a0con1000{1}\u00a0established\u00a0with\u00a0SPIs\u00a0c1cbfdf2_i\u00a0cf4973bf_o\u00a0and\u00a0TS\u00a010.42.42.0\/24|\/0\u00a0===\u00a0192.168.48.0\/24|\/0<\/pre>\n<h3 style=\"text-align: justify;\">\u5931\u8d25\u7684\u8fde\u63a5\u793a\u4f8b<\/h3>\n<p style=\"text-align: justify;\">\u8fd9\u4e9b\u793a\u4f8b\u663e\u793a\u7531\u4e8e\u5404\u79cd\u539f\u56e0\u800c\u5931\u8d25\u7684\u8fde\u63a5 \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u4ece\u793a\u4f8b\u4e2d\u53ef\u4ee5\u6e05\u695a\u5730\u770b\u5230\uff0c\u542f\u52a8\u5668\u6ca1\u6709\u6536\u5230\u6709\u5173\u7279\u5b9a\u9879\u76ee\u4e0d\u5339\u914d\u7684\u6d88\u606f\uff0c\u56e0\u6b64\u54cd\u5e94\u8005\u65e5\u5fd7\u66f4\u6709\u53c2\u8003\u6027\u3002 \u8fd9\u6837\u505a\u662f\u4e3a\u4e86\u4fdd\u62a4\u96a7\u9053\u7684\u5b89\u5168\uff0c\u5411\u6f5c\u5728\u7684***\u8005\u63d0\u4f9b\u6d88\u606f\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u8fd9\u5c06\u7ed9\u4ed6\u4eec\u63d0\u4f9b\u5173\u4e8e\u96a7\u9053\u914d\u7f6e\u7684\u4fe1\u606f\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51\u7684Aggressive \/ Main\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u542f\u52a8\u7a0b\u5e8f\u8bbe\u7f6e\u4e3aAggressive\u6a21\u5f0f\uff0c\u800c\u54cd\u5e94\u8005\u8bbe\u7f6e\u4e3aMain\u6a21\u5f0f\u3002<\/p>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a015[IKE]\u00a0initiating\u00a0Aggressive\u00a0Mode\u00a0IKE_SA\u00a0con2000[1]\u00a0to\u00a0203.0.113.5charon:\u00a015[IKE]\u00a0received\u00a0AUTHENTICATION_FAILED\u00a0error\u00a0notifycharon:\u00a013[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a01215317906\u00a0[\u00a0N(AUTH_FAILED)\u00a0]charon:\u00a013[IKE]\u00a0received\u00a0AUTHENTICATION_FAILED\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a013[IKE]\u00a0Aggressive\u00a0Mode\u00a0PSK\u00a0disabled\u00a0for\u00a0security\u00a0reasonscharon:\u00a013[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a02940146627\u00a0[\u00a0N(AUTH_FAILED)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u8bf7\u6ce8\u610f\uff0c\u54cd\u5e94\u8005\u72b6\u6001\u4e2d\u7684\u65e5\u5fd7\u6e05\u695a\u5730\u8868\u660e\uff0c\u00a0Aggressive\u00a0\u6a21\u5f0f\u5df2\u88ab\u7981\u7528\uff0c\u8fd9\u662f\u6a21\u5f0f\u4e0d\u5339\u914d\u7684\u4e00\u4e2a\u5f88\u597d\u7684\u7ebf\u7d22\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728\u76f8\u53cd\u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4e3aMain\u6a21\u5f0f\u8bbe\u7f6e\u7684\u7aef\u70b9\u542f\u52a8\uff0c\u5219\u7531\u4e8eMain\u6a21\u5f0f\u66f4\u5b89\u5168\uff0c\u56e0\u6b64\u5230pfSense\u9632\u706b\u5899\u7684\u96a7\u9053\u5c06\u5efa\u7acb\u3002<\/p>\n<h4 style=\"text-align: justify;\"><\/h4>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51\u6807\u8bc6\u7b26\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u5f53\u6807\u8bc6\u7b26\u4e0d\u5339\u914d\u65f6\uff0c\u53d1\u8d77\u8005\u53ea\u663e\u793a\u8ba4\u8bc1\u5931\u8d25\uff0c\u4f46\u6ca1\u6709\u7406\u7531\u3002 \u54cd\u5e94\u8005\u6307\u51fa\u65e0\u6cd5\u627e\u5230\u5bf9\u7b49\u70b9\uff0c\u8868\u660e\u627e\u4e0d\u5230\u5339\u914d\u7684\u9636\u6bb51\uff0c\u8fd9\u610f\u5473\u7740\u4e0d\u80fd\u627e\u5230\u5339\u914d\u7684\u6807\u8bc6\u7b26\u3002<\/p>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a010[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a04216246776\u00a0[\u00a0HASH\u00a0N(AUTH_FAILED)\u00a0]charon:\u00a010[IKE]\u00a0received\u00a0AUTHENTICATION_FAILED\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a012[CFG]\u00a0looking\u00a0for\u00a0pre-shared\u00a0key\u00a0peer\u00a0configs\u00a0matching\u00a0203.0.113.5...198.51.100.3[someid]charon:\u00a012[IKE]\u00a0no\u00a0peer\u00a0config\u00a0foundcharon:\u00a012[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a04216246776\u00a0[\u00a0HASH\u00a0N(AUTH_FAILED)\u00a0]<\/pre>\n<h4 style=\"text-align: justify;\"><\/h4>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51\u9884\u5171\u4eab\u5bc6\u94a5\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u4e0d\u5339\u914d\u7684\u9884\u5171\u4eab\u5bc6\u94a5\u53ef\u80fd\u96be\u4ee5\u8bca\u65ad\u3002 \u8bf4\u660e\u8fd9\u4e2a\u503c\u4e0d\u5339\u914d\u7684\u9519\u8bef\u4e0d\u4f1a\u663e\u793a\u5728\u65e5\u5fd7\u4e2d\uff0c\u800c\u662f\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\uff1a<\/p>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a009[ENC]\u00a0invalid\u00a0HASH_V1\u00a0payload\u00a0length,\u00a0decryption\u00a0failed?\r\ncharon:\u00a009[ENC]\u00a0could\u00a0not\u00a0decrypt\u00a0payloads\r\ncharon:\u00a009[IKE]\u00a0message\u00a0parsing\u00a0failed<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a009[ENC]\u00a0invalid\u00a0ID_V1\u00a0payload\u00a0length,\u00a0decryption\u00a0failed?\r\ncharon:\u00a009[ENC]\u00a0could\u00a0not\u00a0decrypt\u00a0payloads\r\ncharon:\u00a009[IKE]\u00a0message\u00a0parsing\u00a0failed<\/pre>\n<p style=\"text-align: justify;\">\u5f53\u4e0a\u8ff0\u65e5\u5fd7\u6d88\u606f\u5b58\u5728\u65f6\uff0c\u8bf7\u68c0\u67e5\u53cc\u65b9\u7684\u9884\u5171\u4eab\u5bc6\u94a5\u503c\u4ee5\u786e\u4fdd\u5b83\u4eec\u5339\u914d\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51\u52a0\u5bc6\u7b97\u6cd5\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a014[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a03851683074\u00a0[\u00a0N(NO_PROP)\u00a0]charon:\u00a014[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a014[CFG]\u00a0received\u00a0proposals:\u00a0IKE:AES_CBC_128\/HMAC_SHA1_96\/PRF_HMAC_SHA1\/MODP_1024charon:\u00a014[CFG]\u00a0configured\u00a0proposals:\u00a0IKE:AES_CBC_256\/HMAC_SHA1_96\/PRF_HMAC_SHA1\/MODP_1024charon:\u00a014[IKE]\u00a0no\u00a0proposal\u00a0foundcharon:\u00a014[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a03851683074\u00a0[\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u65e5\u5fd7\u6761\u76ee\u786e\u5207\u5730\u8bf4\u660e\u4e86\u95ee\u9898\uff1a\u542f\u52a8\u5668\u8bbe\u7f6e\u4e3aAES 128\u52a0\u5bc6\uff0c\u54cd\u5e94\u8005\u8bbe\u7f6e\u4e3aAES 256\u3002\u5c06\u4e24\u4e2a\u8bbe\u7f6e\u4e3a\u5339\u914d\u7684\u503c\uff0c\u7136\u540e\u518d\u8bd5\u4e00\u6b21\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51\u54c8\u5e0c\u7b97\u6cd5\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a010[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a02774552374\u00a0[\u00a0N(NO_PROP)\u00a0]charon:\u00a010[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a014[CFG]\u00a0received\u00a0proposals:\u00a0IKE:AES_CBC_256\/MODP_1024charon:\u00a014[CFG]\u00a0configured\u00a0proposals:\u00a0IKE:AES_CBC_256\/HMAC_SHA1_96\/PRF_HMAC_SHA1\/MODP_1024charon:\u00a014[IKE]\u00a0no\u00a0proposal\u00a0foundcharon:\u00a014[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a02774552374\u00a0[\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u54c8\u5e0c\u7b97\u6cd5\u7531\u8bb0\u5f55\u63d0\u4f9b\u7684HMAC\u90e8\u5206\u663e\u793a\u3002 \u4ece\u4e0a\u9762\u53ef\u4ee5\u770b\u51fa\uff0c\u63a5\u6536\u548c\u914d\u7f6e\u7684propsals\u6ca1\u6709\u5339\u914d\u7684HMAC\u6761\u76ee\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb51 DH\u7ec4\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a011[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a0316473468\u00a0[\u00a0N(NO_PROP)\u00a0]charon:\u00a011[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a014[CFG]\u00a0received\u00a0proposals:\u00a0IKE:AES_CBC_256\/HMAC_SHA1_96\/PRF_HMAC_SHA1\/MODP_8192charon:\u00a014[CFG]\u00a0configured\u00a0proposals:\u00a0IKE:AES_CBC_256\/HMAC_SHA1_96\/PRF_HMAC_SHA1\/MODP_1024charon:\u00a014[IKE]\u00a0no\u00a0proposal\u00a0foundcharon:\u00a014[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a0316473468\u00a0[\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">DH\u7ec4\u7531\u793a\u4f8b\u7684\u201cMODP\u201d\u90e8\u5206\u8868\u793a\u3002 \u5982\u65e5\u5fd7\u6d88\u606f\u6240\u793a\uff0c\u53d1\u8d77\u4eba\u88ab\u8bbe\u7f6e\u4e3a8192\uff08\u7ec418\uff09\uff0c\u54cd\u5e94\u8005\u88ab\u8bbe\u7f6e\u4e3a1024\uff08\u7ec42\uff09\u3002 \u901a\u8fc7\u5c06\u96a7\u9053\u4e24\u7aef\u7684DH\u7ec4\u8bbe\u7f6e\u4e3a\u5339\u914d\u503c\uff0c\u53ef\u4ee5\u7ea0\u6b63\u8be5\u9519\u8bef\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb52\u7f51\u7edc\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0c\u542f\u52a8\u7aef\u7684\u9636\u6bb52\u6761\u76ee\u8bbe\u7f6e\u4e3a10.3.0.0\/24\u523010.5.0.0\/24\u3002 \u54cd\u5e94\u8005\u6ca1\u6709\u8bbe\u7f6e\u4e3a\u5339\u914d\uff0c\u56e0\u4e3a\u5b83\u5217\u51fa\u4e8610.5.1.0\/24\u3002<\/p>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a008[CFG]\u00a0proposing\u00a0traffic\u00a0selectors\u00a0for\u00a0us:charon:\u00a008[CFG]\u00a010.3.0.0\/24|\/0charon:\u00a008[CFG]\u00a0proposing\u00a0traffic\u00a0selectors\u00a0for\u00a0other:charon:\u00a008[CFG]\u00a010.5.0.0\/24|\/0charon:\u00a008[ENC]\u00a0generating\u00a0QUICK_MODE\u00a0request\u00a0316948142\u00a0[\u00a0HASH\u00a0SA\u00a0No\u00a0ID\u00a0ID\u00a0]charon:\u00a008[NET]\u00a0sending\u00a0packet:\u00a0from\u00a0198.51.100.3[500]\u00a0to\u00a0203.0.113.5[500]\u00a0(236\u00a0bytes)charon:\u00a008[NET]\u00a0received\u00a0packet:\u00a0from\u00a0203.0.113.5[500]\u00a0to\u00a0198.51.100.3[500]\u00a0(76\u00a0bytes)charon:\u00a008[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a0460353720\u00a0[\u00a0HASH\u00a0N(INVAL_ID)\u00a0]charon:\u00a008[IKE]\u00a0received\u00a0INVALID_ID_INFORMATION\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a008[ENC]\u00a0parsed\u00a0QUICK_MODE\u00a0request\u00a02732380262\u00a0[\u00a0HASH\u00a0SA\u00a0No\u00a0ID\u00a0ID\u00a0]charon:\u00a008[CFG]\u00a0looking\u00a0for\u00a0a\u00a0child\u00a0config\u00a0for\u00a010.5.0.0\/24|\/0\u00a0===\u00a010.3.0.0\/24|\/0charon:\u00a008[CFG]\u00a0proposing\u00a0traffic\u00a0selectors\u00a0for\u00a0us:charon:\u00a008[CFG]\u00a010.5.1.0\/24|\/0charon:\u00a008[CFG]\u00a0proposing\u00a0traffic\u00a0selectors\u00a0for\u00a0other:charon:\u00a008[CFG]\u00a010.3.0.0\/24|\/0charon:\u00a008[IKE]\u00a0no\u00a0matching\u00a0CHILD_SA\u00a0config\u00a0foundcharon:\u00a008[IKE]\u00a0queueing\u00a0INFORMATIONAL\u00a0taskcharon:\u00a008[IKE]\u00a0activating\u00a0new\u00a0taskscharon:\u00a008[IKE]\u00a0activating\u00a0INFORMATIONAL\u00a0taskcharon:\u00a008[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a01136605099\u00a0[\u00a0HASH\u00a0N(INVAL_ID)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u5728\u54cd\u5e94\u8005\u65e5\u5fd7\u4e2d\uff0c\u5b83\u5217\u51fa\u4e86\u5b83\u6536\u5230\u7684\u7f51\u7edc\uff08\u65e5\u5fd7\u4e2d\u7684\u201cchild config\u201d\u884c\uff09\u4ee5\u53ca\u5b83\u5728\u672c\u5730\u914d\u7f6e\u4e86\u4ec0\u4e48\uff08\u5728\u65e5\u5fd7\u4e2d\u63d0\u51fa\u4e86\u201cproposing traffic selectors for us&#8230;.\u201d\u884c\uff09\u3002 \u901a\u8fc7\u6bd4\u8f83\u4e24\u8005\uff0c\u53ef\u4ee5\u53d1\u73b0\u4e0d\u5339\u914d\u3002 \u5f53\u53d1\u751f\u8fd9\u79cd\u4e0d\u5339\u914d\u65f6\uff0c\u65e5\u5fd7\u4e2d\u7684\u201cno matching CHILD_SA config foundcharon\u201d\u884c\u5c06\u59cb\u7ec8\u5b58\u5728\uff0c\u5e76\u4e14\u76f4\u63a5\u8868\u793a\u65e0\u6cd5\u627e\u5230\u9636\u6bb52\u5b9a\u4e49\u4ee5\u5339\u914d\u4ece\u542f\u52a8\u7aef\u6536\u5230\u7684\u5185\u5bb9\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb52\u52a0\u5bc6\u7b97\u6cd5\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a014[CFG]\u00a0configured\u00a0proposals:\u00a0ESP:AES_CBC_128\/HMAC_SHA1_96\/NO_EXT_SEQcharon:\u00a014[ENC]\u00a0generating\u00a0QUICK_MODE\u00a0request\u00a0759760112\u00a0[\u00a0HASH\u00a0SA\u00a0No\u00a0ID\u00a0ID\u00a0]charon:\u00a014[NET]\u00a0sending\u00a0packet:\u00a0from\u00a0198.51.100.3[500]\u00a0to\u00a0203.0.113.5[500]\u00a0(188\u00a0bytes)charon:\u00a014[NET]\u00a0received\u00a0packet:\u00a0from\u00a0203.0.113.5[500]\u00a0to\u00a0198.51.100.3[500]\u00a0(76\u00a0bytes)charon:\u00a014[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a01275272345\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]charon:\u00a014[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a013[CFG]\u00a0selecting\u00a0proposal:charon:\u00a013[CFG]\u00a0no\u00a0acceptable\u00a0ENCRYPTION_ALGORITHM\u00a0foundcharon:\u00a013[CFG]\u00a0received\u00a0proposals:\u00a0ESP:AES_CBC_128\/HMAC_SHA1_96\/NO_EXT_SEQcharon:\u00a013[CFG]\u00a0configured\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA1_96\/NO_EXT_SEQcharon:\u00a013[IKE]\u00a0no\u00a0matching\u00a0proposal\u00a0found,\u00a0sending\u00a0NO_PROPOSAL_CHOSENcharon:\u00a013[IKE]\u00a0queueing\u00a0INFORMATIONAL\u00a0taskcharon:\u00a013[IKE]\u00a0activating\u00a0new\u00a0taskscharon:\u00a013[IKE]\u00a0activating\u00a0INFORMATIONAL\u00a0taskcharon:\u00a013[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a01275272345\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53d1\u8d77\u8005\u6536\u5230\u54cd\u5e94\u8005\u627e\u4e0d\u5230\u5408\u9002\u63d0\u8bae\u7684\u6d88\u606f\uff08\u201c\u6536\u5230NO_PROPOSAL_CHOSEN\u201d\uff09\uff0c\u5e76\u4e14\u4ece\u54cd\u5e94\u8005\u65e5\u5fd7\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u8fd9\u662f\u7531\u4e8e\u7f51\u7ad9\u88ab\u8bbe\u7f6e\u4e3a\u4e0d\u540c\u7684\u52a0\u5bc6\u7c7b\u578b\uff0c\u4e00\u7aef\u4e3aAES 128 \uff0c\u800c\u53e6\u4e00\u7aef\u662fAES 256\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb5 2\u00a0\u54c8\u5e0c\u7b97\u6cd5\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a010[CFG]\u00a0configured\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA2_512_256\/NO_EXT_SEQcharon:\u00a010[ENC]\u00a0generating\u00a0QUICK_MODE\u00a0request\u00a02648029707\u00a0[\u00a0HASH\u00a0SA\u00a0No\u00a0ID\u00a0ID\u00a0]charon:\u00a010[NET]\u00a0sending\u00a0packet:\u00a0from\u00a0198.51.100.3[500]\u00a0to\u00a0203.0.113.5[500]\u00a0(188\u00a0bytes)charon:\u00a010[NET]\u00a0received\u00a0packet:\u00a0from\u00a0203.0.113.5[500]\u00a0to\u00a0198.51.100.3[500]\u00a0(76\u00a0bytes)charon:\u00a010[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a0757918402\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]charon:\u00a010[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a011[CFG]\u00a0selecting\u00a0proposal:charon:\u00a011[CFG]\u00a0no\u00a0acceptable\u00a0INTEGRITY_ALGORITHM\u00a0foundcharon:\u00a011[CFG]\u00a0received\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA2_512_256\/NO_EXT_SEQcharon:\u00a011[CFG]\u00a0configured\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA1_96\/NO_EXT_SEQcharon:\u00a011[IKE]\u00a0no\u00a0matching\u00a0proposal\u00a0found,\u00a0sending\u00a0NO_PROPOSAL_CHOSENcharon:\u00a011[IKE]\u00a0queueing\u00a0INFORMATIONAL\u00a0taskcharon:\u00a011[IKE]\u00a0activating\u00a0new\u00a0taskscharon:\u00a011[IKE]\u00a0activating\u00a0INFORMATIONAL\u00a0taskcharon:\u00a011[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a0757918402\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">\u4e0e\u9636\u6bb51\u54c8\u5e0c\u7b97\u6cd5\u4e0d\u5339\u914d\u7c7b\u4f3c\uff0c\u65e5\u5fd7\u6761\u76ee\u4e2d\u7684HMAC\u503c\u4e0d\u5bf9\u9f50\u3002 \u7136\u800c\uff0c\u5f53\u9636\u6bb52\u4e2d\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u65f6\uff0c\u54cd\u5e94\u8005\u8fd8\u4f1a\u8bb0\u5f55\u66f4\u6e05\u6670\u7684\u6d88\u606f\u201c\u627e\u4e0d\u5230\u53ef\u63a5\u53d7\u7684INTEGRITY_ALGORITHM\u201d\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u9636\u6bb52 PFS\u4e0d\u5339\u914d<\/h4>\n<p style=\"text-align: justify;\">\u53d1\u8d77\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a006[ENC]\u00a0generating\u00a0QUICK_MODE\u00a0request\u00a0909980434\u00a0[\u00a0HASH\u00a0SA\u00a0No\u00a0KE\u00a0ID\u00a0ID\u00a0]charon:\u00a006[NET]\u00a0sending\u00a0packet:\u00a0from\u00a0198.51.100.3[500]\u00a0to\u00a0203.0.113.5[500]\u00a0(444\u00a0bytes)charon:\u00a006[NET]\u00a0received\u00a0packet:\u00a0from\u00a0203.0.113.5[500]\u00a0to\u00a0198.51.100.3[500]\u00a0(76\u00a0bytes)charon:\u00a006[ENC]\u00a0parsed\u00a0INFORMATIONAL_V1\u00a0request\u00a03861985833\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]charon:\u00a006[IKE]\u00a0received\u00a0NO_PROPOSAL_CHOSEN\u00a0error\u00a0notify<\/pre>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>charon:\u00a008[CFG]\u00a0selecting\u00a0proposal:charon:\u00a008[CFG]\u00a0no\u00a0acceptable\u00a0DIFFIE_HELLMAN_GROUP\u00a0foundcharon:\u00a008[CFG]\u00a0received\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA1_96\/MODP_2048\/NO_EXT_SEQcharon:\u00a008[CFG]\u00a0configured\u00a0proposals:\u00a0ESP:AES_CBC_256\/HMAC_SHA1_96\/NO_EXT_SEQcharon:\u00a008[IKE]\u00a0no\u00a0matching\u00a0proposal\u00a0found,\u00a0sending\u00a0NO_PROPOSAL_CHOSENcharon:\u00a008[ENC]\u00a0generating\u00a0INFORMATIONAL_V1\u00a0request\u00a03861985833\u00a0[\u00a0HASH\u00a0N(NO_PROP)\u00a0]<\/pre>\n<p style=\"text-align: justify;\">PFS\u50cf\u7b2c\u4e00\u9636\u6bb5\u7684DH\u7ec4\u4e00\u6837\u5de5\u4f5c\uff0c\u4f46\u662f\u662f\u53ef\u9009\u7684\u3002 \u5f53\u9009\u62e9\u7684PFS\u9009\u9879\u4e0d\u5339\u914d\u65f6\uff0c\u4f1a\u8bb0\u5f55\u4e00\u6761\u660e\u786e\u7684\u6d88\u606f\uff0c\u6307\u51fa\u8fd9\u4e00\u4e8b\u5b9e\uff1a\u201c\u627e\u4e0d\u5230\u53ef\u63a5\u53d7\u7684DIFFIE_HELLMAN_GROUP\u201d\u3002PFS\uff08Perfect Forward Secrecy\u5b8c\u7f8e\u7684\u524d\u5411\u4fdd\u5bc6\uff09\u662f\u4e00\u79cd\u5b89\u5168\u901a\u4fe1\u534f\u8bae\uff0c\u53ef\u9632\u6b62\u4e00\u6b21\u52a0\u5bc6\u4f1a\u8bdd\u7684\u7834\u574f\u5bfc\u81f4\u591a\u6b21\u52a0\u5bc6\u4f1a\u8bdd\u7684\u7834\u574f\u3002\u901a\u8fc7PFS\uff0c\u670d\u52a1\u5668\u4e3a\u6bcf\u4e2a\u4e0e\u5ba2\u6237\u7aef\u5efa\u7acb\u7684\u5b89\u5168\u4f1a\u8bdd\u751f\u6210\u552f\u4e00\u7684\u79c1\u94a5\u3002\u5982\u679c\u670d\u52a1\u5668\u79c1\u94a5\u906d\u5230\u7834\u574f\uff0c\u5219\u53ea\u6709\u4e0e\u8be5\u5bc6\u94a5\u5efa\u7acb\u7684\u5355\u4e2a\u4f1a\u8bdd\u6613\u53d7\u653b\u51fb -\u653b\u51fb\u8005\u65e0\u6cd5\u4ece\u8fc7\u53bb\u548c\u5c06\u6765\u7684\u4f1a\u8bdd\u4e2d\u68c0\u7d22\u6570\u636e\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4f7f\u7528\u552f\u4e00\u751f\u6210\u7684\u5bc6\u94a5\u6765\u5efa\u7acb\u6bcf\u4e2a\u8fde\u63a5\u3002<\/p>\n<p class=\"first admonition-title\" style=\"text-align: justify;\">\u6ce8\u610f\uff1a\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u4e00\u65b9\u7684PFS\u8bbe\u7f6e\u4e3a\u5173\u95ed\uff0c\u800c\u53e6\u4e00\u65b9\u8bbe\u7f6e\u4e86\u503c\uff0c\u96a7\u9053\u4ecd\u7136\u53ef\u4ee5\u5efa\u7acb\u548c\u5de5\u4f5c\u3002 \u4e0a\u9762\u663e\u793a\u7684\u4e0d\u5339\u914d\u53ea\u6709\u5728\u503c\u4e0d\u5339\u914d\u7684\u60c5\u51b5\u4e0b\u624d\u80fd\u770b\u5230\uff0c\u4f8b\u59821\u5bf95\u3002<\/p>\n<h4 style=\"text-align: justify;\">\u4e0eNAT\u4e0d\u5339\u914d\u7684\u6807\u8bc6\u7b26<\/h4>\n<p style=\"text-align: justify;\">\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cpfSense\u88ab\u914d\u7f6e\u4e3a\u5bf9\u7b49IP\u5730\u5740\u7684\u5bf9\u7b49\u6807\u8bc6\u7b26\uff0c\u4f46\u662f\u8fdc\u7a0b\u8bbe\u5907\u5b9e\u9645\u4e0a\u5728NAT\u4e4b\u540e\u3002 \u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cstrongSwan\u671f\u671b\u5b9e\u9645\u7684\u79c1\u6709NAT-IP\u5730\u5740\u4f5c\u4e3a\u6807\u8bc6\u7b26\u3002 \u5728\u65e7\u7248\u672c\u4e0a\u4f7f\u7528\u7684racoon\u5b88\u62a4\u8fdb\u7a0b\u8981\u8f7b\u677e\u5f97\u591a\uff0c\u53ef\u4ee5\u5339\u914d\u4efb\u4f55\u4e00\u4e2a\u5730\u5740\uff0c\u4f46strongSwan\u66f4\u4e3a\u6b63\u5f0f\uff0c\u9700\u8981\u6b63\u786e\u5339\u914d\u3002<\/p>\n<p style=\"text-align: justify;\">\u54cd\u5e94\u8005\u7684\u65e5\u5fd7\u663e\u793a:<\/p>\n<pre>\u00a0\u00a0\u00a0charon:\u00a010[IKE]\u00a0remote\u00a0host\u00a0is\u00a0behind\u00a0NAT\r\n\u00a0\u00a0\u00a0charon:\u00a010[IKE]\u00a0IDir\u00a0'192.0.2.10'\u00a0does\u00a0not\u00a0match\u00a0to\u00a0'203.0.113.245'[...]\r\n\u00a0\u00a0\u00a0charon:\u00a010[CFG]\u00a0looking\u00a0for\u00a0pre-shared\u00a0key\u00a0peer\u00a0configs\u00a0matching\u00a0198.51.100.50...203.0.113.245[192.0.2.10]<\/pre>\n<p style=\"text-align: justify;\">\u8981\u7ea0\u6b63\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u5c06\u5bf9\u7b49\u6807\u8bc6\u7b26\u8bbe\u7f6e\u66f4\u6539\u4e3aIP\u5730\u5740\uff0c\u7136\u540e\u8f93\u5165NAT\u4e4b\u524d\u7684IP\u5730\u5740\uff0c\u5728\u672c\u4f8b\u4e2d\u4e3a192.0.2.10\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u6d88\u5931\u7684\u6d41\u91cf<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679cIPsec\u901a\u4fe1\u5230\u8fbe\u4f46\u4ece\u672a\u51fa\u73b0\u5728IPsec\u63a5\u53e3\uff08enc0\uff09\u4e0a\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u6709\u51b2\u7a81\u7684\u8def\u7531\/\u63a5\u53e3IP\u5730\u5740\u3002 \u4f8b\u5982\uff0c\u5982\u679c\u4e00\u4e2aIPsec\u96a7\u9053\u914d\u7f6e\u4e86\u4e00\u4e2a192.0.2.0\/24\u7684\u8fdc\u7a0b\u7f51\u7edc\uff0c\u5e76\u4e14\u6709\u4e00\u4e2a\u672c\u5730OpenVPN\u670d\u52a1\u5668\u548c\u4e00\u4e2a192.0.2.0\/24\u7684\u96a7\u9053\u7f51\u7edc\uff0c\u90a3\u4e48ESP\u6d41\u91cf\u53ef\u80fd\u5230\u8fbe\uff0cstrongSwan\u53ef\u80fd\u4f1a\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u5305\uff0c\u4f46\u662f \u4ed6\u4eec\u4ece\u6765\u6ca1\u6709\u51fa\u73b0\u5728\u5230\u8fbe\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4ed8\u7684enc0as\u3002<\/p>\n<p style=\"text-align: justify;\">\u89e3\u51b3\u91cd\u590d\u7684\u63a5\u53e3\/\u8def\u7531\uff0c\u6d41\u91cf\u5c06\u5f00\u59cb\u4f20\u9012\u3002<\/p>\n<h3 style=\"text-align: justify;\">IPsec\u72b6\u6001\u9875\u9762\u95ee\u9898<\/h3>\n<p style=\"text-align: justify;\">\u5982\u679cIPsec\u72b6\u6001\u9875\u9762\u51fa\u73b0\u9519\u8bef\uff0c\u5982\uff1a<\/p>\n<pre>Warning:\u00a0Illegal\u00a0string\u00a0offset\u00a0'type'\u00a0in\u00a0\/etc\/inc\/xmlreader.inc\u00a0on\u00a0line\u00a0116<\/pre>\n<p style=\"text-align: justify;\">\u8fd9\u8868\u793a\u4e0d\u5b8c\u6574\u7684xmlreader XML\u89e3\u6790\u5668\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\uff0c\u8fd9\u662f\u7531\u6587\u4ef6\/ cf \/ conf \/ use_xmlreader\u7684\u5b58\u5728\u89e6\u53d1\u7684\u3002 \u8fd9\u4e2a\u66ff\u4ee3\u89e3\u6790\u5668\u53ef\u4ee5\u66f4\u5feb\u5730\u8bfb\u53d6\u5927\u578bconfig.xml\u6587\u4ef6\uff0c\u4f46\u662f\u7f3a\u5c11\u5176\u4ed6\u533a\u57df\u8fd0\u884c\u826f\u597d\u6240\u5fc5\u9700\u7684\u67d0\u4e9b\u529f\u80fd\u3002 \u5220\u9664\/ cf \/ conf \/ use_xmlreader\u4f1a\u7acb\u5373\u5c06\u7cfb\u7edf\u8fd4\u56de\u5230\u9ed8\u8ba4\u89e3\u6790\u5668\uff0c\u8fd9\u5c06\u7ea0\u6b63IPsec\u72b6\u6001\u9875\u9762\u7684\u663e\u793a\u3002<\/p>\n<h2 style=\"text-align: justify;\"><strong>IPsec\u672f\u8bed<\/strong><\/h2>\n<p style=\"text-align: justify;\">\u5728\u6df1\u5165\u7814\u7a76\u914d\u7f6e\u4e4b\u524d\uff0c\u5728\u672c\u7ae0\u4e2d\u6709\u51e0\u4e2a\u672f\u8bed\u9700\u8981\u89e3\u91ca\u3002 \u5176\u4ed6\u672f\u8bed\u5728\u914d\u7f6e\u9009\u9879\u4e2d\u7528\u4e8e\u66f4\u8be6\u7ec6\u5730\u89e3\u91ca\u3002<\/p>\n<h3 style=\"text-align: justify;\">IKE<\/h3>\n<p style=\"text-align: justify;\">IKE\u4ee3\u8868\u4e92\u8054\u7f51\u5bc6\u94a5\u4ea4\u6362\uff0c\u5206\u4e3a\u4e24\u79cd\uff1aIKEv1\u548cIKEv2\u3002 \u51e0\u4e4e\u6240\u6709\u652f\u6301IPsec\u7684\u8bbe\u5907\u90fd\u4f7f\u7528IKEv1\u3002 \u8d8a\u6765\u8d8a\u591a\u7684\u8bbe\u5907\u4e5f\u652f\u6301\u8f83\u65b0\u7684IKEv2\u534f\u8bae\uff0c\u8fd9\u662fIKE\u7684\u66f4\u65b0\u7248\u672c\uff0c\u5b83\u89e3\u51b3\u4e86\u65e9\u671f\u7248\u672c\u4e2d\u5b58\u5728\u7684\u4e00\u4e9b\u95ee\u9898\u3002 \u4f8b\u5982\uff0cIKEv2\u5177\u6709MOBIKE\uff0c\u8fd9\u662f\u79fb\u52a8\u5ba2\u6237\u7aef\u7684\u6807\u51c6\uff0c\u5141\u8bb8\u4ed6\u4eec\u52a8\u6001\u5730\u5207\u6362\u5730\u5740\u3002 \u5b83\u4e5f\u5177\u6709\u5185\u7f6e\u7684NAT\u7a7f\u8d8a\u529f\u80fd\uff0c\u4ee5\u53ca\u7c7b\u4f3c\u4e8eDPD\u7684\u53ef\u9760\u6027\u6807\u51c6\u673a\u5236\u3002 \u4e00\u822c\u800c\u8a00\uff0cIKEv2\u63d0\u4f9b\u4e86\u66f4\u7a33\u5b9a\u548c\u53ef\u9760\u7684\u4f53\u9a8c\uff0c\u4f46\u4e24\u7aef\u5fc5\u987b\u540c\u65f6\u652f\u6301\u3002<\/p>\n<h3 style=\"text-align: justify;\">ISAKMP\u5b89\u5168\u8054\u76df<\/h3>\n<p style=\"text-align: justify;\">ISAKMP\u4ee3\u8868\u4e92\u8054\u7f51\u5b89\u5168\u8054\u76df\u548c\u5bc6\u94a5\u7ba1\u7406\u534f\u8bae\u3002 \u5b83\u4e3a\u53cc\u65b9\u63d0\u4f9b\u4e86\u4e00\u4e2a\u673a\u5236\uff0c\u53ef\u4ee5\u5efa\u7acb\u4e00\u4e2a\u5b89\u5168\u7684\u901a\u4fe1\u6e20\u9053\uff0c\u5305\u62ec\u4ea4\u6362\u5bc6\u94a5\u548c\u63d0\u4f9b\u8ba4\u8bc1\u3002<\/p>\n<p style=\"text-align: justify;\">ISAKMP\u5b89\u5168\u8054\u76df\uff08ISAKMP SA\uff09\u662f\u4e00\u79cd\u5355\u5411\u7b56\u7565\uff0c\u5b9a\u4e49\u4e86\u5982\u4f55\u52a0\u5bc6\u548c\u5904\u7406\u6d41\u91cf\u3002 \u6bcf\u4e2a\u6d3b\u52a8\u7684IPsec\u96a7\u9053\u5c06\u6709\u4e24\u4e2a\u5b89\u5168\u5173\u8054\uff0c\u6bcf\u4e2a\u65b9\u5411\u4e00\u4e2a\u3002 ISAKMP\u5b89\u5168\u5173\u8054\u8bbe\u7f6e\u5728\u6bcf\u4e2a\u7aef\u70b9\u7684\u516c\u5171IP\u5730\u5740\u4e4b\u95f4\u3002 \u8fd9\u4e9b\u6d3b\u52a8\u5b89\u5168\u5173\u8054\u7684\u6570\u636e\u4fdd\u5b58\u5728\u5b89\u5168\u5173\u8054\u6570\u636e\u5e93\uff08SAD\uff09\u4e2d\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u5b89\u5168\u7b56\u7565<\/h3>\n<p style=\"text-align: justify;\">\u5b89\u5168\u7b56\u7565\u662f\u7ba1\u7406IPsec\u96a7\u9053\u7684\u5b8c\u6574\u89c4\u8303\u3002 \u4e0e\u5b89\u5168\u534f\u4f1a\u4e00\u6837\uff0c\u8fd9\u4e9b\u662f\u5355\u5411\u7684\uff0c\u6240\u4ee5\u6bcf\u4e2a\u96a7\u9053\u5728\u6bcf\u4e2a\u65b9\u5411\u90fd\u4f1a\u6709\u4e00\u4e2a\u3002 \u8fd9\u4e9b\u6761\u76ee\u4fdd\u5b58\u5728\u5b89\u5168\u7b56\u7565\u6570\u636e\u5e93\uff08SPD\uff09\u4e2d\u3002 \u4e00\u65e6\u6dfb\u52a0\u4e86\u96a7\u9053\uff0c\u6bcf\u4e2a\u96a7\u9053\u8fde\u63a5\u5c31\u4e3aSPD\u586b\u5145\u4e24\u4e2a\u6761\u76ee\u3002 \u76f8\u6bd4\u4e4b\u4e0b\uff0cSAD\u6761\u76ee\u4ec5\u5728\u6210\u529f\u534f\u5546\u8fde\u63a5\u65f6\u624d\u5b58\u5728\u3002<\/p>\n<p style=\"text-align: justify;\">\u5728pfSense\u8f6f\u4ef6\u4e2d\uff0c\u5b89\u5168\u7b56\u7565\u63a7\u5236\u5185\u6838\u5c06\u62e6\u622a\u90a3\u4e9b\u901a\u8fc7IPsec\u4f20\u9012\u7684\u6d41\u91cf\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9636\u6bb5 1<\/h3>\n<p style=\"text-align: justify;\">IPsec\u96a7\u9053\u6709\u4e24\u4e2a\u9636\u6bb5\u7684\u534f\u5546\u3002 \u5728\u9636\u6bb51\u4e2d\uff0c\u96a7\u9053\u7684\u4e24\u4e2a\u7aef\u70b9\u4e4b\u95f4\u5efa\u7acb\u4e00\u4e2a\u4f7f\u7528ISAKMP\u534f\u5546SA\u6761\u76ee\u548c\u4ea4\u6362\u5bc6\u94a5\u7684\u5b89\u5168\u901a\u9053\u3002 \u8fd9\u8fd8\u5305\u62ec\u8eab\u4efd\u9a8c\u8bc1\uff0c\u68c0\u67e5\u6807\u8bc6\u7b26\u4ee5\u53ca\u68c0\u67e5\u9884\u5171\u4eab\u5bc6\u94a5\uff08PSK\uff09\u6216\u8bc1\u4e66\u3002 \u7b2c\u4e00\u9636\u6bb5\u5b8c\u6210\u540e\uff0c\u4e24\u7aef\u53ef\u4ee5\u5b89\u5168\u5730\u4ea4\u6362\u4fe1\u606f\uff0c\u4f46\u5c1a\u672a\u51b3\u5b9a\u901a\u8fc7\u96a7\u9053\u6216\u5176\u52a0\u5bc6\u7684\u6d41\u91cf\u3002<\/p>\n<h3 style=\"text-align: justify;\">\u9636\u6bb5 2<\/h3>\n<p style=\"text-align: justify;\">\u5728\u9636\u6bb52\u4e2d\uff0c\u4e24\u4e2a\u7aef\u70b9\u6839\u636e\u5b89\u5168\u7b56\u7565\u534f\u5546\u5982\u4f55\u52a0\u5bc6\u548c\u53d1\u9001\u4e13\u7528\u4e3b\u673a\u7684\u6570\u636e\u3002 \u8fd9\u90e8\u5206\u6784\u5efa\u4e86\u7528\u4e8e\u5728\u7aef\u70b9\u5904\u7406\u6d41\u91cf\u7684\u7aef\u70b9\u548c\u5ba2\u6237\u7aef\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u7684\u96a7\u9053\u3002 \u5982\u679c\u53cc\u65b9\u7684\u7b56\u7565\u76f8\u540c\u5e76\u4e14\u7b2c\u4e8c\u9636\u6bb5\u6210\u529f\u5efa\u7acb\uff0c\u5219\u96a7\u9053\u5c06\u88ab\u542f\u52a8\u5e76\u51c6\u5907\u597d\u7528\u4e8e\u4e0e\u7b2c\u4e8c\u9636\u6bb5\u5b9a\u4e49\u5339\u914d\u7684\u6d41\u91cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79fb\u52a8\u5ba2\u6237\u7aef\u7684\u670d\u52a1\u5668\u914d\u7f6e\u6709\u51e0\u4e2a\u7ec4\u4ef6\uff1a \u4e3aVPN\u521b\u5efa\u4e00\u4e2a\u8bc1\u4e66\u7ed3\u6784 \u914d\u7f6eIPsec\u79fb\u52a8 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=185\">\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":[223],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-ikev2"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/185","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=185"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}