{"id":202,"date":"2018-07-29T11:34:13","date_gmt":"2018-07-29T03:34:13","guid":{"rendered":"https:\/\/pfsense.freeddns.org\/wp\/?p=202"},"modified":"2020-08-24T22:11:20","modified_gmt":"2020-08-24T14:11:20","slug":"pfsense-book%e4%b9%8bl2tp-vpn","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=202","title":{"rendered":"pfSense book\u4e4bL2TP VPN"},"content":{"rendered":"<p>pfSense\u53ef\u4ee5\u5145\u5f53L2TP VPN\u670d\u52a1\u5668\u3002 L2TP\u7eaf\u7cb9\u662f\u4e00\u79cd\u96a7\u9053\u534f\u8bae\uff0c\u4e0d\u63d0\u4f9b\u81ea\u5df1\u7684\u52a0\u5bc6\uff0c\u56e0\u6b64\u5b83\u901a\u5e38\u4e0e\u5176\u4ed6\u4e00\u4e9b\u52a0\u5bc6\u6280\u672f\uff08\u5982IPsec\uff09\u7ed3\u5408\u4f7f\u7528\u3002<\/p>\n<p style=\"text-align: justify;\">\u6ce8\u610f:pfSense\u652f\u6301L2TP \/ IPsec\uff0c\u4f46\u662f\uff0c\u5728\u8bb8\u591a\u5e38\u89c1\u7684\u60c5\u51b5\u4e0b\uff0c\u67d0\u4e9b\u5ba2\u6237\u7aef\u5c06\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002 \u6700\u5e38\u89c1\u7684\u95ee\u9898\u662fNAT\u540e\u9762\u7684Windows\u5ba2\u6237\u7aef\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cWindows\u5ba2\u6237\u7aef\u548cstrongSwan IPsec\u5b88\u62a4\u8fdb\u7a0b\u4e0d\u5b8c\u5168\u517c\u5bb9\uff0c\u4f1a\u5bfc\u81f4\u65e0\u6cd5\u8fde\u63a5\u3002 \u5728\u8fd9\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u63a8\u8350\u4f7f\u7528IKEv2\u3002\u5728\u56fd\u5185\uff0c\u8fd0\u8425\u5546\u5927\u90e8\u5206\u5df2\u5c4f\u853d\u516c\u7f51L2TP\u6240\u4f7f\u7528\u76841701\u7aef\u53e3\uff0c\u5982\u679c\u8981\u4f7f\u7528VPN\uff0c\u5efa\u8bae\u7528openVPN\u3002<\/p>\n<h2>L2TP\u5b89\u5168\u63d0\u9192<\/h2>\n<p>L2TP\u672c\u8eab\u6ca1\u6709\u52a0\u5bc6\uff0c\u6240\u4ee5\u5b83\u4e0d\u9002\u7528\u4e8e\u5bf9\u5b89\u5168\u8981\u6c42\u8f83\u9ad8\u7684\u7f51\u7edc\u8fde\u63a5\u3002<\/p>\n<h1>L2TP\u00a0\u548c\u9632\u706b\u5899\u89c4\u5219<\/h1>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5728\u542f\u7528L2TP\u670d\u52a1\u5668\u65f6\uff0c\u9632\u706b\u5899\u4e0d\u4f1a\u5728\u6240\u9009\u63a5\u53e3\u81ea\u52a8\u6dfb\u52a0\u5141\u8bb8\u8bbf\u95ee1701\u7aef\u53e3\u7684\u89c4\u5219\uff0c\u9632\u706b\u5899\u89c4\u5219\u5fc5\u987b\u6dfb\u52a0\u5230L2TP\u901a\u4fe1\u5c06\u8fdb\u5165\u7684\u4efb\u4f55\u63a5\u53e3\uff0c\u901a\u5e38\u662f\u516c\u7f51\u63a5\u53e3\uff0c\u5305\u542b\u9ed8\u8ba4\u7f51\u5173\u6216IPsec\u3002<\/p>\n<p><strong>L2TP\u00a0\u548c\u591aWAN<\/strong><\/p>\n<p>L2TP\u4f7f\u7528UDP\u7aef\u53e31701\uff0c\u7531\u4e8eL2TP\u4f9d\u8d56\u4e8eUDP\uff0c\u56e0\u6b64\u4f7f\u7528\u4efb\u4f55\u4e0d\u662f\u9ed8\u8ba4\u7f51\u5173\u7684\u5e7f\u57df\u7f51\uff0c\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u9047\u5230\u95ee\u9898\u3002<\/p>\n<p>L2TP\u00a0\u670d\u52a1\u5668\u914d\u7f6e<\/p>\n<p>\u8981\u4f7f\u75282TP,\u00a0\u9996\u5148\u6211\u4eec\u8981\u5bfc\u822a\u5230VPN &gt; L2TP\uff0c\u9009\u62e9\u542f\u7528L2TP\u670d\u52a1\u5668\u3002<\/p>\n<h2>\u63a5\u53e3<\/h2>\n<p>\u63a5\u53e3\u8bbe\u7f6e\u63a7\u5236L2TP\u5b88\u62a4\u8fdb\u7a0b\u5c06\u7ed1\u5b9a\u548c\u4fa6\u542c\u8fde\u63a5\u7684\u4f4d\u7f6e\u3002 \u8fd9\u901a\u5e38\u662fWAN\u63a5\u53e3\u63a5\u53d7\u5165\u7ad9\u7684\u8fde\u63a5\u3002<\/p>\n<p><strong>IP\u00a0\u5730\u5740<\/strong><\/p>\n<p>\u5f00\u59cb\u4e4b\u524d\uff0c\u8bf7\u786e\u5b9a\u8981\u4e3aL2TP\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4f7f\u7528\u54ea\u4e9bIP\u5730\u5740\uff0c\u4ee5\u53ca\u73b0\u5728\u8981\u652f\u6301\u591a\u5c11\u4e2a\u5e76\u53d1\u5ba2\u6237\u7aef\u3002<\/p>\n<p>\u670d\u52a1\u5668\u5730\u5740\uff1a\u8fdc\u7a0b\u5730\u5740\u8303\u56f4\u4e4b\u5916\u7684\u672a\u4f7f\u7528IP\u5730\u5740\uff0c\u4f8b\u5982\u56feL2TP IP\u5730\u5740\u6240\u793a\u768410.3.177.1\u3002<\/p>\n<p>\u8fdc\u7a0b\u5730\u5740\u8303\u56f4\uff1a\u901a\u5e38\u662f\u4e00\u4e2a\u65b0\u7684\u672a\u4f7f\u7528\u7684\u5b50\u7f51\uff0c\u4f8b\u598210.3.177.128\/25\uff08.128\u5230.255\uff09\u3002 \u8fd9\u4e9b\u662f\u8fde\u63a5\u65f6\u5206\u914d\u7ed9\u5ba2\u6237\u7aef\u7684\u5730\u5740\u3002<\/p>\n<p><strong>L2TP\u7528\u6237\u6570<\/strong><\/p>\n<p>\u63a7\u5236\u540c\u65f6\u5141\u8bb8\u591a\u5c11\u4e2aL2TP\u7528\u6237\u8fde\u63a5\uff0c\u5728\u672c\u4f8b\u4e2d\u9009\u62e9\u4e8613\u4e2a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1892\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing.png\" alt=\"\" width=\"1026\" height=\"377\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing.png 1026w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing-1024x376.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing-300x110.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing-768x282.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-ip-addressing-500x184.png 500w\" sizes=\"auto, (max-width: 1026px) 100vw, 1026px\" \/><\/p>\n<p><strong>DNS\u8bbe\u7f6e<\/strong><\/p>\n<p>DNS\u670d\u52a1\u5668\u4e5f\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u4e3a\u6700\u7ec8\u7528\u6237\u5b9a\u4e49\u3002\u00a0\u6839\u636e\u9700\u8981\u624b\u52a8\u8f93\u5165\u6307\u5b9a\u5730\u5740\u3002<\/p>\n<p><strong>\u5bc6\u94a5<\/strong><\/p>\n<p>\u4e00\u4e9bL2TP\u5b9e\u73b0\u9700\u8981\uff0c\u7c7b\u4f3c\u4e8e\u7ec4\u5bc6\u7801\u6216\u9884\u5171\u4eab\u5bc6\u94a5\u3002 \u5bf9\u6b64\u7684\u652f\u6301\u56e0\u5ba2\u6237\u7aef\u800c\u5f02\u3002 \u9664\u975e\u5df2\u77e5\u662f\u5fc5\u9700\u7684\uff0c\u5426\u5219\u5c06\u5b57\u6bb5\u7559\u7a7a\u3002 \u5982\u679c\u9700\u8981\uff0c\u8f93\u5165\u5e76\u786e\u8ba4\u5bc6\u7801\u3002<\/p>\n<p><strong>\u8ba4\u8bc1\u7c7b\u578b<\/strong><\/p>\n<p>\u4e3a\u7528\u6237\u51b3\u5b9aPAP\uff0cCHAP\u6216MS-CHAPv2\u8eab\u4efd\u9a8c\u8bc1\u3002 \u652f\u6301\u53ef\u80fd\u56e0\u5ba2\u6237\u7aef\u800c\u5f02\uff0c\u4e5f\u53ef\u80fd\u4f9d\u8d56\u4e8eRADIUS\u670d\u52a1\u5668\u3002 \u57fa\u4e8eCHAP\u7684\u7c7b\u578b\u66f4\u5b89\u5168\uff0c\u4f46PAP\u5f97\u5230\u66f4\u5e7f\u6cdb\u7684\u517c\u5bb9\u3002<\/p>\n<p>\u7528\u6237\u53ef\u4ee5\u4ece\u672c\u5730\u7528\u6237\u6570\u636e\u5e93\u6216\u901a\u8fc7\u5916\u90e8RADIUS\u670d\u52a1\u5668\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\u3002 \u8fd9\u53ef\u7528\u4e8e\u4eceMicrosoft Active Directory\u9a8c\u8bc1L2TP\u7528\u6237\u4ee5\u53ca\u8bb8\u591a\u5176\u4ed6\u652f\u6301RADIUS\u7684\u670d\u52a1\u5668\u3002\u5982\u679c\u4f7f\u7528RADIUS\uff0c\u8bf7\u9009\u4e2d\u4f7f\u7528RADIUS\u670d\u52a1\u5668\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5e76\u586b\u5199RADIUS\u670d\u52a1\u5668\u548c\u5171\u4eab\u5bc6\u94a5\u3002 \u5982\u679c\u7b2c\u4e00\u4e2aRADIUS\u670d\u52a1\u5668\u5931\u8d25\uff0c\u4e5f\u53ef\u4ee5\u6dfb\u52a0\u7b2c\u4e8c\u4e2aRADIUS\u670d\u52a1\u5668\u3002 \u8981\u4f7f\u7528\u672c\u5730\u7528\u6237\u6570\u636e\u5e93\u8fdb\u884c\u8ba4\u8bc1\uff0c\u8bf7\u4e0d\u8981\u9009\u4e2d\u8be5\u6846\u3002 \u7528\u6237\u5fc5\u987b\u624b\u52a8\u6dfb\u52a0\u5230VPN&gt; L2TP\u9875\u9762\u7684\u7528\u6237\u9009\u9879\u5361\u4e0a\uff0c\u9664\u975e\u4f7f\u7528RADIUS\u3002<\/p>\n<h2>\u4fdd\u5b58\u8bbe\u7f6e\u542f\u52a8L2TP\u670d\u52a1\u5668<\/h2>\n<p>\u586b\u5199\u4e0a\u8ff0\u9879\u76ee\u540e\uff0c\u70b9\u51fb\u4fdd\u5b58\u3002 \u8fd9\u5c06\u4fdd\u5b58\u914d\u7f6e\u5e76\u542f\u52a8L2TP\u670d\u52a1\u5668\u3002<\/p>\n<p>\u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/p>\n<p>\u5bfc\u822a\u5230\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565\uff0c\u7136\u540e\u5355\u51fbL2TP VPN\u9009\u9879\u3002 \u8fd9\u4e9b\u89c4\u5219\u7528\u6765\u63a7\u5236\u6765\u81eaL2TP\u5ba2\u6237\u7aef\u7684\u6d41\u91cf\u3002 \u5728\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219\u4ee5\u5141\u8bb8\u901a\u4fe1\u4e4b\u524d\uff0c\u4ece\u8fde\u63a5\u7684L2TP\u5ba2\u6237\u7aef\u53d1\u8d77\u7684\u6240\u6709\u901a\u4fe1\u5c06\u88ab\u963b\u6b62\u3002 \u4eceLAN\u53d1\u8d77\u7684\u5230L2TP\u5ba2\u6237\u7aef\u7684\u6d41\u91cf\u4f7f\u7528LAN\u9632\u706b\u5899\u89c4\u5219\u8fdb\u884c\u63a7\u5236\u3002 \u6700\u521d\uff0c\u4e3a\u4e86\u6d4b\u8bd5\u76ee\u7684\uff0c\u53ef\u80fd\u9700\u8981\u5141\u8bb8\u6240\u6709\u89c4\u5219\uff0c\u5982\u56feL2TP VPN\u9632\u706b\u5899\u89c4\u5219\u6240\u793a\uff0c\u4e00\u65e6\u529f\u80fd\u5df2\u7ecf\u9a8c\u8bc1\uff0c\u5c31\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9650\u5236\u89c4\u5219\u96c6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1893\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-firewallrule.png\" alt=\"\" width=\"938\" height=\"159\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-firewallrule.png 938w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-firewallrule-300x51.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-firewallrule-768x130.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tp-firewallrule-500x85.png 500w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/p>\n<p>L2TP VPN \u9632\u706b\u5899\u89c4\u5219<\/p>\n<p>\u6ce8\u610f\uff1a\u8fd8\u5fc5\u987b\u5728L2TP\u6240\u4f7f\u7528\u7684\u63a5\u53e3\u4e0a\uff08\u901a\u5e38\u4e3aWAN\u6216IPsec\uff09\u5f00\u653e\u5141\u8bb81701\u7aef\u53e3\u7684\u8bbf\u95ee\u3002<\/p>\n<p>\u6dfb\u52a0L2TP\u7528\u6237<\/p>\n<p>\u5c06\u7528\u6237\u6dfb\u52a0\u5230\u5185\u7f6e\u7684L2TP\u7528\u6237\u7cfb\u7edf\u5f88\u7b80\u5355\u3002 \u8981\u6dfb\u52a0\u672c\u5730\u7528\u6237\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230VPN &gt; L2TP\uff0c\u7528\u6237\u9009\u9879\u5361\u3002\u53c2\u7167\u4e0b\u56fe\u8fdb\u884c\u8bbe\u7f6e\u3002<\/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\u663e\u793a\u7528\u4e8e\u6dfb\u52a0\u7528\u6237\u7684\u8868\u5355\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1895\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpuserstab.png\" alt=\"\" width=\"938\" height=\"140\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpuserstab.png 938w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpuserstab-300x45.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpuserstab-768x115.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpuserstab-500x75.png 500w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u8f93\u5165\u7528\u6237\u540d\u3001\u5bc6\u7801\u548c\u786e\u8ba4\u5bc6\u7801\u3002<\/li>\n<li>\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8f93\u5165\u9759\u6001\u6307\u5b9a\u7684IP\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1896\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpadduser.png\" alt=\"\" width=\"941\" height=\"196\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpadduser.png 941w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpadduser-300x62.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpadduser-768x160.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/l2tp-l2tpadduser-500x104.png 500w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5355\u51fb\u4fdd\u5b58\uff0c\u7136\u540e\u5c06\u8fd4\u56de\u7528\u6237\u5217\u8868\u3002<\/li>\n<\/ul>\n<p style=\"text-align: left;\">\u5982\u679c\u8981\u7f16\u8f91\u5df2\u6709\u7528\u6237\uff0c\u5728\u5217\u8868\u53f3\u4fa7\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002\u8981\u5220\u9664\u5df2\u6709\u7528\u6237\uff0c\u5728\u5217\u8868\u53f3\u5219\u5355\u51fb<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-trash.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u3002<\/p>\n<h2>L2TP\u4e0ePsec<\/h2>\n<p>\u5728\u5f53\u524d\u7248\u672c\u7684pfSense\u4e0a\uff0c\u53ef\u4ee5\u4e3a\u79fb\u52a8\u5ba2\u6237\u7aef\u914d\u7f6eL2TP \/ IPsec\uff0c\u4f46\u8fd9\u4e0d\u662f\u6211\u4eec\u63a8\u8350\u7684\u914d\u7f6e\u3002<\/p>\n<p>\u6b63\u5982\u672c\u7ae0\u5f00\u59cb\u65f6\u6240\u8b66\u544a\u7684\u90a3\u6837\uff0cWindows\u5ba2\u6237\u7aef\u4ee5\u53castrongSwan IPsec\u5b88\u62a4\u8fdb\u7a0b\u5e76\u4e0d\u603b\u662f\u517c\u5bb9\u7684\uff0c\u5728\u5f88\u591a\u60c5\u51b5\u4e0b\u5bfc\u81f4\u5931\u8d25\u3002 \u6211\u4eec\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528\u5176\u4ed6\u89e3\u51b3\u65b9\u6848\uff0c\u5982IKEv2\u800c\u4e0d\u662fL2TP \/ IPsec\u3002<\/p>\n<p><strong>\u8bbe\u7f6ePsec<\/strong><\/p>\n<p>\u8fd9\u4e9b\u8bbe\u7f6e\u5df2\u7ecf\u8fc7\u6d4b\u8bd5\uff0c\u53d1\u73b0\u53ef\u4ee5\u4e0e\u67d0\u4e9b\u5ba2\u6237\u7aef\u4e00\u8d77\u4f7f\u7528\uff0c\u4f46\u5176\u4ed6\u7c7b\u4f3c\u7684\u8bbe\u7f6e\u4e5f\u53ef\u4ee5\u8d77\u4f5c\u7528\u3002\u00a0\u5982\u679c\u4e0d\u80fd\u4f7f\u7528\uff0c\u8bf7\u968f\u610f\u5c1d\u8bd5\u5176\u4ed6\u52a0\u5bc6\u7b97\u6cd5\u3001\u54c8\u5e0c\u8bbe\u7f6e\u7b49\u3002<\/p>\n<h3>\u79fb\u52a8\u5ba2\u6237\u7aef\u9009\u9879\u5361<\/h3>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230VPN&gt; IPsec,\u00a0\u79fb\u52a8\u5ba2\u6237\u7aef\u9009\u9879\u5361<\/li>\n<li>\u8bbe\u7f6e\u542f\u7528\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301<\/li>\n<li>\u8bbe\u7f6e\u7528\u6237\u8ba4\u8bc1\u4e3a\u672c\u5730\u6570\u636e\u5e93 (\u5fc5\u987b\u9009\u4e2d)<\/li>\n<li>\u4e0d\u9009\u5411\u5ba2\u6237\u63d0\u4f9b\u4e00\u4e2a\u865a\u62df\u7684IP\u5730\u5740<\/li>\n<li>\u4e0d\u9009\u5411\u5ba2\u6237\u63d0\u4f9b\u53ef\u8bbf\u95ee\u7684\u7f51\u7edc\u5217\u8868<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<h3>\u9636\u6bb51<\/h3>\n<ul class=\" list-paddingleft-2\">\n<li>\u5982\u679c\u51fa\u73b0\uff0c\u5355\u51fb\u9876\u90e8\u7684\u521b\u5efa\u9636\u6bb51\u6309\u94ae\uff0c\u6216\u7f16\u8f91\u73b0\u6709\u7684\u79fb\u52a8IPsec\u9636\u6bb51<\/li>\n<li>\u5982\u679c\u6ca1\u6709\u9636\u6bb51\uff0c\u5e76\u4e14\u6ca1\u6709\u51fa\u73b0\u201c\u521b\u5efa\u9636\u6bb51\u201d\u6309\u94ae\uff0c\u8bf7\u5bfc\u822a\u56de\u201c\u79fb\u52a8\u5ba2\u6237\u7aef\u201d\u9009\u9879\u5361\u5e76\u5728\u8be5\u5904\u5355\u51fb\u3002<\/li>\n<li>\u8bbe\u7f6e\u5bc6\u94a5\u4ea4\u6362\u7248\u672c\u4e3a\u00a0v1<\/li>\n<li>\u8f93\u5165\u5408\u9002\u7684\u63cf\u8ff0\u8bf4\u660e<\/li>\n<li>\u8bbe\u7f6e\u8ba4\u8bc1\u65b9\u6cd5Mutual PSK<\/li>\n<li>\u8bbe\u7f6e\u534f\u5546\u6a21\u5f0f\u4e3a\u4e3b\u8981<\/li>\n<li>\u8bbe\u7f6e\u6211\u7684\u6807\u793a\u7b26\u4e3a\u00a0\u6211\u7684IP\u5730\u5740<\/li>\n<li>\u8bbe\u7f6e\u52a0\u5bc6\u7b97\u6cd5\u4e3a\u00a0AES 256<\/li>\n<li>\u8bbe\u7f6e\u54c8\u5e0c\u7b97\u6cd5\u4e3aSHA1<\/li>\n<li>\u8bbe\u7f6e\u00a0DH\u5bc6\u94a5\u7ec4\u4e3a14 (2048 bit)\u3002\u6ce8\u610f\uff1aiOS\u548c\u5176\u4ed6\u5e73\u53f0\u53ef\u4ee5\u4f7f\u7528DH\u5bc6\u94a5\u7ec42\u6765\u4ee3\u66ff\u3002<\/li>\n<li>\u8bbe\u7f6e\u6709\u6548\u671f\u4e3a\u00a028800<\/li>\n<li>\u4e0d\u9009\u7981\u7528\u9884\u6388\u5bc6\u94a5<\/li>\n<li>\u8bbe\u7f6eNAT\u7a7f\u8d8a\u4e3a\u81ea\u52a8<\/li>\n<li>\u8bbe\u7f6e\u542f\u7528DPD, \u8bbe\u7f6e\u5ef6\u8fdf10\u79d2\uff0c\u6700\u5927\u6545\u969c\u91cd\u8bd55\u6b21\u3002<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<h3>\u9636\u6bb5 2<\/h3>\n<ul class=\" list-paddingleft-2\">\n<li>\u5728\u663e\u793a\u79fb\u52a8IPsec\u9636\u6bb52\u5217\u8868\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1688\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-plus-circle.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u663e\u793a\u9636\u6bb52\u6761\u76ee<\/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\u9636\u6bb52\u6761\u76ee\u00a0,\u00a0\u6216\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-pencil.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u7f16\u8f91\u4e00\u4e2a\u5df2\u6709\u6761\u76ee<\/li>\n<li>\u8bbe\u7f6e\u6a21\u5f0f\u4e3a\u4f20\u9001<\/li>\n<li>\u586b\u5199\u5408\u9002\u7684\u63cf\u8ff0<\/li>\n<li>\u8bbe\u7f6e\u534f\u8bae\u4e3aESP<\/li>\n<li>\u8bbe\u7f6e\u52a0\u5bc6\u7b97\u6cd5\u4e3a\u00a0AES 128<\/li>\n<li>\u8bbe\u7f6e\u54c8\u5e0c\u7b97\u6cd5\u4e3a\u00a0SHA1<\/li>\n<li>\u8bbe\u7f6ePFS\u5bc6\u94a5\u7ec4\u4e3a\u5173<\/li>\n<li>\u8bbe\u7f6e\u6709\u6548\u671f\u4e3a\u00a03600<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<\/ul>\n<h3>\u9884\u5171\u4eab\u5bc6\u94a5<\/h3>\n<p>\u8fde\u63a5\u7684\u9884\u5171\u4eab\u5bc6\u94a5\uff08\u6240\u6709\u5ba2\u6237\u7aef\u90fd\u901a\u7528\uff09\u5fc5\u987b\u4ee5\u7279\u6b8a\u65b9\u5f0f\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230 VPN &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\u4e00\u4e2a\u65b0\u7684\u9884\u5171\u4eab\u5bc6\u94a5<\/li>\n<li>\u8bbe\u7f6e\u6807\u8bc6\u7b26\u4e3a\u00a0allusers\u3002\u6ce8\u610f\uff1aallusers\u540d\u79f0\u662fpfSense\u4f7f\u7528\u7684\u4e00\u4e2a\u7279\u6b8a\u5173\u952e\u5b57\uff0c\u7528\u4e8e\u914d\u7f6eL2TP \/ IPsec\u8fd0\u884c\u6240\u9700\u7684\u901a\u914d\u7b26PSK\u3002 \u4e0d\u8981\u4f7f\u7528\u8fd9\u4e2aPSK\u7684\u4efb\u4f55\u5176\u4ed6\u6807\u8bc6\u7b26\uff01<\/li>\n<li>\u8bbe\u7f6e\u52a0\u5bc6\u7c7b\u578b\u4e3a\u00a0PSK<\/li>\n<li>\u8f93\u5165\u4e00\u4e2a\u9884\u5171\u4eab\u5bc6\u94a5,\u00a0\u5982aaabbbccc\u00a0\uff0c\u66f4\u957f\uff0c\u66f4\u968f\u673a\u7684\u5bc6\u7801\u4e00\u822c\u4f1a\u66f4\u5b89\u5168\uff01<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<li>\u5355\u51fb\u5e94\u7528\u66f4\u6539<\/li>\n<\/ul>\n<h2>IPsec \u9632\u706b\u5899\u89c4\u5219<\/h2>\n<p>\u9632\u706b\u5899\u89c4\u5219\u5bf9\u4e8e\u901a\u8fc7IPsec\u4f20\u8f93\u6765\u81ea\u5ba2\u6237\u7aef\u4e3b\u673a\u7684\u6d41\u91cf\u6765\u5efa\u7acbL2TP\u96a7\u9053\u662f\u5fc5\u8981\u7684\uff0c\u5e76\u4e14\u5728L2TP\u5185\u90e8\u9700\u8981\u5c06\u5b9e\u9645\u96a7\u9053VPN\u6d41\u91cf\u4f20\u9012\u5230VPN\u4e0a\u7684\u7cfb\u7edf\u3002\u8981\u6dfb\u52a0IPsec\u89c4\u5219\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230\u9632\u706b\u5899\u00a0&gt;\u00a0\u89c4\u5219\u7b56\u7565,\u00a0IPsec\u9009\u9879\u5361\u3002\u5ba1\u67e5\u5f53\u524d\u7684\u89c4\u5219\u3002 \u5982\u679c\u6709\u201c\u5141\u8bb8\u6240\u6709\u201d\u6837\u5f0f\u89c4\u5219\uff0c\u5219\u4e0d\u9700\u8981\u6dfb\u52a0\u5176\u4ed6\u89c4\u5219\u3002 \u7ee7\u7eed\u4e0b\u4e00\u4e2a\u4efb\u52a1\u3002<\/li>\n<li>\u5728\u5217\u8868\u9876\u90e8\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1693\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-level-up.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u9632\u706b\u5899\u89c4\u5219<\/li>\n<li>\u8bbe\u7f6e\u534f\u8bae\u4e3aany<\/li>\n<li>\u8bbe\u7f6e\u6e90\u5730\u5740\u548c\u76ee\u6807\u5730\u5740\u90fd\u4e3aany\u3002\u6ce8\u610f\uff1a\u4e0d\u5fc5\u5141\u8bb8\u6240\u6709\u6d41\u91cf\u901a\u8fc7\uff0c\u4f46\u5fc5\u987b\u81f3\u5c11\u5141\u8bb8L2TP\uff08UDP\u7aef\u53e31701\uff09\u5230\u9632\u706b\u5899\u7684WAN IP\u5730\u5740\u7684\u901a\u884c\u3002<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<li>\u5355\u51fb\u5e94\u7528\u66f4\u6539<\/li>\n<\/ul>\n<h2>DNS\u00a0\u914d\u7f6e<\/h2>\n<p>\u5982\u679c\u8981\u628aDNS\u670d\u52a1\u5668\u63d0\u4f9b\u7ed9\u5ba2\u6237\u7aef\uff0c\u5e76\u4e14\u4f7f\u7528\u4e86\u672a\u7ed1\u5b9a\u7684DNS\u89e3\u6790\u5668\uff0c\u5219\u4e3aL2TP\u5ba2\u6237\u7aef\u9009\u62e9\u7684\u5b50\u7f51\u5fc5\u987b\u6dfb\u52a0\u5230\u5176\u8bbf\u95ee\u5217\u8868\u4e2d\u3002<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230\u7cfb\u7edf\u670d\u52a1\u00a0&gt; DNS\u89e3\u6790\u5668,\u00a0\u8bbf\u95ee\u5217\u8868\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\u8bbf\u95ee\u5217\u8868<\/li>\n<li>\u8f93\u5165\u8bbf\u95ee\u5217\u8868\u540d\u79f0\uff0c\u5982 VPN Users<\/li>\n<li>\u8bbe\u7f6e\u52a8\u4f5c\u4e3a\u00a0Allow<\/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\u7f51\u7edc<\/li>\n<li>\u5728\u6846\u4e2d\u8f93\u5165VPN\u5ba2\u6237\u7aef\u5b50\u7f51,\u00a0\u5982\uff1a\u00a010.3.177.128<\/li>\n<li>\u9009\u62e9\u9002\u5f53\u7684\u63a9\u7801,\u00a0\u5982\uff1a\u00a025<\/li>\n<li>\u5355\u51fb\u4fdd\u5b58<\/li>\n<li>\u5355\u51fb\u5e94\u7528\u66f4\u6539<\/li>\n<\/ul>\n<h2>\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h2>\n<p>\u5728\u914d\u7f6e\u5ba2\u6237\u7aef\u65f6\uff0c\u6709\u51e0\u70b9\u9700\u8981\u6ce8\u610f:<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u786e\u4fdd\u5c06\u5ba2\u6237\u7aef\u64cd\u4f5c\u7cfb\u7edf\u914d\u7f6e\u8bbe\u7f6e\u4e3a\u8fde\u63a5\u5230\u9002\u5f53\u7684VPN\u7684\u5916\u90e8\u5730\u5740\u3002<\/li>\n<li>\u5982\u679c\u5ba2\u6237\u7aef\u5177\u6709\u81ea\u52a8\u6a21\u5f0f\uff0c\u5219\u53ef\u80fd\u9700\u8981\u5f3a\u5236VPN\u7c7b\u578b\u4e3aL2TP \/ IPsec\u3002<\/li>\n<li>\u5ba2\u6237\u7aef\u8ba4\u8bc1\u7c7b\u578b\u5fc5\u987b\u4e0eL2TP\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u7684\u5185\u5bb9\u7b26\u5408\uff08\u4f8b\u5982CHAP\uff09<\/li>\n<\/ul>\n<p>L2TP\u00a0\u6545\u969c\u6392\u67e5<\/p>\n<p>\u672c\u8282\u4ecb\u7ecd\u7528\u6237\u9047\u5230\u7684L2TP\u6700\u5e38\u89c1\u95ee\u9898\u7684\u6545\u969c\u6392\u9664\u6b65\u9aa4\u3002<\/p>\n<h2>\u4e0d\u80fd\u8fde\u63a5<\/h2>\n<p>\u68c0\u67e5\u662f\u5426\u5df2\u5c06\u9632\u706b\u5899\u89c4\u5219\u6dfb\u52a0\u5230L2TP\u901a\u4fe1\u8fdb\u5165\u9632\u706b\u5899\u7684\u5916\u90e8\u63a5\u53e3\u3002 \u8fd8\u8981\u786e\u4fdd\u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u5728L2TP\u8bbe\u7f6e\u4e2d\u9009\u62e9\u7684\u63a5\u53e3IP\u5730\u5740\u3002<\/p>\n<h2>\u5df2\u8fde\u63a5\u5230L2TP\uff0c\u4f46\u4e0d\u80fd\u901a\u8fc7\u6d41\u91cf<\/h2>\n<p>\u786e\u4fdd\u9632\u706b\u5899\u89c4\u5219\u5df2\u6dfb\u52a0\u5230L2TP VPN\u63a5\u53e3\u3002<\/p>\n<p>\u540c\u65f6\u786e\u4fddVPN\u4e0a\u7684\u8fdc\u7a0b\u5b50\u7f51\u4e0e\u672c\u5730\u5b50\u7f51\u4e0d\u540c\u3002 \u5f53\u5ba2\u6237\u7aef\u6240\u5728\u7684\u672c\u5730\u5b50\u7f51\u4e5f\u662f192.168.1.0\/24\u65f6\uff0c\u4e0d\u53ef\u80fd\u901a\u8fc7VPN\u5230\u8fbe192.168.1.0\/24\u7f51\u7edc\uff0c\u56e0\u6b64\u6d41\u5411\u8be5\u5b50\u7f51\u7684\u6d41\u91cf\u5c06\u6c38\u8fdc\u4e0d\u4f1a\u7a7f\u8d8aVPN\uff0c\u56e0\u4e3a\u5b83\u5728\u672c\u5730\u7f51\u7edc\u4e0a\u3002 \u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u5728\u4f7f\u7528VPN\u65f6\u9009\u62e9\u4e00\u4e2a\u6bd4\u8f83\u6a21\u7cca\u7684\u5c40\u57df\u7f51\u5b50\u7f51\u5f88\u91cd\u8981\u3002<\/p>\n<p><strong>\u8fde\u63a5\u5931\u8d25\u4e0eWindows\u5ba2\u6237\u7aef<\/strong><\/p>\n<p>\u5982\u679cIPsec\u5c42\u770b\u8d77\u6765\u5df2\u7ecf\u5b8c\u6210\uff0c\u4f46\u6ca1\u6709L2TP\u6d41\u91cf\u901a\u8fc7\uff0c\u90a3\u4e48\u5f88\u53ef\u80fd\u662fWindows\u4e0epfSense\u4e0a\u4f7f\u7528\u7684strongSwan\u5b88\u62a4\u7a0b\u5e8f\u4e4b\u95f4\u7684\u5df2\u77e5\u4e0d\u517c\u5bb9\u6027\u3002 \u76ee\u524d\u6ca1\u6709\u5df2\u77e5\u7684\u89e3\u51b3\u65b9\u6cd5\uff0c\u9664\u4e86\u5c06Windows\u7cfb\u7edf\u4eceNAT\u540e\u9762\u79fb\u51fa\uff0c\u6216\u8005\u4f7f\u7528\u4e0d\u540c\u6837\u5f0f\u7684VPN\uff08\u4f8b\u5982IKEv2\uff09\u3002<\/p>\n<h2>L2TP\u6d41\u91cf\u88ab\u963b\u6b62\u51fa\u7ad9<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982\u4e0eIPsec\u7ed3\u5408\u4f7f\u7528\u65f6\uff0cL2TP\u6d41\u91cf\u4e5f\u53ef\u80fd\u9700\u8981\u901a\u8fc7\u6d6e\u52a8\u89c4\u5219\u8fdb\u884c\u7279\u6b8a\u5904\u7406\u3002 \u5728\u9632\u706b\u5899\u65e5\u5fd7\u4e2d\u51fa\u7ad9\u65b9\u5411\u4e0a\u663e\u793a\u4e3a\u963b\u6b62\u7684\u6d41\u91cf\uff0c\u4f1a\u663e\u793a\u4e3aL2TP\u670d\u52a1\u5668\u63a5\u53e3\u3002\u5982\u679c\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u6309\u5982\u4e0b\u6240\u793a\u6dfb\u52a0\u6d6e\u52a8\u89c4\u5219:<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u5bfc\u822a\u5230\u9632\u706b\u5899&gt;\u89c4\u5219\u7b56\u7565,\u00a0\u6d6e\u52a8\u9009\u9879\u5361<\/li>\n<li>\u5728\u5217\u8868\u9876\u90e8\u5355\u51fb <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1693\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/07\/fa-level-up.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0\u6dfb\u52a0\u4e00\u6761\u89c4\u5219<\/li>\n<li>\u8bbe\u7f6e\u52a8\u4f5c\u4e3a\u901a\u8fc7<\/li>\n<li>\u9009\u4e2d\u5feb\u901f<\/li>\n<li>\u63a5\u53e3\u9009\u62e9L2TP VPN<\/li>\n<li>\u8bbe\u7f6e\u65b9\u5411\u4e3a\u51fa<\/li>\n<li>\u8bbe\u7f6e\u534f\u8bae\u4e3a\u00a0TCP<\/li>\n<li>\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u6e90\u5730\u5740\/\u76ee\u6807\u5730\u5740\uff0c\u6216\u8bbe\u7f6e\u4e3aany<\/li>\n<li>\u9ad8\u7ea7\u9009\u9879:<\/li>\n<li>\u8bbe\u7f6eTCP\u00a0\u6807\u8bc6\u4e3a\u4efb\u610f\u6807\u8bc6<\/li>\n<li>\u8bbe\u7f6e\u72b6\u6001\u7c7b\u578b\u00a0Sloppy<\/li>\n<\/ul>\n<p>L2TP\u00a0\u65e5\u5fd7<\/p>\n<p>\u767b\u5f55\u548c\u6ce8\u9500\u4e8b\u4ef6\u7684\u8bb0\u5f55\u4fdd\u5b58\u5728\u201c\u7cfb\u7edf\u72b6\u6001\u201d&gt;\u201c\u7cfb\u7edf\u65e5\u5fd7\u201d\u201cL2TP\u767b\u5f55\u201d\u4e0b\u7684\u201cVPN\u201d\u9009\u9879\u5361\u4e0a\u3002<\/p>\n<p>\u6bcf\u4e2a\u767b\u5f55\u548c\u6ce8\u9500\u90fd\u4f1a\u8bb0\u5f55\u4e00\u4e2a\u65f6\u95f4\u6233\u548c\u7528\u6237\u540d\uff0c\u6bcf\u4e2a\u767b\u5f55\u540d\u4e5f\u5c06\u663e\u793a\u5206\u914d\u7ed9L2TP\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u3002 \u5b8c\u6574\u7684\u65e5\u5fd7\u53ef\u4ee5\u5728\u201cL2TP\u00a0\u539f\u59cb\u201d\u9009\u9879\u5361\u4e0a\u627e\u5230\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pfSense\u53ef\u4ee5\u5145\u5f53L2TP VPN\u670d\u52a1\u5668\u3002 L2TP\u7eaf\u7cb9\u662f\u4e00\u79cd\u96a7\u9053\u534f\u8bae\uff0c\u4e0d\u63d0 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=202\">\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":[19],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-l2tp"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/202","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=202"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}