{"id":2232,"date":"2019-10-31T10:56:28","date_gmt":"2019-10-31T02:56:28","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=2232"},"modified":"2022-04-28T11:22:26","modified_gmt":"2022-04-28T03:22:26","slug":"%e5%9c%a8pfsense%e4%b8%ad%e5%bb%ba%e7%ab%8bvpn%e8%bf%9e%e6%8e%a5%e6%9d%a5%e5%ae%9e%e7%8e%b0%e8%bf%9c%e7%a8%8b%e7%ae%a1%e7%90%86%e9%98%b2%e7%81%ab%e5%a2%99","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=2232","title":{"rendered":"\u901a\u8fc7VPN\u8fde\u63a5\u8fdc\u7a0b\u7ba1\u7406pfSense\u9632\u706b\u5899"},"content":{"rendered":"<p>\u4e00\u822c\u8fdc\u7a0b\u7ba1\u7406\u9632\u706b\u5899\uff0c\u591a\u91c7\u7528\u5f00\u653e\u7279\u5b9a\u5916\u7f51\u7aef\u53e3\u6765\u8fdb\u884c\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u65b9\u6cd5\u7b80\u5355\uff0c\u4f46\u5b58\u5728\u4e00\u5b9a\u7684\u5b89\u5168\u9690\u60a3\u3002\u901a\u8fc7\u5efa\u7acbVPN\u8fde\u63a5\u6765\u8fdb\u884c\u8fdc\u7a0b\u7ba1\u7406\uff0c\u5219\u76f8\u5bf9\u5b89\u5168\u7684\u591a\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u4f7f\u7528L2TP\u6765\u5efa\u7acbVPN\u8fde\u63a5\uff0c\u5b9e\u73b0\u8fdc\u7a0b\u7ba1\u7406\u9632\u706b\u5899\u7684\u76ee\u7684\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u7531\u4e8e\u6211\u7684pfSense\u9632\u706b\u5899\u4e3a\u53ccWAN\u63a5\u53e3\uff0c\u8be5\u6559\u7a0b\u6240\u6709\u7684\u8fde\u63a5\u548c\u7b56\u7565\u8bbe\u7f6e\u90fd\u5728WAN2\u63a5\u53e3\u4e0a\u5b8c\u6210\u3002<\/p>\n<h1>\u4e00\u3001\u542f\u7528L2TP\u670d\u52a1\u5668<\/h1>\n<p>\u5bfc\u822a\u5230VPN&gt;L2TP&gt;\u914d\u7f6e\uff0c\u6309\u4e0b\u56fe\u6240\u793a\u586b\u5199L2TP\u670d\u52a1\u5668\u5404\u9879\u53c2\u6570\u3002\u670d\u52a1\u5668\u5730\u5740\u548c\u8fdc\u7a0b\u5730\u5740\u8303\u56f4\u6839\u636e\u9700\u8981\u8fdb\u884c\u586b\u5199\uff0c\u8fd9\u4e9b\u5730\u5740\u4e0d\u80fd\u4e0e\u4f60\u5185\u7f51\u7684\u4efb\u4f55\u5730\u5740\u51b2\u7a81\u3002\u5bc6\u94a5\u4e0d\u7528\u586b\u5199\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2233\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1.png\" alt=\"\" width=\"1141\" height=\"880\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1-1024x790.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1-300x231.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1-768x592.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp1-389x300.png 389w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/a><\/p>\n<h1>\u4e8c\u3001\u65b0\u5efaL2TP\u7528\u6237<\/h1>\n<p>\u5bfc\u822a\u5230VPN&gt;L2TP&gt;\u7528\u6237\uff0c\u65b0\u5efa\u4e00\u4e2aVPN\u7528\u6237\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2234\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1.png\" alt=\"\" width=\"1145\" height=\"343\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1.png 1145w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1-1024x307.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1-300x90.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1-768x230.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tp_user1-500x150.png 500w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><\/a><\/p>\n<h1>\u4e09\u3001IPsec\u8bbe\u7f6e<\/h1>\n<p><strong>1\u3001\u542f\u7528IPSec\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301<\/strong><\/p>\n<p>\u5bfc\u822a\u5230VPN&gt;IPsec&gt;\u79fb\u52a8\u5ba2\u6237\u7aef\uff0c\u542f\u7528IPSec\u79fb\u52a8\u5ba2\u6237\u7aef\u652f\u6301\u3002\u8bbe\u7f6e\u53c2\u6570\u89c1\u4e0b\u56fe\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2235\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile.png\" alt=\"\" width=\"1140\" height=\"924\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile.png 1140w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile-1024x830.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile-300x243.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile-768x622.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_mobile-370x300.png 370w\" sizes=\"auto, (max-width: 1140px) 100vw, 1140px\" \/><\/a><\/p>\n<p><strong>2\u3001\u8bbe\u7f6e\u9636\u6bb51<\/strong><\/p>\n<p>\u6839\u636e\u63d0\u793a\uff0c\u8bbe\u7f6e\u9636\u6bb51\uff0c\u5404\u9879\u53c2\u6570\u89c1\u4e0b\u56fe\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2237\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1.png\" alt=\"\" width=\"1138\" height=\"1474\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1.png 1138w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1-791x1024.png 791w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1-232x300.png 232w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash1-768x995.png 768w\" sizes=\"auto, (max-width: 1138px) 100vw, 1138px\" \/><\/a><\/p>\n<p><strong>3\u3001\u8bbe\u7f6e\u9636\u6bb52<\/strong><\/p>\n<p>\u6dfb\u52a0\u9636\u6bb52\uff0c\u5404\u9879\u53c2\u6570\u89c1\u4e0b\u56fe\u3002\u6ce8\u610f\u6a21\u5f0f\u9009<strong>\u4f20\u8f93<\/strong>\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2238\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2.png\" alt=\"\" width=\"1141\" height=\"1144\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2-1021x1024.png 1021w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2-300x300.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2-768x770.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/pash2-299x300.png 299w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/a><\/p>\n<p>\u5b8c\u6210\u540e\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2239\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8.png\" alt=\"\" width=\"1142\" height=\"418\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8.png 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8-1024x375.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8-300x110.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8-768x281.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-IPsec8-500x183.png 500w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n<p><strong>4\u3001\u8bbe\u7f6e\u9884\u5171\u4eab\u5bc6\u94a5<\/strong><\/p>\n<p>\u5bfc\u822a\u5230VPN&gt;IPsec&gt;\u9884\u5171\u4eab\u5bc6\u94a5\uff0c\u6dfb\u52a0\u9884\u5171\u4eab\u5bc6\u94a5\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2236\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey.png\" alt=\"\" width=\"1138\" height=\"500\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey.png 1138w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey-1024x450.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey-300x132.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey-768x337.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsec_rpkey-500x220.png 500w\" sizes=\"auto, (max-width: 1138px) 100vw, 1138px\" \/><\/a><\/p>\n<h1>\u56db\u3001\u6dfb\u52a0\u9632\u706b\u5899\u89c4\u5219<\/h1>\n<p><strong>1\u3001\u5f00\u653eWAN2\u63a5\u53e3\u76841701\u7aef\u53e3<\/strong><\/p>\n<p>L2TP\u8fde\u63a5\u5fc5\u987b\u5f00\u653eWAN\u63a5\u53e3\u76841701 UDP\u7aef\u53e3\u624d\u80fd\u6b63\u5e38\u8fde\u63a5\u3002\u5bfc\u822a\u5230\u9632\u706b\u5899-\u89c4\u5219\u7b56\u7565-WAN2\u63a5\u53e3\uff0c\u5728\u53f3\u4e0b\u89d2\u5355\u51fb\u6dfb\u52a0\u89c4\u5219\uff0c\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2241\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701.png\" alt=\"\" width=\"1145\" height=\"1061\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701.png 1145w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701-1024x949.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701-300x278.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701-768x712.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701-324x300.png 324w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><\/a><\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\uff0c\u9632\u706b\u5899\u89c4\u5219\u5217\u8868\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2242\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81.png\" alt=\"\" width=\"1142\" height=\"250\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81.png 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81-1024x224.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81-300x66.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81-768x168.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/rule1701_81-500x109.png 500w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n<p><strong>2\u3001\u5141\u8bb8VPN\u7528\u6237\u8bbf\u95ee\u9632\u706b\u5899\u5185\u90e8\u7f51\u7edc<\/strong><\/p>\n<p>\u5bfc\u822a\u5230\u9632\u706b\u5899-\u89c4\u5219\u7b56\u7565-L2TP\u00a0 VPN\u63a5\u53e3\uff0c\u5728\u53f3\u4e0b\u89d2\u5355\u51fb\u6dfb\u52a0\uff0c\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2244\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1.png\" alt=\"\" width=\"1141\" height=\"986\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1-1024x885.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1-300x259.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1-768x664.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/l2tpVPN_RUL1-347x300.png 347w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/a><\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u540e\uff0c\u9632\u706b\u5899\u89c4\u5219\u5217\u8868\u5982\u4e0b\uff1a<a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2243\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule.png\" alt=\"\" width=\"1142\" height=\"246\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule.png 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule-1024x221.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule-300x65.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule-768x165.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/L2TP-VPN-rule-500x108.png 500w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n<p>\u5bfc\u822a\u5230\u9632\u706b\u5899-\u89c4\u5219\u7b56\u7565-IPSEC\u63a5\u53e3\uff0c\u6dfb\u52a0\u5141\u8bb8\u8bbf\u95ee\u7684\u89c4\u5219\uff0c\u8bbe\u7f6e\u540e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2252\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8.png\" alt=\"\" width=\"1137\" height=\"240\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8.png 1137w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8-1024x216.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8-300x63.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8-768x162.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/ipsecrule8-500x106.png 500w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/a><\/p>\n<p>\u81f3\u6b64\uff0c\u9632\u706b\u5899\u7684\u8bbe\u7f6e\u5b8c\u6210\u3002<\/p>\n<h1>\u4e94\u3001\u5ba2\u6237\u7aef\u8bbe\u7f6e<\/h1>\n<h2>\uff08\u4e00\uff09Windows\u5ba2\u6237\u7aefVPN\u8bbe\u7f6e<\/h2>\n<ul>\n<li>\u53f3\u952e\u5355\u51fb\u7cfb\u7edf\u6258\u76d8\u4e2d\u7684\u65e0\u7ebf\/\u7f51\u7edc\u56fe\u6807\u3002<\/li>\n<li>\u9009\u62e9\u6253\u5f00<strong>\u7f51\u7edc\u548c Internet<\/strong>\u8bbe\u7f6e\uff0c\u7136\u540e\u5728\u6253\u5f00\u7684\u9875\u9762\u4e2d\u5355\u51fb<strong>\u7f51\u7edc\u548c\u5171\u4eab\u4e2d\u5fc3<\/strong>\u3002<\/li>\n<li>\u5355\u51fb<strong>\u8bbe\u7f6e\u65b0\u7684\u8fde\u63a5\u6216\u7f51\u7edc<\/strong>\u3002<\/li>\n<li>\u9009\u62e9<strong>\u8fde\u63a5\u5230\u5de5\u4f5c\u533a<\/strong>\uff0c\u7136\u540e\u5355\u51fb \u4e0b\u4e00\u6b65\u3002<\/li>\n<li>\u5355\u51fb<strong>\u4f7f\u7528\u6211\u7684Internet\u8fde\u63a5 (VPN)<\/strong>\u3002<\/li>\n<li>\u5728 Internet\u5730\u5740 \u5b57\u6bb5\u4e2d\u8f93\u5165\u4f60\u7684 VPN \u670d\u52a1\u5668 IP\u3002<\/li>\n<li>\u5728<strong>\u76ee\u6807\u540d\u79f0<\/strong>\u5b57\u6bb5\u4e2d\u8f93\u5165\u4efb\u610f\u5185\u5bb9\u3002\u5355\u51fb \u521b\u5efa\u3002<\/li>\n<li>\u8fd4\u56de \u7f51\u7edc\u548c\u5171\u4eab\u4e2d\u5fc3\u3002\u5355\u51fb\u5de6\u4fa7\u7684 \u66f4\u6539\u9002\u914d\u5668\u8bbe\u7f6e\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u65b0\u521b\u5efa\u7684 VPN \u8fde\u63a5\uff0c\u5e76\u9009\u62e9 \u5c5e\u6027\u3002<\/li>\n<li>\u5355\u51fb<strong>\u5b89\u5168<\/strong>\u9009\u9879\u5361\uff0c\u4ece VPN \u7c7b\u578b \u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9 \u201c\u4f7f\u7528 IPsec \u7684\u7b2c 2 \u5c42\u96a7\u9053\u534f\u8bae (L2TP\/IPSec)\u201d\u3002<\/li>\n<li>\u5355\u51fb<strong>\u5141\u8bb8\u4f7f\u7528\u8fd9\u4e9b\u534f\u8bae<\/strong>\u3002\u786e\u4fdd\u9009\u4e2d \u201c\u8d28\u8be2\u63e1\u624b\u8eab\u4efd\u9a8c\u8bc1\u534f\u8bae (CHAP)\u201d \u590d\u9009\u6846\u3002<\/li>\n<li>\u5355\u51fb<strong>\u9ad8\u7ea7\u8bbe\u7f6e<\/strong>\uff0c\u586b\u5165\u5728pfsense\u9632\u706b\u5899\u4e2d\u8bbe\u7f6e\u7684\u9884\u5171\u4eab\u5bc6\u94a5\u3002<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2245\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672.jpg\" alt=\"\" width=\"1139\" height=\"688\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672.jpg 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672-1024x619.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672-300x181.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672-768x464.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109388672-497x300.jpg 497w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2246\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677.jpg\" alt=\"\" width=\"1139\" height=\"688\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677.jpg 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677-1024x619.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677-300x181.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677-768x464.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109481677-497x300.jpg 497w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/235355.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2247\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/235355.png\" alt=\"\" width=\"418\" height=\"602\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/235355.png 418w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/235355-208x300.png 208w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/><\/a><\/p>\n<p>\u5728Win10\u7cfb\u7edf\u4e2d\u8fd8\u8981\u8fdb\u884c\u4ee5\u4e0b\u989d\u5916\u8bbe\u7f6e\u3002<\/p>\n<p><strong>1\u3001\u68c0\u67e5IPsec Policy Agent\u670d\u52a1<\/strong><br \/>\nWindows + R -&gt; \u8fd0\u884c \uff0c\u8f93\u5165 services.msc\uff0c\u6253\u5f00\u201c\u670d\u52a1\u201d\u7a97\u53e3\u3002\u786e\u8ba4 IPsec Policy Agent \u670d\u52a1\u5f00\u542f\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2248\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685.jpg\" alt=\"\" width=\"1315\" height=\"552\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685.jpg 1315w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685-1024x430.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685-300x126.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685-768x322.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542109285685-500x210.jpg 500w\" sizes=\"auto, (max-width: 1315px) 100vw, 1315px\" \/><\/a><\/p>\n<p><strong>2\u3001\u4fee\u6539\u6ce8\u518c\u8868<\/strong><\/p>\n<p>\u540c\u65f6\u6309\u5feb\u6377\u952e\u201cWin + R\u201d\uff0c\u6253\u5f00\u201c\u8fd0\u884c\u201d\u7a97\u53e3\uff0c\u8f93\u5165 regedit \u547d\u4ee4\uff0c\u7136\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d<\/p>\n<p>\u5728\u201c\u6ce8\u518c\u8868\u7f16\u8f91\u5668\u201d\u4e2d\uff0c\u627e\u5230\u4ee5\u4e0b\u6ce8\u518c\u8868\u5b50\u9879\uff1a<\/p>\n<p>HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\Rasman\\Parameters<br \/>\n\u65b0\u5efa\u4e00\u4e2aDWORD\u7c7b\u578b\uff0c\u540d\u4e3aProhibitIpSec\uff0c\u7136\u540e\u7136\u540e\u521b\u5efaDWORD\u503c\u4e3a1<\/p>\n<p>\u627e\u5230\u201cAllowL2TPWeakCrypto\u201d\uff0c\u7136\u540e\u628a\u503c\u6539\u6210\u201c1\u201d<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PolicyAgent<\/p>\n<p>\u65b0\u5efa\u4e00\u4e2aDWORD\u7c7b\u578b\uff0c\u540d\u4e3aAssumeUDPEncapsulationContextOnSendRule\u7684\u952e\uff0c\u5c06\u503c\u4fee\u6539\u4e3a2 \u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2249\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985.jpg\" alt=\"\" width=\"1072\" height=\"538\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985.jpg 1072w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985-1024x514.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985-300x151.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985-768x385.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/1542108970985-500x251.jpg 500w\" sizes=\"auto, (max-width: 1072px) 100vw, 1072px\" \/><\/a><\/p>\n<h2>\uff08\u4e8c\uff09\u624b\u673a\u5ba2\u6237\u7aef<\/h2>\n<p>\u5728iphone\u4e2d\uff0c\u8bbe\u7f6eVPN\u8fde\u63a5\uff0c\u8fdb\u5165<strong>\u8bbe\u7f6e-VPN-\u6dfb\u52a0VPN\u914d\u7f6e<\/strong>\uff0c\u5728\u7c7b\u578b\u4e2d\u9009L2TP\uff0c\u8f93\u5165\u76f8\u5e94\u53c2\u6570\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2362\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779.png\" alt=\"\" width=\"827\" height=\"1044\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779.png 827w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779-811x1024.png 811w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779-238x300.png 238w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IMG_6428-e1572679165779-768x970.png 768w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u624b\u673aVPN\u8fde\u63a5\u6210\u529f\u4ee5\u540e\uff0c\u5728\u9632\u706b\u5899\u7684<strong>\u72b6\u6001&gt;ipsec&gt;\u6982\u51b5<\/strong>\u83dc\u5355\u4e0b\u53ef\u4ee5\u67e5\u770b\u8fde\u63a5\u72b6\u6001\u3002\u5728\u624b\u673a\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165\u9632\u706b\u5899\u5185\u7f51\u5730\u5740\u5c31\u53ef\u4ee5\u8fdb\u5165\u9632\u706b\u5899Web\u7ba1\u7406\u754c\u9762\u3002\u5982\u679c\u9700\u8981\u901a\u8fc7\u8fdc\u7a0b\u9632\u706b\u5899\u4e2d\u8f6c\u6765\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u8bf7\u9009\u4e2d<strong>\u53d1\u9001\u6240\u6709\u6d41\u91cf<\/strong>\uff0c\u8fd9\u65f6\u5019\u624b\u673a\u4e0a\u67e5\u8be2\u7684\u5916\u7f51\u5730\u5740\u5c06\u662f\u9632\u706b\u5899\u7684WAN\u5730\u5740\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2363\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208.png\" alt=\"\" width=\"1142\" height=\"499\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208.png 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208-1024x447.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208-300x131.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208-768x336.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/IPsec_-\u6982\u51b5-208-500x218.png 500w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n<h1>\u516d\u3001\u5982\u4f55\u5728pfSense\u4e2d\u67e5\u770bL2TP\u8fde\u63a5<\/h1>\n<p>\u5bfc\u822a\u5230\u72b6\u6001-\u7cfb\u7edf\u65e5\u5fd7-VPN-L2TP\u767b\u5f55\uff0c\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230\u54ea\u4e9b\u7528\u6237\u767b\u5f55\u4e86L2TP\u670d\u52a1\u5668\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2250\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55.png\" alt=\"\" width=\"1143\" height=\"343\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55.png 1143w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55-1024x307.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55-300x90.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55-768x230.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/VPN_-L2TP\u767b\u5f55-500x150.png 500w\" sizes=\"auto, (max-width: 1143px) 100vw, 1143px\" \/><\/a><\/p>\n<h1>\u4e03\u3001\u8fdc\u7a0b\u7ba1\u7406\u9632\u706b\u5899<\/h1>\n<p style=\"text-align: justify;\">L2TP\u6210\u529f\u8fde\u63a5\u4ee5\u540e\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5185\u7f51\u5730\u5740\u8bbf\u95ee\u9632\u706b\u5899\u3002\u4f7f\u7528ping\u547d\u4ee4\u6d4b\u8bd5\u4e0e\u7f51\u5173\u7684\u8fde\u63a5\uff0c\u8bc1\u660e\u662f\u53ef\u4ee5\u8bbf\u95ee\u7684\u3002\u6211\u7684\u9632\u706b\u5899\u5185\u7f51\u7f51\u5173\u4e3a192.168.111.1\uff0c\u7aef\u53e3\u4e3a5678\uff0c\u53ea\u9700\u8981\u5728\u6d4f\u89c8\u5668\u8f93\u5165\u5730\u5740\u52a0\u7aef\u53e3\u5c31\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\uff01<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2253\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1.png\" alt=\"\" width=\"927\" height=\"558\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1.png 927w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1-300x181.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1-768x462.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/logon-1-498x300.png 498w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/a><\/p>\n<h1>\u516b\u3001\u5176\u4ed6<\/h1>\n<p>\u5982\u679c\u9700\u8981\u901a\u8fc7\u8fdc\u7a0b\u9632\u706b\u5899\u7f51\u5173\u4e0a\u7f51\uff0c\u5fc5\u987b\u8fdb\u884c\u5982\u4e0b\u8bbe\u7f6e\u3002<\/p>\n<p>\u5728VPN\u8fde\u63a5\u4e0a\u5355\u51fb\u53f3\u952e\uff0c\u9009\u5c5e\u6027\uff0c\u8fdb\u5165TCP\/ IPV4\u8fde\u63a5\uff0c\u9009\u9ad8\u7ea7\u3002\u9009\u4e2d\u201c\u5728\u8fdc\u7a0b\u7f51\u7edc\u4e0a\u4f7f\u7528\u9ed8\u8ba4\u7f51\u5173\u201d\u548c\u201c\u81ea\u52a8\u8dc3\u70b9\u201d\u3002<\/p>\n<p>&nbsp;<\/p>\n<div style=\"width: 584px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2232-1\" width=\"584\" height=\"467\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/PfSense-2.4.3-L2TP-_-IPsec-VPN-configuration-pfSense-Part-15_2.mp4?_=1\" \/><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/PfSense-2.4.3-L2TP-_-IPsec-VPN-configuration-pfSense-Part-15_2.mp4\">https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/10\/PfSense-2.4.3-L2TP-_-IPsec-VPN-configuration-pfSense-Part-15_2.mp4<\/a><\/video><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u8fdc\u7a0b\u7ba1\u7406\u9632\u706b\u5899\uff0c\u591a\u91c7\u7528\u5f00\u653e\u7279\u5b9a\u5916\u7f51\u7aef\u53e3\u6765\u8fdb\u884c\u8fdc\u7a0b\u8bbf\u95ee\uff0c\u65b9\u6cd5\u7b80\u5355\uff0c\u4f46\u5b58\u5728\u4e00\u5b9a\u7684 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=2232\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[144],"class_list":["post-2232","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-vpn"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/2232","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=2232"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/2232\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}