{"id":7145,"date":"2022-04-20T18:24:32","date_gmt":"2022-04-20T10:24:32","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=7145"},"modified":"2022-04-20T18:31:46","modified_gmt":"2022-04-20T10:31:46","slug":"pfsense%e9%85%8d%e7%bd%ae%e7%ab%99%e7%82%b9%e5%88%b0%e7%ab%99%e7%82%b9-ipsec-vpn","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=7145","title":{"rendered":"pfSense\u7ad9\u70b9\u5230\u7ad9\u70b9IPsec VPN\u53ca\u8def\u7531Internet\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"<p style=\"text-align: justify;\">IPsec VPN\u7ad9\u70b9\u5230\u7ad9\u70b9\u96a7\u9053\u53ef\u4ee5\u5c06\u4e24\u4e2a\u4e0d\u5728\u540c\u4e00\u4f4d\u7f6e\u7684\u7f51\u7edc\u8fdb\u884c\u4e92\u8fde\uff0c\u5c31\u597d\u50cf\u5b83\u4eec\u7531\u8def\u7531\u5668\u76f4\u63a5\u8fde\u63a5\u4e00\u6837\u3002\u7ad9\u70b9A\u7684\u7cfb\u7edf\u53ef\u4ee5\u8bbf\u95ee\u7ad9\u70b9B\u7684\u670d\u52a1\u5668\u6216\u5176\u4ed6\u7cfb\u7edf\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002\u4e0e\u4efb\u4f55\u5176\u4ed6\u7f51\u7edc\u63a5\u53e3\u4e00\u6837\uff0cVPN\u96a7\u9053\u7684\u6d41\u91cf\u4e5f\u53ef\u4ee5\u901a\u8fc7\u9632\u706b\u5899\u89c4\u5219\u8fdb\u884c\u8c03\u8282\u3002\u5982\u679c\u6709\u591a\u4e2a\u5ba2\u6237\u7aef\u9700\u8981\u4ece\u540c\u4e00\u4f4d\u7f6e\u8fde\u63a5\u5230\u53e6\u4e00\u4e2a\u4f4d\u7f6e\u7684\u7ad9\u70b9\uff0c\u7ad9\u70b9\u5230\u7ad9\u70b9\u7684\u96a7\u9053\u8fde\u63a5\u5c06\u975e\u5e38\u9002\u5408\uff0c\u800c\u4e14\u6613\u4e8e\u914d\u7f6e\u548c\u7ba1\u7406\u3002<\/p>\n<p style=\"text-align: justify;\">\u4f7f\u7528\u7ad9\u70b9\u5230\u7ad9\u70b9\u96a7\u9053\u8fde\u63a5\uff0c\u672c\u5730\u7f51\u7edc\u4e0a\u7684\u8bbe\u5907\u65e0\u9700\u77e5\u9053\u5b58\u5728\u7684VPN\uff0c\u4e5f\u4e0d\u9700\u8981\u4efb\u4f55\u5ba2\u6237\u7aef\u8f6f\u4ef6\uff0c\u6240\u6709\u5de5\u4f5c\u90fd\u7531\u96a7\u9053\u7ad9\u70b9\u5904\u7406\u3002\u5bf9\u4e8e\u6709\u7f51\u7edc\u652f\u6301\u4f46\u4e0d\u5904\u7406VPN\u8fde\u63a5\u7684\u8bbe\u5907\uff08\u4f8b\u5982\u6253\u5370\u673a\u3001\u76f8\u673a\u3001HVAC \u7cfb\u7edf\u548c\u5176\u4ed6\u5d4c\u5165\u5f0f\u786c\u4ef6\uff09\u6765\u8bf4\uff0c\u8fd9\u4e5f\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u540c\u65f6\uff0c\u901a\u8fc7\u8def\u7531Internet\u6d41\u91cf\uff0c\u4e5f\u53ef\u4ee5\u6ee1\u8db3\u67d0\u4e9b\u6709\u7279\u5b9a\u9700\u6c42\u7684\u7528\u6237\u3002<\/p>\n<p style=\"text-align: justify;\">\u672c\u6307\u5357\u4ecb\u7ecdIPsec VPN\u7ad9\u70b9\u81f3\u7ad9\u70b9(\u5171\u4eab\u5bc6\u94a5)\u7684\u914d\u7f6e\u8fc7\u7a0b\uff0c\u4ee5\u53ca\u901a\u8fc7IPsec\u96a7\u9053\u8def\u7531Internet \u6d41\u91cf\u7684\u65b9\u6cd5 \uff0c\u6240\u6709\u914d\u7f6e\u90fd\u57fa\u4e8e<a href=\"https:\/\/blog.pfchina.org\/?p=8463\">pfSense plus 22.01\u4e2d\u6587\u5b9a\u5236\u7248<\/a>\u7cfb\u7edf\u5b8c\u6210\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u7f51\u7edc\u6982\u51b5<\/h1>\n<p>\u9632\u706b\u5899\u7ad9\u70b9A\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u516c\u7f51IP\u5730\u5740\uff1a117.44.117.44<\/li>\n<li>\u672c\u5730\u7f51\u7edc\uff1a192.168.100.0\/24<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u9632\u706b\u5899\u7ad9\u70b9 B\u00a0:<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u516c\u7f51IP\u5730\u5740\uff1a202.109.202.109<\/li>\n<li>\u672c\u5730\u7f51\u7edc\uff1a192.168.101.0\/24<\/li>\n<\/ul>\n<h1 style=\"text-align: justify;\">\u7ad9\u70b9A\u914d\u7f6e<\/h1>\n<h2 style=\"text-align: justify;\">\u9636\u6bb51\u914d\u7f6e<\/h2>\n<ul style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230 VPN &gt; IPsec<\/li>\n<li>\u5355\u51fb\u201c+\u201d\u56fe\u6807\uff0c\u6dfb\u52a0\u4e00\u4e2a\u9636\u6bb51\u6761\u76ee\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">\u9636\u6bb51\u5b57\u6bb5\u4fe1\u606f\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u5bc6\u94a5\u4ea4\u6362\u7248\u672c\u9996\u9009IKEv2\uff0c\u5982\u679c\u4e0d\u786e\u5b9a\uff0c\u53ef\u4ee5\u9009Auto\u3002<\/li>\n<li>\u8fdc\u7a0b\u7f51\u5173\u8f93\u5165\u7ad9\u70b9B\u7684WAN\u516c\u7f51IP\u5730\u5740\u3002<\/li>\n<li>\u9884\u5171\u4eab\u5bc6\u94a5\u70b9\u4e0b\u9762\u7684\u751f\u6210\u6216\u624b\u52a8\u8f93\u5165\uff0c\u8fd9\u91cc\u7684\u5bc6\u94a5\u987b\u4e0e\u7ad9\u70b9B\u76f8\u540c\u3002<\/li>\n<li>\u5176\u4ed6\u9009\u9879\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8657\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55.png\" alt=\"\" width=\"1139\" height=\"947\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55-300x249.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55-1024x851.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55-768x639.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-15-56-55-361x300.png 361w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8658\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21.png\" alt=\"\" width=\"1138\" height=\"191\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21.png 1138w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21-300x50.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21-1024x172.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21-768x129.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-21-500x84.png 500w\" sizes=\"auto, (max-width: 1138px) 100vw, 1138px\" \/><\/a> <a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8659\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38.png\" alt=\"\" width=\"1137\" height=\"1184\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38.png 1137w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38-288x300.png 288w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38-983x1024.png 983w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-02-38-768x800.png 768w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: justify;\">\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\uff0c\u5b8c\u6210\u7ad9\u70b9A\u9636\u6bb51\u7684\u914d\u7f6e\u3002<\/span><\/p>\n<h2 style=\"text-align: justify;\">\u9636\u6bb52\u914d\u7f6e<\/h2>\n<div class=\"wp-block-image\" style=\"text-align: justify;\">\n<p>\u5728IPsec VPN\u96a7\u9053\u9875\u9762\u4e0a\uff0c\u5728\u521a\u624d\u521b\u5efa\u7684\u9636\u6bb51\u6761\u76ee\u4e0a\uff0c\u5355\u51fb\u201c\u663e\u793a\u9636\u6bb52\u6761\u76ee\u201d\uff0c\u7136\u540e\u5355\u51fb\u201c+ \u201d\u56fe\u6807\uff0c\u6dfb\u52a0\u9636\u6bb52\u6761\u76ee\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\">\u9636\u6bb52\u5b57\u6bb5\u4fe1\u606f\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u6a21\u5f0f\u9009IPv4\u96a7\u9053\u3002<\/li>\n<li>\u7531\u4e8e\u672c\u6307\u5357\u8981\u8bbe\u7f6e\u7ad9\u70b9B\u7684\u5ba2\u6237\u7aef\u901a\u8fc7\u7ad9\u70b9A\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u8fd9\u91cc\u7684\u672c\u5730\u7f51\u7edc\u987b\u8f93\u5165 0.0.0.0\/0\u3002\u5982\u679c\u6ca1\u6709\u8fd9\u79cd\u9700\u6c42\uff0c\u672c\u5730\u7f51\u7edc\u4e00\u822c\u9009LAN subnet\u3002<\/li>\n<li>\u8fdc\u7a0b\u7f51\u7edc\u8f93\u5165\u7ad9\u70b9B\u7684LAN\u5b50\u7f51\u3002<\/li>\n<li>\u5176\u4ed6\u9009\u9879\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8660 aligncenter\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31.png\" alt=\"\" width=\"1136\" height=\"598\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31.png 1136w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31-300x158.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31-1024x539.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31-768x404.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-31-500x263.png 500w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/a><\/p>\n<div class=\"wp-block-image\" style=\"text-align: justify;\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8661\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47.png\" alt=\"\" width=\"1148\" height=\"1099\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47.png 1148w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47-300x287.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47-1024x980.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47-768x735.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-09-47-313x300.png 313w\" sizes=\"auto, (max-width: 1148px) 100vw, 1148px\" \/><\/a>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\uff0c\u5b8c\u6210\u7ad9\u70b9A\u7684\u9636\u6bb52\u914d\u7f6e\u3002\u4fdd\u5b58\u540e\uff0c\u4e0d\u8981\u5fd8\u8bb0\u70b9\u51fb\u201c\u5e94\u7528\u66f4\u6539\u201d\u6765\u5e94\u7528\u914d\u7f6e\u3002<\/figure>\n<\/div>\n<div class=\"wp-block-image\" style=\"text-align: justify;\">\n<h2><span style=\"color: #000000; font-weight: bold;\">\u9632\u706b\u5899\u914d\u7f6e<\/span><\/h2>\n<\/div>\n<p style=\"text-align: justify;\">\u4e3a\u4fdd\u8bc1VPN\u80fd\u6b63\u5e38\u901a\u4fe1\uff0c\u9700\u8981\u914d\u7f6e\u4e24\u6761\u89c4\u5219\uff1a\u4e00\u6761\u89c4\u5219\u5141\u8bb8\u4eceLAN\u5230IPsecVPN \u7684\u6d41\u91cf\uff1b\u53e6\u4e00\u6761\u5141\u8bb8\u4eceVPN\u5230LAN\u7684\u6d41\u91cf\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8662\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59.png\" alt=\"\" width=\"1146\" height=\"244\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59.png 1146w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59-300x64.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59-1024x218.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59-768x164.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-20-59-500x106.png 500w\" sizes=\"auto, (max-width: 1146px) 100vw, 1146px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8663\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37.png\" alt=\"\" width=\"1144\" height=\"168\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37.png 1144w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37-300x44.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37-1024x150.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37-768x113.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-21-37-500x73.png 500w\" sizes=\"auto, (max-width: 1144px) 100vw, 1144px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u8fd9\u91cc\u7684\u89c4\u5219\u4e5f\u53ef\u4ee5\u6309\u7167\u9700\u6c42\u8fdb\u884c\u914d\u7f6e\uff0c\u4f8b\u5982\uff0c\u53ea\u5141\u8bb8\u7279\u5b9a\u7684\u7f51\u7edc\u6216\u5730\u5740\u901a\u8fc7VPN\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u51fa\u7ad9\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u56e0\u4e3a\u8981\u901a\u8fc7\u7ad9\u70b9A\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u8fd8\u9700\u8981\u5bf9\u7ad9\u70b9A\u7684\u51fa\u7ad9\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u5bfc\u822a\u5230\u9632\u706b\u5899 &gt;\u5730\u5740\u8f6c\u6362\uff0c\u51fa\u7ad9\u9009\u9879\u5361\u3002<\/li>\n<li>\u5c06\u51fa\u7ad9NAT\u6a21\u5f0f\u8bbe\u7f6e\u4e3a\u6df7\u5408\u51fa\u7ad9 NAT\u3002<\/li>\n<li>\u5728\u5217\u8868\u9876\u90e8\u6dfb\u52a0\u4e00\u6761\u624b\u52a8\u51fa\u7ad9\u89c4\u5219\uff0c\u5141\u8bb8\u7ad9\u70b9B\u7684LAN net\u7f51\u7edc\u901a\u8fc7\u7ad9\u70b9A\u7684WAN\u63a5\u53e3\u51fa\u7ad9\u3002\u63a5\u53e3\u9009WAN\uff0c\u6e90\u8f93\u5165\u7ad9\u70b9B\u7684LAN\u7f51\u7edc\uff0c\u5730\u5740\u9009\u63a5\u53e3\u5730\u5740\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8670\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58.png\" alt=\"\" width=\"1136\" height=\"1151\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58.png 1136w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58-296x300.png 296w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58-1011x1024.png 1011w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-08-58-768x778.png 768w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5b8c\u6210\u540e\u5982\u4e0b\uff1a<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8672\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48.png\" alt=\"\" width=\"1133\" height=\"602\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48.png 1133w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48-300x159.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48-1024x544.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48-768x408.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-10-48-500x266.png 500w\" sizes=\"auto, (max-width: 1133px) 100vw, 1133px\" \/><\/a><\/p>\n<h1 style=\"text-align: justify;\">\u7ad9\u70b9B\u914d\u7f6e<\/h1>\n<h2 style=\"text-align: justify;\">\u9636\u6bb51\u914d\u7f6e<\/h2>\n<p style=\"text-align: justify;\">\u9636\u6bb51\u5b57\u6bb5\u4fe1\u606f\uff1a<\/p>\n<ul style=\"text-align: justify;\">\n<li>\u5bc6\u94a5\u4ea4\u6362\u7248\u672c\u4e0e\u7ad9\u70b9A\u76f8\u540c\uff0c\u9009IKEv2\u3002<\/li>\n<li>\u8fdc\u7a0b\u7f51\u5173\u8f93\u5165\u7ad9\u70b9A\u7684WAN\u516c\u7f51\u9759\u6001\u5730\u5740\u3002<\/li>\n<li>\u9884\u5171\u4eab\u5bc6\u94a5\u8f93\u5165\u7ad9\u70b9A\u4e2d\u751f\u6210\u7684\u5bc6\u94a5\uff0c\u4e24\u4e2a\u7ad9\u70b9\u5fc5\u987b\u76f8\u540c\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8665\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14.png\" alt=\"\" width=\"1141\" height=\"1155\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14-296x300.png 296w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14-1012x1024.png 1012w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-32-14-768x777.png 768w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/a><\/p>\n<ul style=\"text-align: justify;\">\n<li>\u751f\u5b58\u65f6\u95f4\uff0c\u81f3\u5c11\u6bd4\u7ad9\u70b9A\u591a10%\u3002<\/li>\n<li>\u5b50SA \u542f\u52a8\u64cd\u4f5c\uff0c\u9009<strong>None(\u4ec5\u54cd\u5e94)<\/strong>\uff0c\u8ba9\u8be5\u7aef\u70b9\u4e0d\u81ea\u884c\u542f\u52a8\uff0c\u800c\u662f\u7531\u7ad9\u70b9A\u6765\u542f\u52a8\u3002<\/li>\n<li>\u5b50SA \u5173\u95ed\u64cd\u4f5c\uff0c\u9009<strong>\u5173\u95ed\u8fde\u63a5\u5e76\u6e05\u9664SA<\/strong>\uff0c\u8ba9\u9636\u6bb52\u4e0d\u81ea\u52a8\u91cd\u65b0\u8fde\u63a5\uff0c\u8ba9\u7ad9\u70b9A\u8fdb\u884c\u7ba1\u7406\u3002\u5b50SA\u7684\u64cd\u4f5c\uff0c\u53ea\u9700\u8981\u4e00\u7aef\u4e3b\u52a8\u4f5c\u4e3a\u5373\u53ef\u3002<\/li>\n<li>\u5176\u4ed6\u9009\u9879\u4fdd\u6301\u9ed8\u8ba4\u5e76\u4e0e\u7ad9\u70b9A\u4fdd\u6301\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8666\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35.png\" alt=\"\" width=\"1142\" height=\"1182\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35.png 1142w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35-290x300.png 290w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35-989x1024.png 989w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-37-35-768x795.png 768w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: justify;\">\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\uff0c\u5b8c\u6210\u7ad9\u70b9B\u9636\u6bb51\u914d\u7f6e\u3002<\/span><\/p>\n<h2 style=\"text-align: justify;\">\u9636\u6bb52\u914d\u7f6e<\/h2>\n<div class=\"wp-block-image\" style=\"text-align: justify;\">\n<p>\u9636\u6bb52\u5b57\u6bb5\u4fe1\u606f\uff1a<\/p>\n<\/div>\n<ul style=\"text-align: justify;\">\n<li>\u6a21\u5f0f\u9009IPv4\u96a7\u9053\u3002<\/li>\n<li>\u672c\u5730\u7f51\u7edc\u9009LAN subnet\u3002<\/li>\n<li>\u7531\u4e8e\u8981\u8bbe\u7f6e\u7ad9\u70b9B\u7684\u5ba2\u6237\u7aef\u901a\u8fc7\u7ad9\u70b9A\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u8fdc\u7a0b\u7f51\u7edc\u5fc5\u987b\u8f93\u5165 0.0.0.0\/0\u3002\u5982\u679c\u6ca1\u6709\u8fd9\u79cd\u9700\u6c42\uff0c\u53ef\u4ee5\u8f93\u5165\u7ad9\u70b9A\u7684LAN subnet\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8667\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47.png\" alt=\"\" width=\"1137\" height=\"596\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47.png 1137w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47-300x157.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47-1024x537.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47-768x403.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-43-47-500x262.png 500w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/a><\/p>\n<ul style=\"text-align: justify;\">\n<li>\u9636\u6bb52\u7684\u751f\u5b58\u65f6\u95f4\u6bd4\u7ad9\u70b9A\u81f3\u5c11\u9ad810%\u3002<\/li>\n<li>\u5176\u4ed6\u9009\u9879\u4fdd\u6301\u9ed8\u8ba4\u5e76\u4e0e\u7ad9\u70b9A\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8668\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35.png\" alt=\"\" width=\"1139\" height=\"1100\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35-300x290.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35-1024x989.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35-768x742.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-16-46-35-311x300.png 311w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"color: #000000; font-weight: bold;\">\u9632\u706b\u5899\u914d\u7f6e<\/span><\/h2>\n<p style=\"text-align: justify;\">\u4e0e\u7ad9\u70b9A\u76f8\u540c\uff0c\u9664\u975e\u6709\u5176\u4ed6\u7279\u6b8a\u8981\u6c42\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u6d4b\u8bd5\u8fde\u63a5<\/h1>\n<p style=\"text-align: justify;\">\u8f6c\u5230\u72b6\u6001&gt;IPsec\uff0c\u70b9\u51fb\u53f3\u4fa7\u7684&#8221;\u8fde\u63a5P1\u548cP2s\u201d\uff0c\u5e94\u8be5\u5c31\u53ef\u4ee5\u6b63\u5e38\u8fde\u63a5\u4e86\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8673\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44.png\" alt=\"\" width=\"1141\" height=\"422\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44.png 1141w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44-300x111.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44-1024x379.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44-768x284.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-17-44-500x185.png 500w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728\u7ad9\u70b9B\u7684\u5ba2\u6237\u7aef\u4e0a\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u67e5\u8be2\u4e0a\u7f51IP\uff0c\u68c0\u67e5\u662f\u5426\u901a\u8fc7\u7ad9\u70b9B\u51fa\u7ad9\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8675\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27.png\" alt=\"\" width=\"864\" height=\"190\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27.png 864w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27-300x66.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27-768x169.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-21-27-500x110.png 500w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u5728\u4e24\u4e2a\u7ad9\u70b9\u4e4b\u95f4\u8dd1\u4e86\u4e00\u4e0b\u6d4b\u901f\u3002<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8678\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41.png\" alt=\"\" width=\"776\" height=\"361\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41.png 776w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41-300x140.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41-768x357.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/06\/2022-04-20-17-24-41-500x233.png 500w\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">\u8bf4\u660e\uff1a\u6d4b\u8bd5\u5e73\u53f0\u5e26\u5bbd\u4e0a\u3001\u4e0b\u884c\u5404300M\u3002<\/p>\n<p>\u76f8\u5173\u6587\u7ae0\uff1a<\/p>\n<ol>\n<li><a href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/recipes\/ipsec-s2s-psk.html\">\u5177\u6709\u9884\u5171\u4eab\u5bc6\u94a5\u7684IPsec\u7ad9\u70b9\u5230\u7ad9\u70b9VPN \u793a\u4f8b<\/a><\/li>\n<li><a href=\"https:\/\/docs.netgate.com\/pfsense\/en\/latest\/recipes\/ipsec-s2s-route-internet-traffic.html\">\u901a\u8fc7\u7ad9\u70b9\u5230\u7ad9\u70b9IPsec\u96a7\u9053\u8def\u7531Internet\u6d41\u91cf<\/a><\/li>\n<li><a href=\"https:\/\/blog.pfchina.org\/?p=7180\">\u5177\u6709\u76f8\u540c\u5b50\u7f51\u7684\u7ad9\u70b9\u5230\u7ad9\u70b9IPsec VPN<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>IPsec VPN\u7ad9\u70b9\u5230\u7ad9\u70b9\u96a7\u9053\u53ef\u4ee5\u5c06\u4e24\u4e2a\u4e0d\u5728\u540c\u4e00\u4f4d\u7f6e\u7684\u7f51\u7edc\u8fdb\u884c\u4e92\u8fde\uff0c\u5c31\u597d\u50cf\u5b83\u4eec &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=7145\">\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":[166],"class_list":["post-7145","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-ipsec"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7145","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=7145"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7145\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}